Merged silc_1_0_branch to trunk.
[silc.git] / lib / silccore / silcpacket.h
index 0e15ae438b714ae7a01584a78af24a23942f9d90..2288208323e7bf60c369ebb2ab4ea094325bf092 100644 (file)
@@ -335,7 +335,7 @@ typedef bool (*SilcPacketParserCallback)(SilcPacketParserContext
 #define SILC_PACKET_LENGTH(__packetdata, __ret_truelen, __ret_paddedlen) \
 do {                                                                    \
   SILC_GET16_MSB((__ret_truelen), (__packetdata));                      \
-  (__ret_paddedlen) = (__ret_truelen) + (__packetdata)[4];              \
+  (__ret_paddedlen) = (__ret_truelen) + (SilcUInt8)(__packetdata)[4];   \
 } while(0)
 /***/
 
@@ -536,6 +536,7 @@ int silc_packet_receive(SilcSocketConnection sock);
  *    bool silc_packet_receive_process(SilcSocketConnection sock,
  *                                     bool local_is_router,
  *                                     SilcCipher cipher, SilcHmac hmac,
+ *                                     SilcUInt32 sequence,
  *                                     SilcPacketParserCallback parser,
  *                                     void *parser_context);
  *