home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / trace / tcpdump-2.2.1 / etherproto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-10  |  2.1 KB  |  71 lines

  1. /*
  2.  * Copyright (c) 1988-1990 The Regents of the University of California.
  3.  * 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
  11.  * features or use of this software display the following acknowledgement:
  12.  * ``This product includes software developed by the University of California,
  13.  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  14.  * the University nor the names of its contributors may be used to endorse
  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.  * @(#) $Header: etherproto.h,v 1.7 90/10/10 15:04:04 mccanne Exp $ (LBL)
  22.  */
  23.  
  24. /* Map between Ethernet protocol types and names */
  25.  
  26. /* Add other Ethernet packet types here */
  27. #ifndef    ETHERTYPE_SPRITE
  28. #define    ETHERTYPE_SPRITE    0x0500
  29. #endif
  30. #ifndef    ETHERTYPE_MOPDL
  31. #define    ETHERTYPE_MOPDL        0x6001
  32. #endif
  33. #ifndef    ETHERTYPE_MOPRC
  34. #define    ETHERTYPE_MOPRC        0x6002
  35. #endif
  36. #ifndef    ETHERTYPE_DN
  37. #define    ETHERTYPE_DN        0x6003
  38. #endif
  39. #ifndef    ETHERTYPE_LAT
  40. #define    ETHERTYPE_LAT        0x6004
  41. #endif
  42. #ifndef    ETHERTYPE_LANBRIDGE
  43. #define    ETHERTYPE_LANBRIDGE    0x8038
  44. #endif
  45. #ifndef    ETHERTYPE_VEXP
  46. #define    ETHERTYPE_VEXP        0x805b
  47. #endif
  48. #ifndef    ETHERTYPE_VPROD
  49. #define    ETHERTYPE_VPROD        0x805c
  50. #endif
  51. #ifndef    ETHERTYPE_LOOPBACK
  52. #define    ETHERTYPE_LOOPBACK    0x9000
  53. #endif
  54.  
  55. #ifndef ETHERTYPE_ATALK
  56. #define ETHERTYPE_ATALK        0x809b /* XXX */
  57. #endif
  58. #ifndef ETHERTYPE_AARP
  59. #define ETHERTYPE_AARP        0x80f3
  60. #endif
  61. #ifndef ETHERTYPE_NS
  62. #define ETHERTYPE_NS        0x0600
  63. #endif
  64.  
  65. struct eproto {
  66.     char *s;
  67.     u_short p;
  68. };
  69.  
  70. extern struct eproto eproto_db[];
  71.