]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sl.c
Add changes in 4.2.1.
[tcpdump] / print-sl.c
index 547996fe25f5eafb02d2368a71106e82d4e44562..91dbaadc275b19341a0a793dd10362420445ecc8 100644 (file)
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+#ifndef lint
+static const char rcsid[] _U_ =
+    "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.65 2005-04-06 21:32:42 mcr Exp $ (LBL)";
+#endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #include "addrtoname.h"
 #include "extract.h"                   /* must come after interface.h */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.63 2003-11-15 00:39:39 guy Exp $ (LBL)";
-#endif
 #include "ip.h"
 #include "tcp.h"
 #include "slip.h"
@@ -69,11 +69,11 @@ sl_if_print(const struct pcap_pkthdr *h, const u_char *p)
 
        switch (IP_V(ip)) {
        case 4:
-               ip_print((u_char *)ip, length);
+               ip_print(gndo, (u_char *)ip, length);
                break;
 #ifdef INET6
        case 6:
-               ip6_print((u_char *)ip, length);
+               ip6_print(gndo, (u_char *)ip, length);
                break;
 #endif
        default:
@@ -104,7 +104,7 @@ sl_bsdos_if_print(const struct pcap_pkthdr *h, const u_char *p)
                sliplink_print(p, ip, length);
 #endif
 
-       ip_print((u_char *)ip, length);
+       ip_print(gndo, (u_char *)ip, length);
 
        return (SLIP_HDRLEN);
 }