X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.h;h=367ef714b933d5061f68435b2918010320617a45;hb=5104001bae7d09040703ddbe18cf8781c7aaa94f;hp=b570d5e1c584e7dcfa17a8a0fc892f89bd3fde06;hpb=111040d7d1993c67246c52cbfd073183818655f9;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