aboutsummaryrefslogtreecommitdiffstats
path: root/proto.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>1999-10-11 17:05:49 +0000
committerLaurent Deniel <laurent.deniel@free.fr>1999-10-11 17:05:49 +0000
commit2e08b800b4e568a1f401441ee80153d566d532dc (patch)
treea1f5edd83ac9f6dcdb2b88ac484ed44d9771a1b9 /proto.c
parentc6d6deee3cf80aafc7eba03df304c0b405341aef (diff)
- 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.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/proto.c b/proto.c
index 2f7e1c9bb5..cefed2863f 100644
--- a/proto.c
+++ b/proto.c
@@ -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,