X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.h;h=367ef714b933d5061f68435b2918010320617a45;hb=263d9903826ffb65aec89bdf5d46f72bd183d467;hp=b570d5e1c584e7dcfa17a8a0fc892f89bd3fde06;hpb=c2319e90b16962fe899bc60abc8af0e2542bb176;p=tinc diff --git a/src/net.h b/src/net.h index b570d5e1..367ef714 100644 --- a/src/net.h +++ b/src/net.h @@ -87,12 +87,18 @@ typedef union sockaddr_t { typedef struct vpn_packet_t { length_t len; /* the actual number of bytes in the `data' field */ int priority; /* priority or TOS */ - node_id_t dstid; /* node ID of the final recipient */ - node_id_t srcid; /* node ID of the original sender */ - uint8_t seqno[4]; /* 32 bits sequence number (network byte order of course) */ + uint32_t seqno; /* 32 bits sequence number (network byte order of course) */ uint8_t data[MAXSIZE]; } vpn_packet_t; +typedef struct sptps_packet_t { + length_t len; /* the actual number of bytes in the `data' field */ + int priority; /* priority or TOS */ + node_id_t dstid; /* node ID of the final recipient */ + node_id_t srcid; /* node ID of the original sender */ + char data[MAXSIZE]; +} sptps_packet_t; + /* Packet types when using SPTPS */ #define PKT_COMPRESSED 1