Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47254745 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki
Browse files

[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: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
parent c8cdaf99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
};