mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-20 11:44:14 +00:00
[NET]: IP header modifier helpers annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -192,9 +192,9 @@ extern void ipfrag_init(void);
|
||||
static inline
|
||||
int ip_decrease_ttl(struct iphdr *iph)
|
||||
{
|
||||
u32 check = iph->check;
|
||||
check += htons(0x0100);
|
||||
iph->check = check + (check>=0xFFFF);
|
||||
u32 check = (__force u32)iph->check;
|
||||
check += (__force u32)htons(0x0100);
|
||||
iph->check = (__force __sum16)(check + (check>=0xFFFF));
|
||||
return --iph->ttl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user