Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c45b3bf
Commit
4c45b3bf
authored
May 03, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o ipx headers: Coding Style code reformatting
parent
1dbc2a79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
43 deletions
+42
-43
include/linux/ipx.h
include/linux/ipx.h
+12
-15
include/net/ipx.h
include/net/ipx.h
+30
-28
No files found.
include/linux/ipx.h
View file @
4c45b3bf
...
...
@@ -5,8 +5,7 @@
#define IPX_NODE_LEN 6
#define IPX_MTU 576
struct
sockaddr_ipx
{
struct
sockaddr_ipx
{
sa_family_t
sipx_family
;
__u16
sipx_port
;
__u32
sipx_network
;
...
...
@@ -16,9 +15,8 @@ struct sockaddr_ipx
};
/*
*
So we can fit the extra info for SIOCSIFADDR into the address nicely
*
So we can fit the extra info for SIOCSIFADDR into the address nicely
*/
#define sipx_special sipx_port
#define sipx_action sipx_zero
#define IPX_DLTITF 0
...
...
@@ -56,14 +54,13 @@ struct ipx_config_data {
* OLD Route Definition for backward compatibility.
*/
struct
ipx_route_def
{
__u32
ipx_network
;
__u32
ipx_router_network
;
struct
ipx_route_def
{
__u32
ipx_network
;
__u32
ipx_router_network
;
#define IPX_ROUTE_NO_ROUTER 0
unsigned
char
ipx_router_node
[
IPX_NODE_LEN
];
unsigned
char
ipx_device
[
16
];
unsigned
short
ipx_flags
;
unsigned
char
ipx_router_node
[
IPX_NODE_LEN
];
unsigned
char
ipx_device
[
16
];
unsigned
short
ipx_flags
;
#define IPX_RT_SNAP 8
#define IPX_RT_8022 4
#define IPX_RT_BLUEBOOK 2
...
...
@@ -71,7 +68,7 @@ struct ipx_route_def
};
#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE
+
1)
#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE
+
2)
#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE
+
3)
#endif
/*
def
_IPX_H_ */
#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE
+
1)
#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE
+
2)
#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE
+
3)
#endif
/* _IPX_H_ */
include/net/ipx.h
View file @
4c45b3bf
...
...
@@ -25,11 +25,11 @@ struct ipx_address {
#define IPX_MAX_PPROP_HOPS 8
struct
ipxhdr
{
__u16
ipx_checksum
__attribute__
((
packed
));
__u16
ipx_checksum
__attribute__
((
packed
));
#define IPX_NO_CHECKSUM 0xFFFF
__u16
ipx_pktsize
__attribute__
((
packed
));
__u8
ipx_tctrl
;
__u8
ipx_type
;
__u16
ipx_pktsize
__attribute__
((
packed
));
__u8
ipx_tctrl
;
__u8
ipx_type
;
#define IPX_TYPE_UNKNOWN 0x00
#define IPX_TYPE_RIP 0x01
/* may also be 0 */
#define IPX_TYPE_SAP 0x04
/* may also be 0 */
...
...
@@ -47,42 +47,42 @@ static __inline__ struct ipxhdr *ipx_hdr(struct sk_buff *skb)
struct
ipx_interface
{
/* IPX address */
__u32
if_netnum
;
unsigned
char
if_node
[
IPX_NODE_LEN
];
atomic_t
refcnt
;
__u32
if_netnum
;
unsigned
char
if_node
[
IPX_NODE_LEN
];
atomic_t
refcnt
;
/* physical device info */
struct
net_device
*
if_dev
;
struct
datalink_proto
*
if_dlink
;
unsigned
short
if_dlink_type
;
unsigned
short
if_dlink_type
;
/* socket support */
unsigned
short
if_sknum
;
struct
sock
*
if_sklist
;
spinlock_t
if_sklist_lock
;
unsigned
short
if_sknum
;
struct
sock
*
if_sklist
;
spinlock_t
if_sklist_lock
;
/* administrative overhead */
int
if_ipx_offset
;
unsigned
char
if_internal
;
unsigned
char
if_primary
;
int
if_ipx_offset
;
unsigned
char
if_internal
;
unsigned
char
if_primary
;
struct
ipx_interface
*
if_next
;
};
struct
ipx_route
{
__u32
ir_net
;
__u32
ir_net
;
struct
ipx_interface
*
ir_intrfc
;
unsigned
char
ir_routed
;
unsigned
char
ir_router_node
[
IPX_NODE_LEN
];
unsigned
char
ir_routed
;
unsigned
char
ir_router_node
[
IPX_NODE_LEN
];
struct
ipx_route
*
ir_next
;
atomic_t
refcnt
;
atomic_t
refcnt
;
};
#ifdef __KERNEL__
struct
ipx_cb
{
u8
ipx_tctrl
;
u32
ipx_dest_net
;
u32
ipx_source_net
;
u8
ipx_tctrl
;
u32
ipx_dest_net
;
u32
ipx_source_net
;
struct
{
u32
netnum
;
int
index
;
...
...
@@ -92,14 +92,16 @@ struct ipx_cb {
struct
ipx_opt
{
struct
ipx_address
dest_addr
;
struct
ipx_interface
*
intrfc
;
unsigned
short
port
;
unsigned
short
port
;
#ifdef CONFIG_IPX_INTERN
unsigned
char
node
[
IPX_NODE_LEN
];
unsigned
char
node
[
IPX_NODE_LEN
];
#endif
unsigned
short
type
;
/* To handle special ncp connection-handling sockets for mars_nwe,
* the connection number must be stored in the socket. */
unsigned
short
ipx_ncp_conn
;
unsigned
short
type
;
/*
* To handle special ncp connection-handling sockets for mars_nwe,
* the connection number must be stored in the socket.
*/
unsigned
short
ipx_ncp_conn
;
};
#define ipx_sk(__sk) ((struct ipx_opt *)(__sk)->protinfo)
...
...
@@ -121,4 +123,4 @@ extern void ipx_proc_exit(void);
extern
const
char
*
ipx_frame_name
(
unsigned
short
);
extern
const
char
*
ipx_device_name
(
struct
ipx_interface
*
intrfc
);
#endif
/*
def
_NET_INET_IPX_H_ */
#endif
/* _NET_INET_IPX_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment