home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / nfs / nfswatch4.0 / ultrix.map.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-01  |  2.1 KB  |  68 lines

  1. /*
  2.  * Copyright (c) 1988 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Lawrence Berkeley Laboratory,
  11.  * Berkeley, CA.  The name of the University may not be used to
  12.  * endorse or promote products derived from this software without
  13.  * specific prior written permission.
  14.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  15.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  16.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  17.  *
  18.  * @(#) $Header: /home/harbor/davy/system/nfswatch/RCS/ultrix.map.h,v 4.0 1993/03/01 19:59:00 davy Exp $ (LBL)
  19.  */
  20.  
  21. /*
  22.  * Cloned from sunos4.map.h, although this could really be a single
  23.  * file.
  24.  */
  25.  
  26. /* Arcane method for discovering if this is Ultrix 4.0 */
  27. #include <machine/cpuconf.h>
  28. #ifndef ST_DS5100
  29. #define ULTRIX40
  30. #endif /* ST_DS5100 */
  31.  
  32. #ifndef    IPPROTO_ND
  33. /* Trying to compile this not on a Sun system */
  34. #define    IPPROTO_ND    77    /* From <netinet/in.h> on a Sun somewhere */
  35. #endif    /* IPPROTO_ND */
  36.  
  37. #ifndef ETHERTYPE_REVARP
  38. /* some systems don't define this */
  39. #define ETHERTYPE_REVARP    0x8035
  40. #define REVARP_REQUEST        3
  41. #define REVARP_REPLY        4
  42. #endif  /* ETHERTYPE_REVARP */
  43.  
  44. #ifdef ULTRIX40
  45. struct ether_addr {
  46.         u_char  ether_addr_octet[6];
  47. };
  48. #endif /* ULTRIX40 */
  49.  
  50. /* Map things in the ether_arp struct */
  51. #define arp_xsha arp_sha
  52. #define arp_xspa arp_spa
  53. #define arp_xtha arp_tha
  54. #define arp_xtpa arp_tpa
  55.  
  56. /* Map protocol types */
  57. #define ETHERPUP_IPTYPE ETHERTYPE_IP
  58. #define ETHERPUP_REVARPTYPE ETHERTYPE_REVARP
  59. #define ETHERPUP_ARPTYPE ETHERTYPE_ARP
  60.  
  61. /* newish RIP commands */
  62. #ifndef    RIPCMD_POLL
  63. #define    RIPCMD_POLL    5
  64. #endif    /* RIPCMD_POLL */
  65. #ifndef    RIPCMD_POLLENTRY
  66. #define    RIPCMD_POLLENTRY    6
  67. #endif    /* RIPCMD_POLLENTRY */
  68.