Hiroki Sato a283298ce3 Improve flexibility of receiving Router Advertisement and
automatic link-local address configuration:

- Convert a sysctl net.inet6.ip6.accept_rtadv to one for the
  default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a
  global knob.  The default value of the sysctl is 0.

- Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a
  sysctl net.inet6.ip6.auto_linklocal to one for its default
  value.  The default value of the sysctl is 1.

- Make ND6_IFF_IFDISABLED more robust.  It can be used to disable
  IPv6 functionality of an interface now.

- Receiving RA is allowed if ip6_forwarding==0 *and*
  ND6_IFF_ACCEPT_RTADV is set on that interface.  The former
  condition will be revisited later to support a "host + router" box
  like IPv6 CPE router.  The current behavior is compatible with
  the older releases of FreeBSD.

- The ifconfig(8) now supports these ND6 flags as well as "nud",
  "prefer_source", and "disabled" in ndp(8).  The ndp(8) now
  supports "auto_linklocal".

Discussed with:	bz and jinmei
Reviewed by:	bz
MFC after:	3 days
2009-09-12 22:08:20 +00:00
..
2008-11-29 19:01:44 +00:00
2006-12-14 17:03:46 +00:00
2008-12-13 09:33:03 +00:00
2006-09-30 15:14:49 +00:00
2009-07-03 21:12:37 +00:00
2009-07-03 21:12:37 +00:00
2006-06-18 09:53:00 +00:00
2006-09-18 15:24:20 +00:00
2009-01-04 15:48:38 +00:00
2009-08-30 15:20:13 +00:00
2008-11-29 18:09:50 +00:00
2006-06-18 09:53:00 +00:00
2006-09-30 15:14:49 +00:00
2006-06-18 14:45:28 +00:00
2008-03-28 23:25:58 +00:00
2006-09-18 15:24:20 +00:00
2007-02-03 19:29:31 +00:00
2008-01-21 04:13:00 +00:00
2006-06-18 14:12:27 +00:00
2009-05-16 10:42:00 +00:00
2005-11-18 10:56:28 +00:00
2006-04-14 09:20:25 +00:00
2005-10-07 02:32:16 +00:00
2005-10-07 02:32:16 +00:00
2008-01-22 07:40:21 +00:00
2007-10-15 20:00:24 +00:00
2008-06-20 23:04:34 +00:00
2009-03-03 07:58:01 +00:00
2005-10-07 02:32:16 +00:00
2008-12-12 05:45:39 +00:00
2005-02-13 22:25:33 +00:00
2006-09-18 15:24:20 +00:00
2005-02-13 22:25:33 +00:00
2009-09-09 21:51:54 +00:00
2008-10-06 21:55:53 +00:00
2005-10-07 02:32:16 +00:00
2006-06-18 09:53:00 +00:00
2005-01-21 08:36:40 +00:00
2006-12-14 16:40:57 +00:00
2005-10-07 02:32:16 +00:00
2005-11-18 10:56:28 +00:00
2006-01-10 18:55:24 +00:00
2005-02-13 23:45:54 +00:00
2009-05-05 13:48:53 +00:00
2006-10-09 12:50:16 +00:00
2005-01-21 08:36:40 +00:00
2006-09-18 15:24:20 +00:00
2005-01-21 08:36:40 +00:00
2005-02-13 23:45:54 +00:00
2006-12-14 16:40:57 +00:00
2005-02-13 22:25:33 +00:00
2009-06-01 10:30:52 +00:00
2006-10-16 07:56:36 +00:00
2007-07-24 18:08:16 +00:00
2009-05-05 13:48:53 +00:00
2009-02-22 12:40:58 +00:00
2009-06-10 03:28:34 +00:00
2009-05-09 19:19:19 +00:00
2009-03-29 21:08:48 +00:00
2007-04-24 07:10:10 +00:00
2005-10-07 02:32:16 +00:00
2006-12-14 16:40:57 +00:00
2005-02-15 09:27:00 +00:00
2005-02-05 13:52:21 +00:00
2005-02-05 13:52:21 +00:00
2005-01-21 20:50:39 +00:00
2005-02-05 13:52:21 +00:00
2005-11-18 10:56:28 +00:00
2009-03-26 06:12:04 +00:00
2009-05-17 12:21:11 +00:00
2005-01-21 08:36:40 +00:00
2005-01-21 08:36:40 +00:00
2009-05-27 16:30:33 +00:00
2008-10-22 09:11:35 +00:00
2007-03-11 15:20:04 +00:00
2006-06-18 09:53:00 +00:00
2006-06-18 09:53:00 +00:00
2009-07-12 20:17:31 +00:00
2006-09-30 15:14:49 +00:00
2005-01-21 08:36:40 +00:00
2007-12-22 13:31:01 +00:00
2007-01-30 20:22:07 +00:00
2006-08-04 18:28:57 +00:00
2005-01-21 08:36:40 +00:00
2005-01-21 08:36:40 +00:00
2005-01-21 08:36:40 +00:00
2005-11-18 10:56:28 +00:00
2005-01-21 08:36:40 +00:00
2005-01-21 08:36:40 +00:00
2006-02-20 07:54:16 +00:00
2005-01-21 08:36:40 +00:00
2007-03-02 12:55:24 +00:00
2005-02-03 13:33:34 +00:00
2005-01-21 10:48:35 +00:00
2006-12-14 16:40:57 +00:00
2005-06-16 18:46:17 +00:00
2008-12-25 10:18:35 +00:00
2005-01-21 08:36:40 +00:00
2009-05-21 02:44:32 +00:00
2005-01-27 10:30:53 +00:00
2006-06-18 09:53:00 +00:00
2007-12-10 12:01:27 +00:00
2007-10-29 14:55:46 +00:00
2006-02-13 21:34:19 +00:00
2005-02-15 09:27:00 +00:00
2005-11-18 10:56:28 +00:00
2009-03-18 20:03:33 +00:00
2005-02-09 18:07:17 +00:00
2009-07-13 18:55:46 +00:00
2007-02-12 21:30:34 +00:00
2007-02-23 16:50:17 +00:00
2005-01-21 08:36:40 +00:00
2009-09-06 10:27:45 +00:00
2009-09-06 10:27:45 +00:00
2008-01-24 12:09:59 +00:00
2006-09-18 15:24:20 +00:00
2005-10-07 02:32:16 +00:00
2005-02-13 22:25:33 +00:00
2005-10-07 02:32:16 +00:00
2007-05-12 06:33:52 +00:00
2008-07-03 16:48:35 +00:00
2009-02-12 13:04:13 +00:00
2006-01-09 12:51:45 +00:00
2007-02-17 11:31:58 +00:00
2007-05-12 06:41:41 +00:00
2008-11-05 15:04:03 +00:00
2005-01-21 08:36:40 +00:00
2005-11-11 09:57:32 +00:00
2005-02-09 18:07:17 +00:00
2006-06-18 09:53:00 +00:00
2006-06-18 09:53:00 +00:00
2008-01-22 19:16:09 +00:00
2005-01-21 08:36:40 +00:00
2008-08-16 21:12:25 +00:00
2009-09-12 01:37:22 +00:00
2005-10-07 02:32:16 +00:00
2005-10-07 02:32:16 +00:00
2007-02-04 16:59:50 +00:00
2007-05-09 20:05:43 +00:00
2005-10-07 02:32:16 +00:00
2009-03-12 01:27:15 +00:00
2009-07-30 00:15:17 +00:00
2007-02-09 20:53:19 +00:00
2009-04-07 20:13:48 +00:00
2009-05-16 21:38:55 +00:00
2006-11-22 21:30:02 +00:00
2006-12-14 16:40:57 +00:00
2008-03-01 13:28:27 +00:00
2007-07-24 14:49:25 +00:00
2006-11-22 21:30:02 +00:00
2005-02-13 22:25:33 +00:00
2006-11-22 21:30:02 +00:00
2006-11-22 21:30:02 +00:00
2008-07-03 12:48:13 +00:00
2006-11-22 21:30:02 +00:00
2005-04-20 07:33:09 +00:00
2006-11-22 21:30:02 +00:00
2006-11-22 21:30:02 +00:00
2006-11-22 21:30:02 +00:00
2006-11-27 18:37:45 +00:00
2005-12-21 08:23:04 +00:00
2008-12-02 22:45:01 +00:00
2006-11-22 21:30:02 +00:00
2009-07-27 18:07:44 +00:00
2006-11-22 21:30:02 +00:00
2006-11-22 21:30:02 +00:00
2006-11-22 21:30:02 +00:00
2006-02-13 21:34:19 +00:00
2007-02-21 10:00:09 +00:00
2007-08-05 07:39:30 +00:00
2007-03-29 10:11:22 +00:00
2005-10-07 02:32:16 +00:00
2005-06-15 19:29:03 +00:00
2005-11-18 10:56:28 +00:00
2008-11-01 14:19:55 +00:00