Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351501
b: refs/heads/master
c: fb56863
h: refs/heads/master
i:
  351499: c570bd1
v: v3
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Jan 21, 2013
1 parent bb19b6a commit 65402ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1641565f6926c2e9f5859d81bc6f72fc0e1ad76
refs/heads/master: fb568637e58a8459edd551af1160f27ea53e8367
10 changes: 5 additions & 5 deletions trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static void __ndisc_send(struct net_device *dev,
static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
const struct in6_addr *daddr,
const struct in6_addr *solicited_addr,
int router, int solicited, int override, int inc_opt)
bool router, bool solicited, bool override, bool inc_opt)
{
struct in6_addr tmpaddr;
struct inet6_ifaddr *ifp;
Expand Down Expand Up @@ -776,11 +776,11 @@ static void ndisc_recv_ns(struct sk_buff *skb)
}

if (is_router < 0)
is_router = !!idev->cnf.forwarding;
is_router = idev->cnf.forwarding;

if (dad) {
ndisc_send_na(dev, NULL, &in6addr_linklocal_allnodes, &msg->target,
is_router, 0, (ifp != NULL), 1);
!!is_router, false, (ifp != NULL), true);
goto out;
}

Expand All @@ -801,8 +801,8 @@ static void ndisc_recv_ns(struct sk_buff *skb)
NEIGH_UPDATE_F_OVERRIDE);
if (neigh || !dev->header_ops) {
ndisc_send_na(dev, neigh, saddr, &msg->target,
is_router,
1, (ifp != NULL && inc), inc);
!!is_router,
true, (ifp != NULL && inc), inc);
if (neigh)
neigh_release(neigh);
}
Expand Down

0 comments on commit 65402ae

Please sign in to comment.