Deleted Added
full compact
2c2
< * Copyright (c) 1989, 1990, 1991, 1993, 1994, 1995, 1996
---
> * Copyright (c) 1989, 1990, 1991, 1993, 1994, 1995, 1996, 1997
24c24
< "@(#) $Header: print-sl.c,v 1.41 96/12/10 23:19:42 leres Exp $ (LBL)";
---
> "@(#) $Header: print-sl.c,v 1.42 97/06/12 14:21:35 leres Exp $ (LBL)";
57d56
< #include <signal.h>
77a77,78
> /* XXX needs more hacking to work right */
>
113a115,153
>
> void
> sl_bsdos_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
> {
> register u_int caplen = h->caplen;
> register u_int length = h->len;
> register const struct ip *ip;
>
> ts_print(&h->ts);
>
> if (caplen < SLIP_HDRLEN) {
> printf("[|slip]");
> goto out;
> }
> /*
> * Some printers want to get back at the link level addresses,
> * and/or check that they're not walking off the end of the packet.
> * Rather than pass them all the way down, we set these globals.
> */
> packetp = p;
> snapend = p + caplen;
>
> length -= SLIP_HDRLEN;
>
> ip = (struct ip *)(p + SLIP_HDRLEN);
>
> #ifdef notdef
> if (eflag)
> sliplink_print(p, ip, length);
> #endif
>
> ip_print((u_char *)ip, length);
>
> if (xflag)
> default_print((u_char *)ip, caplen - SLIP_HDRLEN);
> out:
> putchar('\n');
> }
>
249a290
>
256a298,305
>
> void
> sl_bsdos_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
> {
>
> error("not configured for slip");
> /* NOTREACHED */
> }