print-ap1394.c (127668) | print-ap1394.c (146773) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 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 --- 6 unchanged lines hidden (view full) --- 15 * or promote products derived from this software without specific prior 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#ifndef lint 22static const char rcsid[] _U_ = | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 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 --- 6 unchanged lines hidden (view full) --- 15 * or promote products derived from this software without specific prior 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#ifndef lint 22static const char rcsid[] _U_ = |
23 "@(#) $Header: /tcpdump/master/tcpdump/print-ap1394.c,v 1.1.2.1 2004/03/17 22:15:53 guy Exp $ (LBL)"; | 23 "@(#) $Header: /tcpdump/master/tcpdump/print-ap1394.c,v 1.3 2004/03/17 23:24:35 guy Exp $ (LBL)"; |
24#endif 25 26#ifdef HAVE_CONFIG_H 27#include "config.h" 28#endif 29 30#include <tcpdump-stdinc.h> 31 --- 40 unchanged lines hidden (view full) --- 72 } 73 74 (void)printf(", length %u: ", length); 75} 76 77/* 78 * This is the top level routine of the printer. 'p' points 79 * to the ether header of the packet, 'h->ts' is the timestamp, | 24#endif 25 26#ifdef HAVE_CONFIG_H 27#include "config.h" 28#endif 29 30#include <tcpdump-stdinc.h> 31 --- 40 unchanged lines hidden (view full) --- 72 } 73 74 (void)printf(", length %u: ", length); 75} 76 77/* 78 * This is the top level routine of the printer. 'p' points 79 * to the ether header of the packet, 'h->ts' is the timestamp, |
80 * 'h->length' is the length of the packet off the wire, and 'h->caplen' | 80 * 'h->len' is the length of the packet off the wire, and 'h->caplen' |
81 * is the number of bytes actually captured. 82 */ 83u_int 84ap1394_if_print(const struct pcap_pkthdr *h, const u_char *p) 85{ 86 u_int length = h->len; 87 u_int caplen = h->caplen; 88 struct firewire_header *fp; --- 31 unchanged lines hidden --- | 81 * is the number of bytes actually captured. 82 */ 83u_int 84ap1394_if_print(const struct pcap_pkthdr *h, const u_char *p) 85{ 86 u_int length = h->len; 87 u_int caplen = h->caplen; 88 struct firewire_header *fp; --- 31 unchanged lines hidden --- |