Deleted Added
full compact
print-token.c (127675) print-token.c (146778)
1/*
2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
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 * Hacked version of print-ether.c Larry Lile <lile@stdio.com>
22 *
23 * Further tweaked to more closely resemble print-fddi.c
24 * Guy Harris <guy@alum.mit.edu>
25 *
1/*
2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
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 * Hacked version of print-ether.c Larry Lile <lile@stdio.com>
22 *
23 * Further tweaked to more closely resemble print-fddi.c
24 * Guy Harris <guy@alum.mit.edu>
25 *
26 * $FreeBSD: head/contrib/tcpdump/print-token.c 127675 2004-03-31 14:57:24Z bms $
26 * $FreeBSD: head/contrib/tcpdump/print-token.c 146778 2005-05-29 19:09:28Z sam $
27 */
28#ifndef lint
29static const char rcsid[] _U_ =
27 */
28#ifndef lint
29static const char rcsid[] _U_ =
30 "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.22.2.2 2003/11/16 08:51:51 guy Exp $";
30 "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.25 2004/03/17 23:24:38 guy Exp $";
31#endif
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36
37#include <tcpdump-stdinc.h>
38

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

182 default_print(p, caplen);
183 }
184 return (hdr_len);
185}
186
187/*
188 * This is the top level routine of the printer. 'p' points
189 * to the TR header of the packet, 'h->ts' is the timestamp,
31#endif
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36
37#include <tcpdump-stdinc.h>
38

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

182 default_print(p, caplen);
183 }
184 return (hdr_len);
185}
186
187/*
188 * This is the top level routine of the printer. 'p' points
189 * to the TR header of the packet, 'h->ts' is the timestamp,
190 * 'h->length' is the length of the packet off the wire, and 'h->caplen'
190 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
191 * is the number of bytes actually captured.
192 */
193u_int
194token_if_print(const struct pcap_pkthdr *h, const u_char *p)
195{
196 return (token_print(p, h->len, h->caplen));
197}
191 * is the number of bytes actually captured.
192 */
193u_int
194token_if_print(const struct pcap_pkthdr *h, const u_char *p)
195{
196 return (token_print(p, h->len, h->caplen));
197}