]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-chdlc.c
refactored ip_print() so that chained header parser (ESP/AH) can
[tcpdump] / print-chdlc.c
index ec5855a2f6a0888a4351365b5b6c05d5999ded6d..41d94141be7b347165e84f77e933dc92e78b0d98 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.31 2004-03-24 00:45:39 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.32 2005-04-06 21:32:38 mcr Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -76,7 +76,7 @@ chdlc_if_print(const struct pcap_pkthdr *h, register const u_char *p)
        ip = (const struct ip *)(p + CHDLC_HDRLEN);
        switch (proto) {
        case ETHERTYPE_IP:
-               ip_print((const u_char *)ip, length);
+               ip_print(gndo, (const u_char *)ip, length);
                break;
 #ifdef INET6
        case ETHERTYPE_IPV6:
@@ -182,3 +182,11 @@ chdlc_slarp_print(const u_char *cp, u_int length)
 trunc:
        printf("[|slarp]");
 }
+
+
+/*
+ * Local Variables:
+ * c-style: whitesmith
+ * c-basic-offset: 8
+ * End:
+ */