print-atm.c (32149) | print-atm.c (39300) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1994, 1995, 1996 | 2 * Copyright (c) 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 9 * this paragraph in its entirety in the documentation or other materials 10 * provided with the distribution, and (3) all advertising materials mentioning --- 4 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[] = | 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 * this paragraph in its entirety in the documentation or other materials 10 * provided with the distribution, and (3) all advertising materials mentioning --- 4 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[] = |
23 "@(#) $Header: print-atm.c,v 1.8 96/09/26 23:36:41 leres Exp $ (LBL)"; | 23 "@(#) $Header: print-atm.c,v 1.9 97/05/28 12:52:40 leres Exp $ (LBL)"; |
24#endif 25 26#include <sys/param.h> 27#include <sys/time.h> 28#include <sys/socket.h> 29 30#if __STDC__ 31struct mbuf; --- 11 unchanged lines hidden (view full) --- 43#include <netinet/udp.h> 44#include <netinet/udp_var.h> 45#include <netinet/tcp.h> 46#include <netinet/tcpip.h> 47 48#include <stdio.h> 49#include <pcap.h> 50 | 24#endif 25 26#include <sys/param.h> 27#include <sys/time.h> 28#include <sys/socket.h> 29 30#if __STDC__ 31struct mbuf; --- 11 unchanged lines hidden (view full) --- 43#include <netinet/udp.h> 44#include <netinet/udp_var.h> 45#include <netinet/tcp.h> 46#include <netinet/tcpip.h> 47 48#include <stdio.h> 49#include <pcap.h> 50 |
51#include "interface.h" |
|
51#include "addrtoname.h" 52#include "ethertype.h" | 52#include "addrtoname.h" 53#include "ethertype.h" |
53#include "interface.h" | |
54 55/* 56 * This is the top level routine of the printer. 'p' is the points 57 * to the LLC/SNAP header of the packet, 'tvp' is the timestamp, 58 * 'length' is the length of the packet off the wire, and 'caplen' 59 * is the number of bytes actually captured. 60 */ 61void --- 101 unchanged lines hidden --- | 54 55/* 56 * This is the top level routine of the printer. 'p' is the points 57 * to the LLC/SNAP header of the packet, 'tvp' is the timestamp, 58 * 'length' is the length of the packet off the wire, and 'caplen' 59 * is the number of bytes actually captured. 60 */ 61void --- 101 unchanged lines hidden --- |