typedef struct { uint32 type; char ip[4]; } ipv4; typedef struct { uint32 type; char ip[16]; } ipv6;