提交 c6b33653 编写于 作者: A Alexey Dobriyan 提交者: David S. Miller

[TOKENRING]: be'ify trh_hdr, trllc, rif_cache_s

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 92d63dec
...@@ -36,8 +36,8 @@ struct trh_hdr { ...@@ -36,8 +36,8 @@ struct trh_hdr {
__u8 fc; /* frame control field */ __u8 fc; /* frame control field */
__u8 daddr[TR_ALEN]; /* destination address */ __u8 daddr[TR_ALEN]; /* destination address */
__u8 saddr[TR_ALEN]; /* source address */ __u8 saddr[TR_ALEN]; /* source address */
__u16 rcf; /* route control field */ __be16 rcf; /* route control field */
__u16 rseg[8]; /* routing registers */ __be16 rseg[8]; /* routing registers */
}; };
#ifdef __KERNEL__ #ifdef __KERNEL__
...@@ -55,7 +55,7 @@ struct trllc { ...@@ -55,7 +55,7 @@ struct trllc {
__u8 ssap; /* source SAP */ __u8 ssap; /* source SAP */
__u8 llc; /* LLC control field */ __u8 llc; /* LLC control field */
__u8 protid[3]; /* protocol id */ __u8 protid[3]; /* protocol id */
__u16 ethertype; /* ether type field */ __be16 ethertype; /* ether type field */
}; };
/* Token-Ring statistics collection data. */ /* Token-Ring statistics collection data. */
......
...@@ -50,8 +50,8 @@ static void rif_check_expire(unsigned long dummy); ...@@ -50,8 +50,8 @@ static void rif_check_expire(unsigned long dummy);
struct rif_cache_s { struct rif_cache_s {
unsigned char addr[TR_ALEN]; unsigned char addr[TR_ALEN];
int iface; int iface;
__u16 rcf; __be16 rcf;
__u16 rseg[8]; __be16 rseg[8];
struct rif_cache_s *next; struct rif_cache_s *next;
unsigned long last_used; unsigned long last_used;
unsigned char local_ring; unsigned char local_ring;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册