Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


ipx.h
001: /* Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
002:    This file is part of the GNU C Library.
003: 
004:    The GNU C Library is free software; you can redistribute it and/or
005:    modify it under the terms of the GNU Lesser General Public
006:    License as published by the Free Software Foundation; either
007:    version 2.1 of the License, or (at your option) any later version.
008: 
009:    The GNU C Library is distributed in the hope that it will be useful,
010:    but WITHOUT ANY WARRANTY; without even the implied warranty of
011:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012:    Lesser General Public License for more details.
013: 
014:    You should have received a copy of the GNU Lesser General Public
015:    License along with the GNU C Library; if not, write to the Free
016:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
017:    02111-1307 USA.  */
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          /* sockopt level */
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;    /* 16 byte fill */
043:   };
044: 
045: /*
046:  *      So we can fit the extra info for SIOCSIFADDR into the address nicely
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:  * OLD Route Definition for backward compatibility.
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 /* netipx/ipx.h */
114: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/