X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=8ff07088302ba08fc0067ce238bad679a46169ae;hb=a5a8005b2d89712e124ab7295165a3e229abdad5;hp=9277e6d9dc9ed64c6ebc464772c0250429b53eac;hpb=1622803438b8c4bfff50bedfae6cd809e27fa075;p=meshlink diff --git a/src/net.h b/src/net.h index 9277e6d9..8ff07088 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; @@ -72,13 +72,6 @@ typedef struct outgoing_t { struct addrinfo *aip; } outgoing_t; -extern int maxoutbufsize; -extern int addressfamily; - -extern int keylifetime; -extern int max_connection_burst; -extern bool do_prune; - /* Yes, very strange placement indeed, but otherwise the typedefs get all tangled up */ #include "connection.h" #include "node.h"