[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:
Al Viro
2006-11-14 21:42:26 -08:00
committed by David S. Miller
parent f6ab028804
commit 5c78f275e6
3 changed files with 8 additions and 8 deletions

View File

@@ -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;
}