summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-05-03 18:42:33 -0300
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-05-03 18:42:33 -0300
commit4c45b3bf981cbac8639cd444e9ee130db71f2871 (patch)
tree00bec8420c541027b55718a21ccb605edca353b6 /include/net
parent1dbc2a79d698817b340fe6686d0e3204a33c41e2 (diff)
o ipx headers: Coding Style code reformatting
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ipx.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/include/net/ipx.h b/include/net/ipx.h
index c3b1e4698438..bd27cf426a4e 100644
--- a/include/net/ipx.h
+++ b/include/net/ipx.h
@@ -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_ */