aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ipv6.h
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-10 04:41:33 -0400
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-24 21:23:59 -0400
commit4725474584d6aa2f07b3d47442dfbc4f6544f65e (patch)
tree9b18781df63041ead3805c0a4d5eea1a847329d1 /include/linux/ipv6.h
parentc8cdaf998df221b01134a051aba38c570105061b (diff)
[IPV6]: Convert cork.hop_limit and cork.tclass into u8 instead of int.
Values of those fields are always between 0 and 255 (inclusive), so use u8 and save some memory on 32bit systems. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/linux/ipv6.h')
-rw-r--r--include/linux/ipv6.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index 2102d8b67c01..9b59e37afad9 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -315,8 +315,8 @@ struct ipv6_pinfo {
315 struct sk_buff *pktoptions; 315 struct sk_buff *pktoptions;
316 struct { 316 struct {
317 struct ipv6_txoptions *opt; 317 struct ipv6_txoptions *opt;
318 int hop_limit; 318 u8 hop_limit;
319 int tclass; 319 u8 tclass;
320 } cork; 320 } cork;
321}; 321};
322 322