diff options
Diffstat (limited to 'contrib/tcpdump/print-fddi.c')
-rw-r--r-- | contrib/tcpdump/print-fddi.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/contrib/tcpdump/print-fddi.c b/contrib/tcpdump/print-fddi.c index a178f15..6871737 100644 --- a/contrib/tcpdump/print-fddi.c +++ b/contrib/tcpdump/print-fddi.c @@ -17,11 +17,13 @@ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $FreeBSD$ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.53 2001/11/14 16:46:34 fenner Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-fddi.c,v 1.50 2000/12/23 20:48:13 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -52,7 +54,7 @@ static const char rcsid[] = /* * Some FDDI interfaces use bit-swapped addresses. */ -#if defined(ultrix) || defined(__alpha) || defined(__bsdi) || defined(__NetBSD__) || defined(__linux__) +#if defined(ultrix) || defined(__alpha) || defined(__bsdi) || defined(__NetBSD__) int fddi_bitswap = 0; #else int fddi_bitswap = 1; @@ -210,8 +212,8 @@ extract_fddi_addrs(const struct fddi_header *fddip, char *fsrc, char *fdst) fsrc[i] = fddi_bit_swap[fddip->fddi_shost[i]]; } else { - memcpy(fdst, (const char *)fddip->fddi_dhost, 6); - memcpy(fsrc, (const char *)fddip->fddi_shost, 6); + memcpy(fdst, (char *)fddip->fddi_dhost, 6); + memcpy(fsrc, (char *)fddip->fddi_shost, 6); } } @@ -222,7 +224,7 @@ static inline void fddi_print(register const struct fddi_header *fddip, register u_int length, register const u_char *fsrc, register const u_char *fdst) { - const char *srcname, *dstname; + char *srcname, *dstname; srcname = etheraddr_string(fsrc); dstname = etheraddr_string(fdst); @@ -258,11 +260,10 @@ fddi_if_print(u_char *pcap, const struct pcap_pkthdr *h, { u_int caplen = h->caplen; u_int length = h->len; - const struct fddi_header *fddip = (const struct fddi_header *)p; + const struct fddi_header *fddip = (struct fddi_header *)p; struct ether_header ehdr; u_short extracted_ethertype; - ++infodelay; ts_print(&h->ts); if (caplen < FDDI_HDRLEN) { @@ -329,7 +330,4 @@ fddi_if_print(u_char *pcap, const struct pcap_pkthdr *h, default_print(p, caplen); out: putchar('\n'); - --infodelay; - if (infoprint) - info(0); } |