X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.h;h=c3c82de348621688b07f41c911c57812a55a69b3;hb=76955a6c8b7a76d00ed401853c9d283e32d9ce1c;hp=b65850c6b147a57d951b8301354972d27290d356;hpb=1296f715b57c88c17299cacadaccdc0be898e0b1;p=tinc diff --git a/src/net.h b/src/net.h index b65850c6..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" @@ -195,6 +196,7 @@ extern bool send_sptps_data(node_t *to, node_t *from, int type, const void *data 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);