]> sjero.net Git - dccp2tcp/blobdiff - encap.h
Allow Pretty printing IP Addresses in connection information. Bugfix encapsulation...
[dccp2tcp] / encap.h
diff --git a/encap.h b/encap.h
index 5628f7932ff0edf39bd935a9284598c1f4597e15..890335abcbe9d1cd9fa606c1d16c1b82b344df5b 100644 (file)
--- a/encap.h
+++ b/encap.h
@@ -52,6 +52,10 @@ Date: 11/2012
  *                                             need to set this field. Typically this would be an
  *                                             IP address.
  *
+ *     char* (*print_id)(char* buf, int len, u_char* id, int id_len):
+ *                                             This is a function to pretty-print the destination or
+ *                                             source ID to the given buffer.
+ *
  *     struct const_packet *old:       The Old packet. It contains the following fields.
  *
  *     u_char* data:           This is a pointer to the buffer containing the
@@ -76,4 +80,8 @@ int linux_cooked_encap(struct packet *new, const struct const_packet *old);
 int ipv4_encap(struct packet *new, const struct const_packet *old);
 int ipv6_encap(struct packet *new, const struct const_packet *old);
 
+/*Standard Print Functions*/
+char* print_ipv6(char* buf, int len, u_char* id, int id_len);
+char* print_ipv4(char* buf, int len, u_char* id, int id_len);
+
 #endif /* ENCAP_H_ */