Deleted Added
full compact
print-vjc.c (56893) print-vjc.c (75115)
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 9 unchanged lines hidden (view full) ---

18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22#ifdef HAVE_CONFIG_H
23#include "config.h"
24#endif
25
1/*
2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 9 unchanged lines hidden (view full) ---

18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22#ifdef HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#if defined(__bsdi__)
27
28#ifndef lint
29static const char rcsid[] =
26#ifndef lint
27static const char rcsid[] =
30 "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.2.2.1 2000/01/11 06:58:28 fenner Exp $ (LBL)";
28 "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.9 2000/10/09 01:53:21 guy Exp $ (LBL)";
31#endif
32
33#include <sys/param.h>
34#include <sys/time.h>
29#endif
30
31#include <sys/param.h>
32#include <sys/time.h>
35#include <sys/socket.h>
36#include <sys/file.h>
37#include <sys/ioctl.h>
38
33
39#if __STDC__
40struct mbuf;
41struct rtentry;
42#endif
43#include <net/if.h>
44
45#include <netinet/in.h>
34#include <netinet/in.h>
46#include <netinet/in_systm.h>
47#include <netinet/ip.h>
48#include <netinet/if_ether.h>
49
50#include <ctype.h>
51#include <netdb.h>
52#include <pcap.h>
53#include <stdio.h>
54
35
36#include <ctype.h>
37#include <netdb.h>
38#include <pcap.h>
39#include <stdio.h>
40
55#if defined(__NetBSD__)
56#include <sys/mbuf.h>
57#include <net/ppp_defs.h>
58#endif
59
60#if defined(__bsdi__) || defined(__NetBSD__)
61#include <net/if_ppp.h>
62#include <net/slcompress.h>
63#endif
64
65#include "interface.h"
66#include "addrtoname.h"
67
41#include "interface.h"
42#include "addrtoname.h"
43
44#include "slcompress.h"
45#include "ppp.h"
46
68int
69vjc_print(register const char *bp, register u_int length, u_short proto)
70{
71 int i;
72
73 switch (bp[0] & 0xf0) {
74 case TYPE_IP:
75 if (eflag)

--- 20 unchanged lines hidden (view full) ---

96 printf("(vjc type=error) ");
97 return -1;
98 default:
99 if (eflag)
100 printf("(vjc type=0x%02x) ", bp[0] & 0xf0);
101 return -1;
102 }
103}
47int
48vjc_print(register const char *bp, register u_int length, u_short proto)
49{
50 int i;
51
52 switch (bp[0] & 0xf0) {
53 case TYPE_IP:
54 if (eflag)

--- 20 unchanged lines hidden (view full) ---

75 printf("(vjc type=error) ");
76 return -1;
77 default:
78 if (eflag)
79 printf("(vjc type=0x%02x) ", bp[0] & 0xf0);
80 return -1;
81 }
82}
104#endif /* defined(__bsdi__) || defined(__NetBSD__) */