mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
ipv4: Make ip_rcv_options() return bool.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ba57b4db26
commit
6a91395f20
@ -265,7 +265,7 @@ int ip_local_deliver(struct sk_buff *skb)
|
||||
ip_local_deliver_finish);
|
||||
}
|
||||
|
||||
static inline int ip_rcv_options(struct sk_buff *skb)
|
||||
static inline bool ip_rcv_options(struct sk_buff *skb)
|
||||
{
|
||||
struct ip_options *opt;
|
||||
const struct iphdr *iph;
|
||||
@ -309,9 +309,9 @@ static inline int ip_rcv_options(struct sk_buff *skb)
|
||||
goto drop;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return false;
|
||||
drop:
|
||||
return -1;
|
||||
return true;
|
||||
}
|
||||
|
||||
static int ip_rcv_finish(struct sk_buff *skb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user