print-fddi.c (26183) | print-fddi.c (39300) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996 | 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 9 * this paragraph in its entirety in the documentation or other materials 10 * provided with the distribution, and (3) all advertising materials mentioning --- 5 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[] = | 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 --- 5 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[] = |
24 "@(#) $Header: print-fddi.c,v 1.33 96/12/10 23:20:49 leres Exp $ (LBL)"; | 24 "@(#) $Header: print-fddi.c,v 1.36 97/05/26 17:13:35 leres Exp $ (LBL)"; |
25#endif 26 27#ifdef HAVE_FDDI 28#include <sys/param.h> 29#include <sys/time.h> 30#include <sys/socket.h> 31#include <sys/file.h> 32#include <sys/ioctl.h> --- 7 unchanged lines hidden (view full) --- 40#include <netinet/in.h> 41#include <net/ethernet.h> 42#include <netinet/in_systm.h> 43#include <netinet/ip.h> 44 45#include <ctype.h> 46#include <netdb.h> 47#include <pcap.h> | 25#endif 26 27#ifdef HAVE_FDDI 28#include <sys/param.h> 29#include <sys/time.h> 30#include <sys/socket.h> 31#include <sys/file.h> 32#include <sys/ioctl.h> --- 7 unchanged lines hidden (view full) --- 40#include <netinet/in.h> 41#include <net/ethernet.h> 42#include <netinet/in_systm.h> 43#include <netinet/ip.h> 44 45#include <ctype.h> 46#include <netdb.h> 47#include <pcap.h> |
48#include <signal.h> | |
49#include <stdio.h> 50#include <string.h> 51 52#include "interface.h" 53#include "addrtoname.h" 54#include "ethertype.h" 55 56#include "fddi.h" 57 58/* 59 * Some FDDI interfaces use bit-swapped addresses. 60 */ | 48#include <stdio.h> 49#include <string.h> 50 51#include "interface.h" 52#include "addrtoname.h" 53#include "ethertype.h" 54 55#include "fddi.h" 56 57/* 58 * Some FDDI interfaces use bit-swapped addresses. 59 */ |
61#if defined(ultrix) || defined(__alpha) | 60#if defined(ultrix) || defined(__alpha) || defined(__bsdi) |
62int fddi_bitswap = 0; 63#else 64int fddi_bitswap = 1; 65#endif 66 67/* 68 * FDDI support for tcpdump, by Jeffrey Mogul [DECWRL], June 1992 69 * --- 285 unchanged lines hidden --- | 61int fddi_bitswap = 0; 62#else 63int fddi_bitswap = 1; 64#endif 65 66/* 67 * FDDI support for tcpdump, by Jeffrey Mogul [DECWRL], June 1992 68 * --- 285 unchanged lines hidden --- |