print-ipfc.c (127668) | print-ipfc.c (146773) |
---|---|
1/* 2 * Copyright (c) 1991, 1992, 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 --- 7 unchanged lines hidden (view full) --- 16 * written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 */ 21 22#ifndef lint 23static const char rcsid[] _U_ = | 1/* 2 * Copyright (c) 1991, 1992, 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 --- 7 unchanged lines hidden (view full) --- 16 * written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 */ 21 22#ifndef lint 23static const char rcsid[] _U_ = |
24 "@(#) $Header: /tcpdump/master/tcpdump/print-ipfc.c,v 1.4.2.2 2003/11/16 08:51:28 guy Exp $ (LBL)"; | 24 "@(#) $Header: /tcpdump/master/tcpdump/print-ipfc.c,v 1.7 2004/03/17 23:24:37 guy Exp $ (LBL)"; |
25#endif 26 27#ifdef HAVE_CONFIG_H 28#include "config.h" 29#endif 30 31#include <tcpdump-stdinc.h> 32 --- 87 unchanged lines hidden (view full) --- 120 if (!xflag && !qflag) 121 default_print(p, caplen); 122 } 123} 124 125/* 126 * This is the top level routine of the printer. 'p' points 127 * to the Network_Header of the packet, 'h->ts' is the timestamp, | 25#endif 26 27#ifdef HAVE_CONFIG_H 28#include "config.h" 29#endif 30 31#include <tcpdump-stdinc.h> 32 --- 87 unchanged lines hidden (view full) --- 120 if (!xflag && !qflag) 121 default_print(p, caplen); 122 } 123} 124 125/* 126 * This is the top level routine of the printer. 'p' points 127 * to the Network_Header of the packet, 'h->ts' is the timestamp, |
128 * 'h->length' is the length of the packet off the wire, and 'h->caplen' | 128 * 'h->len' is the length of the packet off the wire, and 'h->caplen' |
129 * is the number of bytes actually captured. 130 */ 131u_int 132ipfc_if_print(const struct pcap_pkthdr *h, register const u_char *p) 133{ 134 ipfc_print(p, h->len, h->caplen); 135 136 return (IPFC_HDRLEN); 137} | 129 * is the number of bytes actually captured. 130 */ 131u_int 132ipfc_if_print(const struct pcap_pkthdr *h, register const u_char *p) 133{ 134 ipfc_print(p, h->len, h->caplen); 135 136 return (IPFC_HDRLEN); 137} |