[TOKENRING]: be'ify trh_hdr, trllc, rif_cache_s
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 26 May 2005 19:59:05 +0000 (12:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2005 19:59:05 +0000 (12:59 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_tr.h
net/802/tr.c

index a2b01e1e72f25a9a81b9d366c6be23cd687f4e47..6688b414c529277d893445d500e091bcd79d115f 100644 (file)
@@ -36,8 +36,8 @@ struct trh_hdr {
        __u8  fc;                       /* frame control field */
        __u8  daddr[TR_ALEN];           /* destination address */
        __u8  saddr[TR_ALEN];           /* source address */
-       __u16 rcf;                      /* route control field */
-       __u16 rseg[8];                  /* routing registers */
+       __be16 rcf;                     /* route control field */
+       __be16 rseg[8];                 /* routing registers */
 };
 
 #ifdef __KERNEL__
@@ -55,7 +55,7 @@ struct trllc {
        __u8  ssap;                     /* source SAP */
        __u8  llc;                      /* LLC control field */
        __u8  protid[3];                /* protocol id */
-       __u16 ethertype;                /* ether type field */
+       __be16 ethertype;               /* ether type field */
 };
 
 /* Token-Ring statistics collection data. */
index 85293ccf7efcd3c66724dd8bfed62d9a1afef19c..3bfb86260f27c1f981963bfe8b29cd60cf37ddbd 100644 (file)
@@ -50,8 +50,8 @@ static void rif_check_expire(unsigned long dummy);
 struct rif_cache_s {   
        unsigned char addr[TR_ALEN];
        int iface;
-       __u16 rcf;
-       __u16 rseg[8];
+       __be16 rcf;
+       __be16 rseg[8];
        struct rif_cache_s *next;
        unsigned long last_used;
        unsigned char local_ring;