diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 1999-10-11 17:05:49 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 1999-10-11 17:05:49 +0000 |
commit | 2e08b800b4e568a1f401441ee80153d566d532dc (patch) | |
tree | a1f5edd83ac9f6dcdb2b88ac484ed44d9771a1b9 /proto.c | |
parent | c6d6deee3cf80aafc7eba03df304c0b405341aef (diff) | |
download | wireshark-2e08b800b4e568a1f401441ee80153d566d532dc.tar.gz wireshark-2e08b800b4e568a1f401441ee80153d566d532dc.tar.bz2 wireshark-2e08b800b4e568a1f401441ee80153d566d532dc.zip |
- add handling of FT_IPv6 variables
there is still some work to do in resolv.c (get_host_ipaddr6)
- add display filters of this kind in packet-ipv6.c just
for testing (display filtering is incomplete)
svn path=/trunk/; revision=808
Diffstat (limited to 'proto.c')
-rw-r--r-- | proto.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* proto.c * Routines for protocol tree * - * $Id: proto.c,v 1.32 1999/10/08 20:50:37 guy Exp $ + * $Id: proto.c,v 1.33 1999/10/11 17:02:06 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -61,6 +61,8 @@ #include "resolv.h" #endif +#include "packet-ipv6.h" + #define cVALS(x) (const value_string*)(x) #if defined(HAVE_UCD_SNMP_SNMP_H) @@ -432,6 +434,10 @@ NOTES fi->value.numeric = va_arg(ap, unsigned int); break; + case FT_IPv6: + memcpy(fi->value.ipv6, va_arg(ap, guint8*), 16); + break; + case FT_DOUBLE: fi->value.floating = va_arg(ap, double); break; @@ -646,6 +652,13 @@ proto_item_fill_label(field_info *fi, gchar *label_str) get_hostname(fi->value.numeric), ip_to_str((guint8*)&fi->value.numeric)); break; + + case FT_IPv6: + snprintf(label_str, ITEM_LABEL_LENGTH, + "%s: %s (%s)", fi->hfinfo->name, + get_hostname6((struct e_in6_addr *)fi->value.ipv6), + ip6_to_str((struct e_in6_addr*)fi->value.ipv6)); + break; case FT_STRING: snprintf(label_str, ITEM_LABEL_LENGTH, |