]> git.hungrycats.org Git - linux/commitdiff
[NET] Reorder struct ipv6_pinfo
authorThomas Graf <tgraf@suug.ch>
Wed, 16 Mar 2005 01:27:28 +0000 (02:27 +0100)
committerThomas Graf <tgraf@suug.ch>
Wed, 16 Mar 2005 01:27:28 +0000 (02:27 +0100)
Converts hop_limit and mcast_hops to signed 16 bit types saving 4 bytes
on 32bit archs and another 4 bytes on 64bit archs.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h

index 939942384b78815251c9e056ce7826b2d99887bf..ab0d0efbf240122b6aab244a11d692f716a75bfd 100644 (file)
@@ -209,8 +209,8 @@ struct ipv6_pinfo {
 
        __u32                   flow_label;
        __u32                   frag_size;
-       int                     hop_limit;
-       int                     mcast_hops;
+       __s16                   hop_limit;
+       __s16                   mcast_hops;
        int                     mcast_oif;
 
        /* pktoption flags */
@@ -233,10 +233,11 @@ struct ipv6_pinfo {
                                pmtudisc:2,
                                ipv6only:1;
 
+       __u32                   dst_cookie;
+
        struct ipv6_mc_socklist *ipv6_mc_list;
        struct ipv6_ac_socklist *ipv6_ac_list;
        struct ipv6_fl_socklist *ipv6_fl_list;
-       __u32                   dst_cookie;
 
        struct ipv6_txoptions   *opt;
        struct sk_buff          *pktoptions;