*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.1 2000-07-25 05:28:11 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.8 2000-10-06 04:23:14 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
#include <sys/time.h>
#include <sys/socket.h>
-struct mbuf;
-struct rtentry;
-#include <net/if.h>
-
#include <netinet/in.h>
-#include <netinet/if_ether.h>
-#include <netinet/in_systm.h>
-#include <netinet/ip.h>
#include <pcap.h>
#include <stdio.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
#include "ethertype.h"
+#include "ether.h"
#include "token.h"
/* Extract src, dst addresses */
u_int caplen = h->caplen;
u_int length = h->len;
struct token_header *trp;
- u_short ether_type;
u_short extracted_ethertype;
struct ether_header ehdr;
u_int route_len = 0, seg;