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.7.2.1 2005/07/07 01:24:36 guy Exp $ (LBL)"; |
25#endif 26 27#ifdef HAVE_CONFIG_H 28#include "config.h" 29#endif 30 31#include <tcpdump-stdinc.h> 32 --- 79 unchanged lines hidden (view full) --- 112 */ 113 if (!eflag) 114 ipfc_hdr_print(ipfcp, length + IPFC_HDRLEN, 115 ESRC(&ehdr), EDST(&ehdr)); 116 if (extracted_ethertype) { 117 printf("(LLC %s) ", 118 etherproto_string(htons(extracted_ethertype))); 119 } |
120 if (!suppress_default_print) |
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->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} |