aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-03-16 02:27:28 +0100
committerThomas Graf <tgraf@suug.ch>2005-03-16 02:27:28 +0100
commit15f9f6f1e878104b1557504c07d1e4aa7dd4fa8e (patch)
treec95dc05536f500954bde814647db8299ac16c8ad /include
parent[NET] Reorder struct sock (diff)
downloadhistory-15f9f6f1e878104b1557504c07d1e4aa7dd4fa8e.tar.gz
history-15f9f6f1e878104b1557504c07d1e4aa7dd4fa8e.zip
[NET] Reorder struct ipv6_pinfo
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ipv6.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index 939942384b..ab0d0efbf2 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -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;