Defined SilcIdType as unsigned short, not unsigned char.
[silc.git] / lib / silccore / silcpacket.h
index fe0c81f436ea9f0f8bd125139bb8a35d8d284f54..a13b726804da0ab0d67bd97650790d177bc03f1b 100644 (file)
@@ -95,11 +95,18 @@ typedef unsigned char SilcPacketFlags;
 
    unsigned char *src_id
    unsigned int src_id_len
 
    unsigned char *src_id
    unsigned int src_id_len
-   SilcIdType src_id_type
+   unsigned char src_id_type
 
        Source ID, its length and type. On packet reception retuned ID's
        are always the hash values of the ID's from the packet.
 
 
        Source ID, its length and type. On packet reception retuned ID's
        are always the hash values of the ID's from the packet.
 
+  unsigned char *dst_id;
+  unsigned int dst_id_len;
+  unsigned char src_id_type;
+
+       Destination ID, its length and type. On packet reception retuned
+       ID's are always the hash values of the ID's from the packet.
+
    SilcHash hash
 
        Pointer to allocated hash object. This must be MD5 hash object.
    SilcHash hash
 
        Pointer to allocated hash object. This must be MD5 hash object.
@@ -113,11 +120,11 @@ typedef struct {
 
   unsigned char *src_id;
   unsigned int src_id_len;
 
   unsigned char *src_id;
   unsigned int src_id_len;
-  SilcIdType src_id_type;
+  unsigned char src_id_type;
 
   unsigned char *dst_id;
   unsigned int dst_id_len;
 
   unsigned char *dst_id;
   unsigned int dst_id_len;
-  SilcIdType dst_id_type;
+  unsigned char dst_id_type;
 
   unsigned int truelen;
   unsigned int padlen;
 
   unsigned int truelen;
   unsigned int padlen;