ipv4: Make ip_call_ra_chain() return bool.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -388,7 +388,7 @@ static inline int sk_mc_loop(struct sock *sk)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int ip_call_ra_chain(struct sk_buff *skb);
|
extern bool ip_call_ra_chain(struct sk_buff *skb);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions provided by ip_fragment.c
|
* Functions provided by ip_fragment.c
|
||||||
|
@@ -148,7 +148,7 @@
|
|||||||
/*
|
/*
|
||||||
* Process Router Attention IP option (RFC 2113)
|
* Process Router Attention IP option (RFC 2113)
|
||||||
*/
|
*/
|
||||||
int ip_call_ra_chain(struct sk_buff *skb)
|
bool ip_call_ra_chain(struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct ip_ra_chain *ra;
|
struct ip_ra_chain *ra;
|
||||||
u8 protocol = ip_hdr(skb)->protocol;
|
u8 protocol = ip_hdr(skb)->protocol;
|
||||||
@@ -167,7 +167,7 @@ int ip_call_ra_chain(struct sk_buff *skb)
|
|||||||
net_eq(sock_net(sk), dev_net(dev))) {
|
net_eq(sock_net(sk), dev_net(dev))) {
|
||||||
if (ip_is_fragment(ip_hdr(skb))) {
|
if (ip_is_fragment(ip_hdr(skb))) {
|
||||||
if (ip_defrag(skb, IP_DEFRAG_CALL_RA_CHAIN))
|
if (ip_defrag(skb, IP_DEFRAG_CALL_RA_CHAIN))
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
if (last) {
|
if (last) {
|
||||||
struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC);
|
struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC);
|
||||||
@@ -180,9 +180,9 @@ int ip_call_ra_chain(struct sk_buff *skb)
|
|||||||
|
|
||||||
if (last) {
|
if (last) {
|
||||||
raw_rcv(last, skb);
|
raw_rcv(last, skb);
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ip_local_deliver_finish(struct sk_buff *skb)
|
static int ip_local_deliver_finish(struct sk_buff *skb)
|
||||||
|
Reference in New Issue
Block a user