X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;fp=src%2Fnet.h;h=6d27baf4002c8dc9fd797013f5df414805f11c69;hb=3bcd5ec746a5575c0c66f8b34922c038eb363b0a;hp=9277e6d9dc9ed64c6ebc464772c0250429b53eac;hpb=230b5907e242aa48bb8c8d09450fbd3767e9c24a;p=meshlink diff --git a/src/net.h b/src/net.h index 9277e6d9..6d27baf4 100644 --- a/src/net.h +++ b/src/net.h @@ -36,8 +36,8 @@ #define MAXBUFSIZE ((MAXSIZE > 2048 ? MAXSIZE : 2048) + 128) typedef struct vpn_packet_t { - unsigned int probe: 1; - unsigned int tcp: 1; + uint16_t probe: 1; + int16_t tcp: 1; uint16_t len; /* the actual number of bytes in the `data' field */ uint8_t data[MAXSIZE]; } vpn_packet_t;