source: svn/trunk/newcon3bcm2_21bu/toolchain/mipsel-linux-uclibc/include/linux/ipx.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.8 KB
Line 
1#ifndef _IPX_H_
2#define _IPX_H_
3#include <asm/types.h>
4
5#include <linux/sockios.h>
6#include <sys/socket.h>
7#define IPX_NODE_LEN    6
8#define IPX_MTU         576
9
10struct sockaddr_ipx {
11        sa_family_t     sipx_family;
12        __u16           sipx_port;
13        __u32           sipx_network;
14        unsigned char   sipx_node[IPX_NODE_LEN];
15        __u8            sipx_type;
16        unsigned char   sipx_zero;      /* 16 byte fill */
17};
18
19/*
20 * So we can fit the extra info for SIOCSIFADDR into the address nicely
21 */
22#define sipx_special    sipx_port
23#define sipx_action     sipx_zero
24#define IPX_DLTITF      0
25#define IPX_CRTITF      1
26
27struct ipx_route_definition {
28        __u32         ipx_network;
29        __u32         ipx_router_network;
30        unsigned char ipx_router_node[IPX_NODE_LEN];
31};
32
33struct ipx_interface_definition {
34        __u32         ipx_network;
35        unsigned char ipx_device[16];
36        unsigned char ipx_dlink_type;
37#define IPX_FRAME_NONE          0
38#define IPX_FRAME_SNAP          1
39#define IPX_FRAME_8022          2
40#define IPX_FRAME_ETHERII       3
41#define IPX_FRAME_8023          4
42#define IPX_FRAME_TR_8022       5 /* obsolete */
43        unsigned char ipx_special;
44#define IPX_SPECIAL_NONE        0
45#define IPX_PRIMARY             1
46#define IPX_INTERNAL            2
47        unsigned char ipx_node[IPX_NODE_LEN];
48};
49       
50struct ipx_config_data {
51        unsigned char   ipxcfg_auto_select_primary;
52        unsigned char   ipxcfg_auto_create_interfaces;
53};
54
55/*
56 * OLD Route Definition for backward compatibility.
57 */
58
59struct ipx_route_def {
60        __u32           ipx_network;
61        __u32           ipx_router_network;
62#define IPX_ROUTE_NO_ROUTER     0
63        unsigned char   ipx_router_node[IPX_NODE_LEN];
64        unsigned char   ipx_device[16];
65        unsigned short  ipx_flags;
66#define IPX_RT_SNAP             8
67#define IPX_RT_8022             4
68#define IPX_RT_BLUEBOOK         2
69#define IPX_RT_ROUTED           1
70};
71
72#define SIOCAIPXITFCRT          (SIOCPROTOPRIVATE)
73#define SIOCAIPXPRISLT          (SIOCPROTOPRIVATE + 1)
74#define SIOCIPXCFGDATA          (SIOCPROTOPRIVATE + 2)
75#define SIOCIPXNCPCONN          (SIOCPROTOPRIVATE + 3)
76#endif /* _IPX_H_ */
Note: See TracBrowser for help on using the repository browser.