/* This file was automatically generated by Epilogue Technology's * network datastructure layout tool. * * DO NOT MODIFY THIS FILE BY HAND. * * Source file information: * Id: dhcp.ldb,v 1.1 1998/11/23 20:54:35 wes Exp * --used -- * Id: ip.ldb,v 1.17 1998/02/25 15:21:40 sra Exp * Id: arp.ldb,v 1.10 1998/02/25 15:21:38 sra Exp */ #ifndef EPILOGUE_LAYOUT_DHCP_H #define EPILOGUE_LAYOUT_DHCP_H #ifndef EPILOGUE_INSTALL_H #include #endif #ifndef EPILOGUE_TYPES_H #include #endif #ifndef EPILOGUE_LAYOUT_LDBGLUE_H #include #endif /* Definitions for DHCP_MSG */ #define SIZEOF_DHCP_MSG (548) #define PTR_DHCP_MSG_OPCODE(_P_)\ ((GLUE_CAST_PTR(_P_))) #define GET_DHCP_MSG_OPCODE(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))) #define SET_DHCP_MSG_OPCODE(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_)), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_HTYPE(_P_)\ ((GLUE_CAST_PTR(_P_))+(1)) #define GET_DHCP_MSG_HTYPE(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(1)) #define SET_DHCP_MSG_HTYPE(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(1), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_HLEN(_P_)\ ((GLUE_CAST_PTR(_P_))+(2)) #define GET_DHCP_MSG_HLEN(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(2)) #define SET_DHCP_MSG_HLEN(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(2), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_HOPS(_P_)\ ((GLUE_CAST_PTR(_P_))+(3)) #define GET_DHCP_MSG_HOPS(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(3)) #define SET_DHCP_MSG_HOPS(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(3), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_XID(_P_)\ ((GLUE_CAST_PTR(_P_))+(4)) #define GET_DHCP_MSG_XID(_P_)\ GLUE_GB32((GLUE_CAST_PTR(_P_))+(4)) #define SET_DHCP_MSG_XID(_P_, _V_)\ GLUE_SB32((GLUE_CAST_PTR(_P_))+(4), GLUE_CAST32(_V_)) #define PTR_DHCP_MSG_SECS(_P_)\ ((GLUE_CAST_PTR(_P_))+(8)) #define GET_DHCP_MSG_SECS(_P_)\ GLUE_GB16((GLUE_CAST_PTR(_P_))+(8)) #define SET_DHCP_MSG_SECS(_P_, _V_)\ GLUE_SB16((GLUE_CAST_PTR(_P_))+(8), GLUE_CAST16(_V_)) #define PTR_DHCP_MSG_FLAGS(_P_)\ ((GLUE_CAST_PTR(_P_))+(10)) #define GET_DHCP_MSG_FLAGS(_P_)\ GLUE_GB16((GLUE_CAST_PTR(_P_))+(10)) #define SET_DHCP_MSG_FLAGS(_P_, _V_)\ GLUE_SB16((GLUE_CAST_PTR(_P_))+(10), GLUE_CAST16(_V_)) #define PTR_DHCP_MSG_CIADDR(_P_)\ ((GLUE_CAST_PTR(_P_))+(12)) #define PTR_DHCP_MSG_YIADDR(_P_)\ ((GLUE_CAST_PTR(_P_))+(16)) #define PTR_DHCP_MSG_SIADDR(_P_)\ ((GLUE_CAST_PTR(_P_))+(20)) #define PTR_DHCP_MSG_GIADDR(_P_)\ ((GLUE_CAST_PTR(_P_))+(24)) #define PTR_DHCP_MSG_CHADDR(_P_)\ ((GLUE_CAST_PTR(_P_))+(28)) #define SIZEOF_DHCP_MSG_CHADDR (16) #define PTR_DHCP_MSG_CHADDR_ELT(_P_, _X0_)\ ((GLUE_CAST_PTR(_P_))+(28)+(_X0_)) #define GET_DHCP_MSG_CHADDR_ELT(_P_, _X0_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(28)+(_X0_)) #define SET_DHCP_MSG_CHADDR_ELT(_P_, _X0_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(28)+(_X0_), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_SNAME(_P_)\ ((GLUE_CAST_PTR(_P_))+(44)) #define SIZEOF_DHCP_MSG_SNAME (64) #define PTR_DHCP_MSG_SNAME_ELT(_P_, _X0_)\ ((GLUE_CAST_PTR(_P_))+(44)+(_X0_)) #define GET_DHCP_MSG_SNAME_ELT(_P_, _X0_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(44)+(_X0_)) #define SET_DHCP_MSG_SNAME_ELT(_P_, _X0_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(44)+(_X0_), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_FILE(_P_)\ ((GLUE_CAST_PTR(_P_))+(108)) #define SIZEOF_DHCP_MSG_FILE (128) #define PTR_DHCP_MSG_FILE_ELT(_P_, _X0_)\ ((GLUE_CAST_PTR(_P_))+(108)+(_X0_)) #define GET_DHCP_MSG_FILE_ELT(_P_, _X0_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(108)+(_X0_)) #define SET_DHCP_MSG_FILE_ELT(_P_, _X0_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(108)+(_X0_), GLUE_CAST08(_V_)) #define PTR_DHCP_MSG_COOKIE(_P_)\ ((GLUE_CAST_PTR(_P_))+(236)) #define GET_DHCP_MSG_COOKIE(_P_)\ GLUE_GB32((GLUE_CAST_PTR(_P_))+(236)) #define SET_DHCP_MSG_COOKIE(_P_, _V_)\ GLUE_SB32((GLUE_CAST_PTR(_P_))+(236), GLUE_CAST32(_V_)) #define PTR_DHCP_MSG_OPTIONS(_P_)\ ((GLUE_CAST_PTR(_P_))+(236)) #define SIZEOF_DHCP_MSG_OPTIONS (312) #define PTR_DHCP_MSG_OPTIONS_ELT(_P_, _X0_)\ ((GLUE_CAST_PTR(_P_))+(236)+(_X0_)) #define GET_DHCP_MSG_OPTIONS_ELT(_P_, _X0_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(236)+(_X0_)) #define SET_DHCP_MSG_OPTIONS_ELT(_P_, _X0_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(236)+(_X0_), GLUE_CAST08(_V_)) /* Definitions for DHCP_OPTION_HDR */ #define SIZEOF_DHCP_OPTION_HDR (2) #define PTR_DHCP_OPTION_HDR_TAG(_P_)\ ((GLUE_CAST_PTR(_P_))) #define GET_DHCP_OPTION_HDR_TAG(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))) #define SET_DHCP_OPTION_HDR_TAG(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_)), GLUE_CAST08(_V_)) #define PTR_DHCP_OPTION_HDR_length(_P_)\ ((GLUE_CAST_PTR(_P_))+(1)) #define GET_DHCP_OPTION_HDR_length(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))+(1)) #define SET_DHCP_OPTION_HDR_length(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_))+(1), GLUE_CAST08(_V_)) /* Definitions for DHCP_MSGTYPE */ #define SIZEOF_DHCP_MSGTYPE (1) #define GET_DHCP_MSGTYPE(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))) #define SET_DHCP_MSGTYPE(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_)), GLUE_CAST08(_V_)) #define DHCP_MSGTYPE_is_DHCPDISCOVER GLUE_CAST08(1L) #define DHCP_MSGTYPE_is_DHCPOFFER GLUE_CAST08(2L) #define DHCP_MSGTYPE_is_DHCPREQUEST GLUE_CAST08(3L) #define DHCP_MSGTYPE_is_DHCPDECLINE GLUE_CAST08(4L) #define DHCP_MSGTYPE_is_DHCPACK GLUE_CAST08(5L) #define DHCP_MSGTYPE_is_DHCPNAK GLUE_CAST08(6L) #define DHCP_MSGTYPE_is_DHCPRELEASE GLUE_CAST08(7L) #define DHCP_MSGTYPE_is_DHCPINFORM GLUE_CAST08(8L) /* Definitions for DHCP_TAG */ #define SIZEOF_DHCP_TAG (1) #define GET_DHCP_TAG(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))) #define SET_DHCP_TAG(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_)), GLUE_CAST08(_V_)) #define DHCP_TAG_is_PAD GLUE_CAST08(0L) #define DHCP_TAG_is_SUBNET_MASK GLUE_CAST08(1L) #define DHCP_TAG_is_TIMEOFFSET GLUE_CAST08(2L) #define DHCP_TAG_is_ROUTER GLUE_CAST08(3L) #define DHCP_TAG_is_TIMESERVER GLUE_CAST08(4L) #define DHCP_TAG_is_IEN116SERVER GLUE_CAST08(5L) #define DHCP_TAG_is_DNSSERVER GLUE_CAST08(6L) #define DHCP_TAG_is_LOGSERVER GLUE_CAST08(7L) #define DHCP_TAG_is_COOKIESERVER GLUE_CAST08(8L) #define DHCP_TAG_is_LPRSERVER GLUE_CAST08(9L) #define DHCP_TAG_is_IMPRESSSERVER GLUE_CAST08(10L) #define DHCP_TAG_is_RLPSERVER GLUE_CAST08(11L) #define DHCP_TAG_is_HOSTNAME GLUE_CAST08(12L) #define DHCP_TAG_is_BOOTFILESIZE GLUE_CAST08(13L) #define DHCP_TAG_is_MERITFILESIZE GLUE_CAST08(14L) #define DHCP_TAG_is_DOMAINNAME GLUE_CAST08(15L) #define DHCP_TAG_is_SWAPSERVER GLUE_CAST08(16L) #define DHCP_TAG_is_ROOTPATH GLUE_CAST08(17L) #define DHCP_TAG_is_EXTENSIONSPATH GLUE_CAST08(18L) #define DHCP_TAG_is_IPFORWARD GLUE_CAST08(19L) #define DHCP_TAG_is_SOURCEROUTE GLUE_CAST08(20L) #define DHCP_TAG_is_POLICYFILT GLUE_CAST08(21L) #define DHCP_TAG_is_MAX_REASSEMBLY GLUE_CAST08(22L) #define DHCP_TAG_is_DEF_TTL GLUE_CAST08(23L) #define DHCP_TAG_is_MTU_TIMEOUT GLUE_CAST08(24L) #define DHCP_TAG_is_MTU_PLATEAUS GLUE_CAST08(25L) #define DHCP_TAG_is_MTU_VALUE GLUE_CAST08(26L) #define DHCP_TAG_is_MTU_SUBNETS_LOCAL GLUE_CAST08(27L) #define DHCP_TAG_is_BROADCAST_ADDR GLUE_CAST08(28L) #define DHCP_TAG_is_MASK_DISCOVER GLUE_CAST08(29L) #define DHCP_TAG_is_MASK_SUPPLY GLUE_CAST08(30L) #define DHCP_TAG_is_ROUTER_DISCOVER GLUE_CAST08(31L) #define DHCP_TAG_is_ROUTER_SOLICIT_ADDR GLUE_CAST08(32L) #define DHCP_TAG_is_STATIC_ROUTES GLUE_CAST08(33L) #define DHCP_TAG_is_ARP_TRAILERS GLUE_CAST08(34L) #define DHCP_TAG_is_ARP_TIMEOUT GLUE_CAST08(35L) #define DHCP_TAG_is_ETHERNET_802_3 GLUE_CAST08(36L) #define DHCP_TAG_is_TCP_TTL GLUE_CAST08(37L) #define DHCP_TAG_is_TCP_KEEPALIVE_VALUE GLUE_CAST08(38L) #define DHCP_TAG_is_TCP_KEEPALIVE_GARBAGE GLUE_CAST08(39L) #define DHCP_TAG_is_NIS_DOMAIN GLUE_CAST08(40L) #define DHCP_TAG_is_NIS_SERVERS GLUE_CAST08(41L) #define DHCP_TAG_is_NTP_SERVERS GLUE_CAST08(42L) #define DHCP_TAG_is_VENDOR_SPECIFIC GLUE_CAST08(43L) #define DHCP_TAG_is_NB_NS GLUE_CAST08(44L) #define DHCP_TAG_is_NB_DD GLUE_CAST08(45L) #define DHCP_TAG_is_NB_NODETYPE GLUE_CAST08(46L) #define DHCP_TAG_is_NB_SCOPE GLUE_CAST08(47L) #define DHCP_TAG_is_X_FS GLUE_CAST08(48L) #define DHCP_TAG_is_X_DM GLUE_CAST08(49L) #define DHCP_TAG_is_REQ_ADDR GLUE_CAST08(50L) #define DHCP_TAG_is_LEASE_TIME GLUE_CAST08(51L) #define DHCP_TAG_is_OPT_OVERLOAD GLUE_CAST08(52L) #define DHCP_TAG_is_MSG_TYPE GLUE_CAST08(53L) #define DHCP_TAG_is_SERVER_ID GLUE_CAST08(54L) #define DHCP_TAG_is_PARAMS_REQ GLUE_CAST08(55L) #define DHCP_TAG_is_ERR_MESSAGE GLUE_CAST08(56L) #define DHCP_TAG_is_MAX_MSG_SIZE GLUE_CAST08(57L) #define DHCP_TAG_is_TIME_T1 GLUE_CAST08(58L) #define DHCP_TAG_is_TIME_T2 GLUE_CAST08(59L) #define DHCP_TAG_is_CLASS_ID GLUE_CAST08(60L) #define DHCP_TAG_is_CLIENT_ID GLUE_CAST08(61L) #define DHCP_TAG_is_END GLUE_CAST08(255L) /* Definitions for BOOTP_OPCODE */ #define SIZEOF_BOOTP_OPCODE (1) #define GET_BOOTP_OPCODE(_P_)\ GLUE_GB08((GLUE_CAST_PTR(_P_))) #define SET_BOOTP_OPCODE(_P_, _V_)\ GLUE_SB08((GLUE_CAST_PTR(_P_)), GLUE_CAST08(_V_)) #define BOOTP_OPCODE_is_REQUEST GLUE_CAST08(1L) #define BOOTP_OPCODE_is_REPLY GLUE_CAST08(2L) #endif /* EPILOGUE_LAYOUT_DHCP_H */