ipx.h
001: 
002: 
003: 
004: 
005: 
006: 
007: 
008: 
009: 
010: 
011: 
012: 
013: 
014: 
015: 
016: 
017: 
018: 
019: #ifndef __NETIPX_IPX_H
020: #define __NETIPX_IPX_H 1
021: 
022: #include <features.h>
023: 
024: #include <sys/types.h>
025: #include <bits/sockaddr.h>
026: 
027: __BEGIN_DECLS
028: 
029: #define SOL_IPX    256          
030: 
031: #define IPX_TYPE        1
032: #define IPX_NODE_LEN    6
033: #define IPX_MTU         576
034: 
035: struct sockaddr_ipx
036:   {
037:     sa_family_t sipx_family;
038:     u_int16_t sipx_port;
039:     u_int32_t sipx_network;
040:     unsigned char sipx_node[IPX_NODE_LEN];
041:     u_int8_t sipx_type;
042:     unsigned char sipx_zero;    
043:   };
044: 
045: 
046: 
047: 
048: 
049: #define sipx_special    sipx_port
050: #define sipx_action     sipx_zero
051: #define IPX_DLTITF      0
052: #define IPX_CRTITF      1
053: 
054: typedef struct ipx_route_definition
055:   {
056:     unsigned long ipx_network;
057:     unsigned long ipx_router_network;
058:     unsigned char ipx_router_node[IPX_NODE_LEN];
059:   }
060: ipx_route_definition;
061: 
062: typedef struct ipx_interface_definition
063:   {
064:     unsigned long ipx_network;
065:     unsigned char ipx_device[16];
066:     unsigned char ipx_dlink_type;
067: #define IPX_FRAME_NONE          0
068: #define IPX_FRAME_SNAP          1
069: #define IPX_FRAME_8022          2
070: #define IPX_FRAME_ETHERII       3
071: #define IPX_FRAME_8023          4
072: #define IPX_FRAME_TR_8022       5
073:     unsigned char ipx_special;
074: #define IPX_SPECIAL_NONE        0
075: #define IPX_PRIMARY             1
076: #define IPX_INTERNAL            2
077:     unsigned char ipx_node[IPX_NODE_LEN];
078:   }
079: ipx_interface_definition;
080: 
081: typedef struct ipx_config_data
082:   {
083:     unsigned char ipxcfg_auto_select_primary;
084:     unsigned char ipxcfg_auto_create_interfaces;
085:   }
086: ipx_config_data;
087: 
088: 
089: 
090: 
091: 
092: struct ipx_route_def
093:   {
094:     unsigned long ipx_network;
095:     unsigned long ipx_router_network;
096: #define IPX_ROUTE_NO_ROUTER     0
097:     unsigned char ipx_router_node[IPX_NODE_LEN];
098:     unsigned char ipx_device[16];
099:     unsigned short ipx_flags;
100: #define IPX_RT_SNAP             8
101: #define IPX_RT_8022             4
102: #define IPX_RT_BLUEBOOK         2
103: #define IPX_RT_ROUTED           1
104:   };
105: 
106: #define SIOCAIPXITFCRT          (SIOCPROTOPRIVATE)
107: #define SIOCAIPXPRISLT          (SIOCPROTOPRIVATE + 1)
108: #define SIOCIPXCFGDATA          (SIOCPROTOPRIVATE + 2)
109: #define SIOCIPXNCPCONN          (SIOCPROTOPRIVATE + 3)
110: 
111: __END_DECLS
112: 
113: #endif 
114: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved