Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265930
b: refs/heads/master
c: 026359b
h: refs/heads/master
v: v3
  • Loading branch information
Tore Anderson authored and David S. Miller committed Sep 16, 2011
1 parent e4a2ec5 commit 6dfbfa1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 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: c1aabdf379bc2feeb0df7057ed5bad96f492133e
refs/heads/master: 026359bc6eddfdc2d2e684bf0b51691649b90f33
17 changes: 8 additions & 9 deletions trunk/Documentation/networking/ip-sysctl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,11 @@ conf/interface/*:
accept_ra - BOOLEAN
Accept Router Advertisements; autoconfigure using them.

It also determines whether or not to transmit Router
Solicitations. If and only if the functional setting is to
accept Router Advertisements, Router Solicitations will be
transmitted.

Possible values are:
0 Do not accept Router Advertisements.
1 Accept Router Advertisements if forwarding is disabled.
Expand Down Expand Up @@ -1115,14 +1120,14 @@ forwarding - BOOLEAN
Possible values are:
0 Forwarding disabled
1 Forwarding enabled
2 Forwarding enabled (Hybrid Mode)

FALSE (0):

By default, Host behaviour is assumed. This means:

1. IsRouter flag is not set in Neighbour Advertisements.
2. Router Solicitations are being sent when necessary.
2. If accept_ra is TRUE (default), transmit Router
Solicitations.
3. If accept_ra is TRUE (default), accept Router
Advertisements (and do autoconfiguration).
4. If accept_redirects is TRUE (default), accept Redirects.
Expand All @@ -1133,16 +1138,10 @@ forwarding - BOOLEAN
This means exactly the reverse from the above:

1. IsRouter flag is set in Neighbour Advertisements.
2. Router Solicitations are not sent.
2. Router Solicitations are not sent unless accept_ra is 2.
3. Router Advertisements are ignored unless accept_ra is 2.
4. Redirects are ignored.

TRUE (2):

Hybrid mode. Same behaviour as TRUE, except for:

2. Router Solicitations are being sent when necessary.

Default: 0 (disabled) if global forwarding is disabled (default),
otherwise 1 (enabled).

Expand Down
8 changes: 4 additions & 4 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2996,12 +2996,12 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp)

ipv6_ifa_notify(RTM_NEWADDR, ifp);

/* If added prefix is link local and forwarding is off,
start sending router solicitations.
/* If added prefix is link local and we are prepared to process
router advertisements, start sending router solicitations.
*/

if ((ifp->idev->cnf.forwarding == 0 ||
ifp->idev->cnf.forwarding == 2) &&
if (((ifp->idev->cnf.accept_ra == 1 && !ifp->idev->cnf.forwarding) ||
ifp->idev->cnf.accept_ra == 2) &&
ifp->idev->cnf.rtr_solicits > 0 &&
(dev->flags&IFF_LOOPBACK) == 0 &&
(ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) {
Expand Down

0 comments on commit 6dfbfa1

Please sign in to comment.