X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.h;h=bb608902267f3c63bc1ad71d847aad9c3e77f746;hp=c0e5b317ba22362aeee8d1a53611a1753f71cd79;hb=2116c6eb7d328c7aa3ce3da54f95367e5199d373;hpb=3fae14fae5a347823679ef694ab630b4991a201d diff --git a/src/net.h b/src/net.h index c0e5b317..bb608902 100644 --- a/src/net.h +++ b/src/net.h @@ -48,7 +48,7 @@ typedef struct ipv6_t { uint16_t x[8]; } ipv6_t; -typedef short length_t; +typedef uint16_t length_t; #define AF_UNKNOWN 255 @@ -137,7 +137,7 @@ extern bool handle_new_meta_connection(int); extern int setup_listen_socket(const sockaddr_t *); extern int setup_vpn_in_socket(const sockaddr_t *); extern void send_packet(const struct node_t *, vpn_packet_t *); -extern void receive_tcppacket(struct connection_t *, const char *, int); +extern void receive_tcppacket(struct connection_t *, const char *, length_t); extern void broadcast_packet(const struct node_t *, vpn_packet_t *); extern char *get_name(void); extern bool setup_network(void);