]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ipv4: Make ip_call_ra_chain() return bool.
authorDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 01:45:32 +0000 (20:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2012 22:34:50 +0000 (14:34 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_input.c

index 775009f9eaba4870b8bcd3b83a4eb67af889b772..b53d65f24f7be8497b60475952d5a66c579aee68 100644 (file)
@@ -388,7 +388,7 @@ static inline int sk_mc_loop(struct sock *sk)
        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
index 073a9b01c40c9c37400ce9c320ffb355b0ae6e76..70afe5bf19456b5ad2a5289f37690be55e832bae 100644 (file)
 /*
  *     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;
        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))) {
                        if (ip_is_fragment(ip_hdr(skb))) {
                                if (ip_defrag(skb, IP_DEFRAG_CALL_RA_CHAIN))
-                                       return 1;
+                                       return true;
                        }
                        if (last) {
                                struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC);
@@ -180,9 +180,9 @@ int ip_call_ra_chain(struct sk_buff *skb)
 
        if (last) {
                raw_rcv(last, skb);
-               return 1;
+               return true;
        }
-       return 0;
+       return false;
 }
 
 static int ip_local_deliver_finish(struct sk_buff *skb)