X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.h;h=c3c82de348621688b07f41c911c57812a55a69b3;hp=5fc976e3e973f102bf0cf09f14129c681ed00c42;hb=c2dc3784f127ef6db6e9960a4abecc1aab6f4e31;hpb=467397f25d3a99ec1a97d4419502c37b64276f49 diff --git a/src/net.h b/src/net.h index 5fc976e3..c3c82de3 100644 --- a/src/net.h +++ b/src/net.h @@ -1,7 +1,7 @@ /* net.h -- header for net.c Copyright (C) 1998-2005 Ivo Timmermans - 2000-2014 Guus Sliepen + 2000-2016 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -115,6 +115,7 @@ typedef struct listen_socket_t { io_t udp; sockaddr_t sa; bool bindto; + int priority; } listen_socket_t; #include "conf.h" @@ -143,6 +144,7 @@ extern int udp_discovery_keepalive_interval; extern int udp_discovery_interval; extern int udp_discovery_timeout; +extern int mtu_info_interval; extern int udp_info_interval; extern listen_socket_t listen_socket[MAXSOCKETS]; @@ -190,10 +192,11 @@ extern void handle_new_meta_connection(void *, int); extern void handle_new_unix_connection(void *, int); extern int setup_listen_socket(const sockaddr_t *); extern int setup_vpn_in_socket(const sockaddr_t *); -extern bool send_sptps_data(void *handle, uint8_t type, const void *data, size_t len); +extern bool send_sptps_data(node_t *to, node_t *from, int type, const void *data, size_t len); extern bool receive_sptps_record(void *handle, uint8_t type, const void *data, uint16_t len); extern void send_packet(struct node_t *, vpn_packet_t *); extern void receive_tcppacket(struct connection_t *, const char *, int); +extern bool receive_tcppacket_sptps(struct connection_t *, const char *, int); extern void broadcast_packet(const struct node_t *, vpn_packet_t *); extern char *get_name(void); extern void device_enable(void);