]> sjero.net Git - dccp2tcp/blobdiff - dccp2tcp.h
Allow Pretty printing IP Addresses in connection information. Bugfix encapsulation...
[dccp2tcp] / dccp2tcp.h
index 23b5af0f3be0410633930458603bd15b49dc5c80..d8615c2173e7b6ff7e066aed09f0257e6534f469 100644 (file)
@@ -70,6 +70,7 @@ struct packet{
        int                                     id_len; /*Length of IDs*/
        u_char                          *src_id; /*Source ID of packet*/
        u_char                          *dest_id;/*Destination ID of packet*/
+       char*                           (*print_id)(char* buf, int len, u_char* id, int id_len); /*Function to print ID*/
 };
 
 /*Constant Packet structure*/
@@ -80,6 +81,7 @@ struct const_packet{
        int                                             id_len; /*Length of IDs*/
        u_char                                  *src_id; /*Source ID of packet*/
        u_char                                  *dest_id;/*Destination ID of packet*/
+       char*                                   (*print_id)(char* buf, int len, u_char* id, int id_len); /*Function to print ID*/
 };
 
 /*Connection states*/