around struct ip_and_mask pointers (no idea how it worked before). Added a header for readwrite.h used in mirror implementation.