/packages/libc/src/nipxh.inc
Unknown | 84 lines | 71 code | 13 blank | 0 comment | 0 complexity | b6ef211b783c2863f5206b41c324d599 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
1 2const 3 SOL_IPX = 256; 4 IPX_TYPE = 1; 5 IPX_NODE_LEN = 6; 6 IPX_MTU = 576; 7 8type 9 Psockaddr_ipx = ^sockaddr_ipx; 10 sockaddr_ipx = record 11 sipx_family : sa_family_t; 12 sipx_port : u_int16_t; 13 sipx_network : u_int32_t; 14 sipx_node : array[0..(IPX_NODE_LEN)-1] of byte; 15 sipx_type : u_int8_t; 16 sipx_zero : byte; 17 end; 18 19 20const 21 IPX_DLTITF = 0; 22 IPX_CRTITF = 1; 23 24type 25 26 Pipx_route_definition = ^ipx_route_definition; 27 ipx_route_definition = record 28 ipx_network : dword; 29 ipx_router_network : dword; 30 ipx_router_node : array[0..(IPX_NODE_LEN)-1] of byte; 31 end; 32 33 Pipx_interface_definition = ^ipx_interface_definition; 34 ipx_interface_definition = record 35 ipx_network : dword; 36 ipx_device : array[0..15] of byte; 37 ipx_dlink_type : byte; 38 ipx_special : byte; 39 ipx_node : array[0..(IPX_NODE_LEN)-1] of byte; 40 end; 41 42const 43 IPX_FRAME_NONE = 0; 44 IPX_FRAME_SNAP = 1; 45 IPX_FRAME_8022 = 2; 46 IPX_FRAME_ETHERII = 3; 47 IPX_FRAME_8023 = 4; 48 IPX_FRAME_TR_8022 = 5; 49 IPX_SPECIAL_NONE = 0; 50 IPX_PRIMARY = 1; 51 IPX_INTERNAL = 2; 52type 53 54 Pipx_config_data = ^ipx_config_data; 55 ipx_config_data = record 56 ipxcfg_auto_select_primary : byte; 57 ipxcfg_auto_create_interfaces : byte; 58 end; 59 Pipx_route_def = ^ipx_route_def; 60 ipx_route_def = record 61 ipx_network : dword; 62 ipx_router_network : dword; 63 ipx_router_node : array[0..(IPX_NODE_LEN)-1] of byte; 64 ipx_device : array[0..15] of byte; 65 ipx_flags : word; 66 end; 67 68 69const 70 IPX_ROUTE_NO_ROUTER = 0; 71 IPX_RT_SNAP = 8; 72 IPX_RT_8022 = 4; 73 IPX_RT_BLUEBOOK = 2; 74 IPX_RT_ROUTED = 1; 75 SIOCAIPXITFCRT = SIOCPROTOPRIVATE; 76 SIOCAIPXPRISLT = SIOCPROTOPRIVATE + 1; 77 SIOCIPXCFGDATA = SIOCPROTOPRIVATE + 2; 78 SIOCIPXNCPCONN = SIOCPROTOPRIVATE + 3; 79 80{ --------------------------------------------------------------------- 81 Borland compatibility types 82 ---------------------------------------------------------------------} 83 84// Type