X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.h;h=1d0338f74fb50456f4548d6fc7904adac4f0734c;hp=0ac7759b4822e81980adfdf783f212ad2eb9f3a5;hb=e5d8d3db6caa344b3d419b884556c21b15e7d123;hpb=2ccba0fda23268cb45841b5984fc31b4287a3d4b diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index 0ac7759b..1d0338f7 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -93,7 +93,8 @@ typedef unsigned char SilcPacketType; #define SILC_PACKET_REKEY_DONE 23 /* Re-key done */ #define SILC_PACKET_HEARTBEAT 24 /* Heartbeat */ #define SILC_PACKET_KEY_AGREEMENT 25 /* Key Agreement request */ -#define SILC_PACKET_CELL_ROUTERS 26 /* Cell routers backup */ +#define SILC_PACKET_RESUME_ROUTER 26 /* Backup router resume */ +#define SILC_PACKET_FTP 27 /* File Transfer */ #define SILC_PACKET_PRIVATE 200 /* Private range start */ #define SILC_PACKET_MAX 255 /* RESERVED */ @@ -192,13 +193,17 @@ typedef unsigned char SilcPacketFlags; * silc_packet_* routines. If not provided the library will calculate * the values. * - * in users; + * int users; * * Reference counter for this context. The context is freed only * after the reference counter hits zero. The counter is added * calling silc_packet_context_dup and decreased by calling the * silc_packet_context_free. * + * uint32 sequence; + * + * Packet sequence number. + * ***/ typedef struct { SilcBuffer buffer; @@ -221,6 +226,8 @@ typedef struct { SilcSocketConnection sock; int users; + + uint32 sequence; } SilcPacketContext; /****s* silccore/SilcPacketAPI/SilcPacketParserContext