/********************************************************************************************************************************/ /* Created: 3-Mar-2009 18:04:58 by OpenVMS SDL EV2-3 */ /* Source: 03-MAR-2009 18:04:57 DISK$SYSMAN:[LAISHEV.WORK.ARP]ARPDEF.SDL;12 */ /********************************************************************************************************************************/ /*** MODULE ARPDEF IDENT ARPDEF-1-X ***/ #ifndef __ARPDEF_LOADED #define __ARPDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif #define ARP$K_REQUEST 1 #define ARP$K_REPLY 2 #ifdef __NEW_STARLET typedef struct _arp$_pdu { unsigned char arp$b_dst [6]; /* Ethernet address of destination */ unsigned char arp$b_src [6]; /* Ethernet address of sender */ unsigned short int arp$w_type; /* Protocol type = ether_type$ADDRESS_RESOLUTION */ unsigned short int arp$w_hrd; /* Hardware address space (e.g., Ethernet, */ /* Packet Radio Net.) */ unsigned short int arp$w_pro; /* Protocol address space. For Ethernet */ /* hardware, this is from the set of type */ /* fields ether_typ$. */ unsigned char arp$b_hln; /* byte length of each hardware address */ unsigned char arp$b_pln; /* byte length of each protocol address */ unsigned short int arp$w_op; /* opcode (ares_op$REQUEST | ares_op$REPLY) */ unsigned char arp$b_sha [6]; unsigned short int arp$w_spa; unsigned char arp$b_tha [6]; unsigned short int arp$w_tpa; } ARP$_PDU; #else /* __OLD_STARLET */ struct arp$_pdu { unsigned char arp$b_dst [6]; /* Ethernet address of destination */ unsigned char arp$b_src [6]; /* Ethernet address of sender */ unsigned short int arp$w_type; /* Protocol type = ether_type$ADDRESS_RESOLUTION */ unsigned short int arp$w_hrd; /* Hardware address space (e.g., Ethernet, */ /* Packet Radio Net.) */ unsigned short int arp$w_pro; /* Protocol address space. For Ethernet */ /* hardware, this is from the set of type */ /* fields ether_typ$. */ unsigned char arp$b_hln; /* byte length of each hardware address */ unsigned char arp$b_pln; /* byte length of each protocol address */ unsigned short int arp$w_op; /* opcode (ares_op$REQUEST | ares_op$REPLY) */ unsigned char arp$b_sha [6]; unsigned short int arp$w_spa; unsigned char arp$b_tha [6]; unsigned short int arp$w_tpa; } ; #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __ARPDEF_LOADED */