Commit f2f79cca authored by Daniel Baluta's avatar Daniel Baluta Committed by David S. Miller

ndisc: bool initializations should use true and false

Signed-off-by: default avatarDaniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 584ec435
...@@ -479,7 +479,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, ...@@ -479,7 +479,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
if (ifp) { if (ifp) {
src_addr = solicited_addr; src_addr = solicited_addr;
if (ifp->flags & IFA_F_OPTIMISTIC) if (ifp->flags & IFA_F_OPTIMISTIC)
override = 0; override = false;
inc_opt |= ifp->idev->cnf.force_tllao; inc_opt |= ifp->idev->cnf.force_tllao;
in6_ifa_put(ifp); in6_ifa_put(ifp);
} else { } else {
...@@ -557,7 +557,7 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh, ...@@ -557,7 +557,7 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh,
} }
if (ipv6_addr_any(saddr)) if (ipv6_addr_any(saddr))
inc_opt = 0; inc_opt = false;
if (inc_opt) if (inc_opt)
optlen += ndisc_opt_addr_space(dev); optlen += ndisc_opt_addr_space(dev);
...@@ -790,7 +790,7 @@ static void ndisc_recv_ns(struct sk_buff *skb) ...@@ -790,7 +790,7 @@ static void ndisc_recv_ns(struct sk_buff *skb)
(is_router = pndisc_is_router(&msg->target, dev)) >= 0)) { (is_router = pndisc_is_router(&msg->target, dev)) >= 0)) {
if (!(NEIGH_CB(skb)->flags & LOCALLY_ENQUEUED) && if (!(NEIGH_CB(skb)->flags & LOCALLY_ENQUEUED) &&
skb->pkt_type != PACKET_HOST && skb->pkt_type != PACKET_HOST &&
inc != 0 && inc &&
idev->nd_parms->proxy_delay != 0) { idev->nd_parms->proxy_delay != 0) {
/* /*
* for anycast or proxy, * for anycast or proxy,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment