root/include/linux/ipx.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _IPX_H_
   2 #define _IPX_H_
   3 #include <linux/sockios.h>
   4 #define IPX_NODE_LEN    6
   5 #define IPX_MTU         576
   6 
   7 struct sockaddr_ipx
   8 {
   9         short sipx_family;
  10         unsigned long  sipx_network;
  11         unsigned char sipx_node[IPX_NODE_LEN];
  12         short sipx_port;
  13         unsigned char   sipx_type;
  14         unsigned char   sipx_zero;      /* 16 byte fill */
  15 };
  16 
  17 /*
  18  *      So we can fit the extra info for SIOCSIFADDR into the address nicely
  19  */
  20  
  21 #define sipx_primary    sipx_port
  22 #define sipx_internal   sipx_zero
  23 
  24 typedef struct ipx_route_definition
  25 {
  26         unsigned long ipx_network;
  27         unsigned long ipx_router_network;
  28         unsigned char ipx_router_node[IPX_NODE_LEN];
  29 }       ipx_route_definition;
  30 
  31 typedef struct ipx_interface_definition
  32 {
  33         unsigned long ipx_network;
  34         unsigned char ipx_device[16];
  35         unsigned short ipx_dlink_type;
  36 #define IPX_FRAME_NONE          0
  37 #define IPX_FRAME_SNAP          1
  38 #define IPX_FRAME_8022          2
  39 #define IPX_FRAME_ETHERII       3
  40 #define IPX_FRAME_8023          4
  41         unsigned char ipx_primary;
  42         unsigned char ipx_internal;
  43         unsigned char ipx_node[IPX_NODE_LEN];
  44 }       ipx_interface_definition;
  45         
  46 typedef struct ipx_config_data
  47 {
  48         unsigned char   ipxcfg_auto_select_primary;
  49         unsigned char   ipxcfg_auto_create_interfaces;
  50 }       ipx_config_data;
  51 
  52 /*
  53  * OLD Route Definition for backware compatibility.
  54  */
  55 
  56 struct ipx_route_def
  57 {
  58         unsigned long ipx_network;
  59         unsigned long ipx_router_network;
  60 #define IPX_ROUTE_NO_ROUTER     0
  61         unsigned char ipx_router_node[IPX_NODE_LEN];
  62         unsigned char ipx_device[16];
  63         unsigned short ipx_flags;
  64 #define IPX_RT_SNAP             8
  65 #define IPX_RT_8022             4
  66 #define IPX_RT_BLUEBOOK         2
  67 #define IPX_RT_ROUTED           1
  68 };
  69 
  70 #define SIOCAIPXITFCRT          (SIOCPROTOPRIVATE)
  71 #define SIOCAIPXPRISLT          (SIOCPROTOPRIVATE+1)
  72 #define SIOCIPXCFGDATA          (SIOCPROTOPRIVATE+2)
  73 #endif
  74 

/* [previous][next][first][last][top][bottom][index][help] */