projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create/bind TCP and UDP listening sockets in pairs.
[tinc]
/
src
/
net.h
diff --git
a/src/net.h
b/src/net.h
index
e42f07e
..
6a98118
100644
(file)
--- a/
src/net.h
+++ b/
src/net.h
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.h,v 1.9.4.4
3 2002/02/26 23:26:41
guus Exp $
+ $Id: net.h,v 1.9.4.4
5 2002/03/01 13:18:54
guus Exp $
*/
#ifndef __TINC_NET_H__
*/
#ifndef __TINC_NET_H__
@@
-74,6
+74,7
@@
typedef union {
typedef struct vpn_packet_t {
length_t len; /* the actual number of bytes in the `data' field */
typedef struct vpn_packet_t {
length_t len; /* the actual number of bytes in the `data' field */
+ int priority; /* priority or TOS */
unsigned int seqno; /* 32 bits sequence number (network byte order of course) */
unsigned char data[MAXSIZE];
} vpn_packet_t;
unsigned int seqno; /* 32 bits sequence number (network byte order of course) */
unsigned char data[MAXSIZE];
} vpn_packet_t;
@@
-108,8
+109,7
@@
extern char *status_text[];
extern int tcp_socket[MAXSOCKETS];
extern int udp_socket[MAXSOCKETS];
extern int tcp_socket[MAXSOCKETS];
extern int udp_socket[MAXSOCKETS];
-extern int tcp_sockets;
-extern int udp_sockets;
+extern int listen_sockets;
extern int keyexpires;
extern int keylifetime;
extern int do_prune;
extern int keyexpires;
extern int keylifetime;
extern int do_prune;