aboutsummaryrefslogtreecommitdiff
path: root/print-lspping.c
diff options
context:
space:
mode:
authorhannes <hannes>2004-11-11 12:02:30 +0000
committerhannes <hannes>2004-11-11 12:02:30 +0000
commit8ecf32cbe2695ce0d8abaa54b32ac90eeb841aee (patch)
tree130271a79336b39faa454542ca10549c38367dcc /print-lspping.c
parent0a01aca260a99421f0a179eed87cbd8a8f72b8a3 (diff)
downloadtcpdump-8ecf32cbe2695ce0d8abaa54b32ac90eeb841aee.tar.gz
from Hannes Viertel <hviertel@juniper.net>: fix ipv6 #ifdefs
Diffstat (limited to 'print-lspping.c')
-rw-r--r--print-lspping.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/print-lspping.c b/print-lspping.c
index c0f5d76c..7c02b8f4 100644
--- a/print-lspping.c
+++ b/print-lspping.c
@@ -15,7 +15,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-lspping.c,v 1.11 2004-10-20 16:17:29 hannes Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-lspping.c,v 1.12 2004-11-11 12:02:31 hannes Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -791,7 +791,8 @@ lspping_print(register const u_char *pptr, register u_int len) {
tlv_tptr+=sizeof(struct lspping_tlv_downstream_map_ipv4_t);
tlv_tlen-=sizeof(struct lspping_tlv_downstream_map_ipv4_t);
break;
- case LSPPING_AFI_IPV6:
+#ifdef INET6
+ case LSPPING_AFI_IPV6:
printf("\n\t Downstream IP: %s" \
"\n\t Downstream Interface IP: %s",
ip6addr_string(tlv_ptr.lspping_tlv_downstream_map_ipv6->downstream_ip),
@@ -799,7 +800,7 @@ lspping_print(register const u_char *pptr, register u_int len) {
tlv_tptr+=sizeof(struct lspping_tlv_downstream_map_ipv6_t);
tlv_tlen-=sizeof(struct lspping_tlv_downstream_map_ipv6_t);
break;
-
+#endif
case LSPPING_AFI_UNMB:
printf("\n\t Downstream IP: %s" \
"\n\t Downstream Interface Index: 0x%08x",