Skip to content

Commit

Permalink
[IPV6]: Convert cork.hop_limit and cork.tclass into u8 instead of int.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YOSHIFUJI Hideaki committed Mar 25, 2008
1 parent c8cdaf9 commit 4725474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ struct ipv6_pinfo {
struct sk_buff *pktoptions;
struct {
struct ipv6_txoptions *opt;
int hop_limit;
int tclass;
u8 hop_limit;
u8 tclass;
} cork;
};

Expand Down

0 comments on commit 4725474

Please sign in to comment.