The NetBSD Project

CVS log for src/usr.sbin/rtadvd/config.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / rtadvd

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Nov 27 22:30:26 2021 UTC (3 years ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it

Since 2021-01-31, lint no longer requires a CONSTCOND comment in a
do-while-0 statement since this is a common code pattern, especially in
statement-like macros.

sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Mar 23 18:16:53 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +75 -76 lines
print function names as %s: not <%s> everywhere for consistency.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Mar 22 18:41:11 2021 UTC (3 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2 lines
- remove extra \n from stderr logging
- add string message types
- sprinkle const

Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:48 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.40.2.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.1: +31 -102 lines
Sync with HEAD

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Apr 21 12:16:47 2020 UTC (4 years, 7 months ago) by roy
Branches: MAIN
CVS tags: phil-wifi-20200421
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +32 -103 lines
rtadvd: Remove disabled use of SIOCGIFPREFIX_IN6

It's not been enabled since the functionality was added to ifconfig(8)
many many years ago.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:58 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +8 -35 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 11 19:49:11 2019 UTC (5 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +6 -29 lines
Pull up following revision(s) (requested by roy in ticket #417):

	usr.sbin/rtadvd/rtadvd.c: revision 1.70
	usr.sbin/rtadvd/rtadvd.c: revision 1.71
	usr.sbin/rtadvd/rtadvd.h: revision 1.20
	usr.sbin/rtadvd/config.c: revision 1.42
	usr.sbin/rtadvd/config.c: revision 1.43
	usr.sbin/rtadvd/rtadvd.8: revision 1.27

rtadvd: Fix reloading configuration killing interface timers

rtadvd: remove support for SIOCSIFINFO_IN6
It's been broken since we enabled dropping privs.
It's also probably the wrong place to do this, and support for
SIOCSIFINFO_IN6 will be in the next dhcpcd import.

rtadvd: Add C flag to control the zeroing of the leaving configuration
This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Nov 11 13:42:49 2019 UTC (5 years, 1 month ago) by roy
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -1 lines
rtadvd: Add C flag to control the zeroing of the leaving configuration

This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:32:38 2019 UTC (5 years, 1 month ago) by roy
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -29 lines
rtadvd: remove support for SIOCSIFINFO_IN6

It's been broken since we enabled dropping privs.
It's also probably the wrong place to do this, and support for
SIOCSIFINFO_IN6 will be in the next dhcpcd import.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Jun 14 09:06:45 2019 UTC (5 years, 5 months ago) by roy
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -7 lines
rtadvd: fix rdnss and dnssl lifetime assignment

Treat it the same as a prefix valid time as per the RFC.
This allows to set a zero value to remove the assignment from the node.

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:30 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +21 -12 lines
Sync with HEAD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Apr 20 15:57:23 2018 UTC (6 years, 7 months ago) by roy
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Branch point for: phil-wifi
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -2 lines
Unicast solicited RA's as per RFC 7772.

This is done by having a secondary timer against rainfo so we
can delay unicasting by the required randomised amount of time
without affecting the unsolicited RA timer.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Apr 20 15:29:19 2018 UTC (6 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -1 lines
Ensure that the soliciter list is initialised and freed correctly, even if it's not used yet.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Apr 20 10:39:37 2018 UTC (6 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -11 lines
White space police.

Revision 1.36.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 21 10:54:18 2017 UTC (7 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +61 -60 lines
Pull up following revision(s) (requested by ozaki-r in ticket #358):
	usr.sbin/rtadvd/rtadvd.c: revision 1.54-1.58
	usr.sbin/rtadvd/config.c: revision 1.37
	usr.sbin/rtadvd/if.c: revision 1.25
	usr.sbin/rtadvd/dump.c: revision 1.15
	usr.sbin/rtadvd/rrenum.c: revision 1.20
	usr.sbin/rtadvd/logit.h: revision 1.1
	usr.sbin/rtadvd/rtadvd.8: revision 1.26
	tests/net/ndp/t_ra.sh: revision 1.30
	usr.sbin/rtadvd/timer.c: revision 1.14
	tests/net/ndp/t_ra.sh: revision 1.31
	usr.sbin/rtadvd/advcap.c: revision 1.17

KNF, fix time printing formats.

Don't start another copy of rtadvd if one is running.

PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicast
group fails. This happens with empty vlan interfaces
- make syscalls checks against -1
- fix errors to print %s: instead of <%s>
XXX: if_vlan is the only pseudo interface in net/ that returns such an
error..

Kill rtadvd surely even if the tests fail in the middle
It may help PR bin/52701.

Change the meaning of the D flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).

Mark expandm as preserving format strings.

Let rtadvd not use syslog for logging
Thanks to christos@ now rtadvd can log via stderr instead of syslog
by -D option.
Address PR bin/52701

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Nov 6 15:15:04 2017 UTC (7 years, 1 month ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +61 -60 lines
Change the meaning of the 'D' flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).

Revision 1.27.2.1.4.1: download - view: text, markup, annotated - select for diffs
Fri Jul 14 06:28:01 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.27.2.1: preferred, colored; next MAIN 1.27.2.2: preferred, colored
Changes since revision 1.27.2.1: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1440):
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
	usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.27.2.1.6.1: download - view: text, markup, annotated - select for diffs
Fri Jul 14 06:24:16 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.27.2.1: preferred, colored; next MAIN 1.27.2.2: preferred, colored
Changes since revision 1.27.2.1: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1440):
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
	usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 14 06:19:58 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.1: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1440):
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
	usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.33.10.1: download - view: text, markup, annotated - select for diffs
Fri May 12 05:09:47 2017 UTC (7 years, 7 months ago) by snj
Branches: netbsd-7-0
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1373):
	usr.sbin/rtadvd/config.c: revision 1.36
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.33.14.1: download - view: text, markup, annotated - select for diffs
Fri May 12 05:08:00 2017 UTC (7 years, 7 months ago) by snj
Branches: netbsd-7-1
CVS tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1373):
	usr.sbin/rtadvd/config.c: revision 1.36
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.33.8.1: download - view: text, markup, annotated - select for diffs
Fri May 12 05:05:17 2017 UTC (7 years, 7 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +2 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1373):
	usr.sbin/rtadvd/config.c: revision 1.36
	usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:18 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +2 -2 lines
Sync with HEAD

Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:58:09 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +2 -2 lines
Sync with HEAD

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Feb 27 05:41:36 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Fix the default value of rltime

According to rtadvd.conf(5), the default value of rltime is 1800 seconds.

PR bin/51994

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Nov 11 07:48:41 2015 UTC (9 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +14 -13 lines
Introduce rump.rtadvd

It is used to write ATF tests for RA.

From s-yamaguchi@IIJ.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jun 5 14:09:20 2015 UTC (9 years, 6 months ago) by roy
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -9 lines
Use clock_gettime(2) instead of gettimeofday(2) so we can use a monotonic
clock rather than the wall clock.
Use timespec rather than timeval structs to make this transition easier.
Kill custom timeval comparison functions in favor of timespeccmp(3).

Revision 1.25.42.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:10 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25.42.4: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.42.4: +2 -3 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:48 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +167 -58 lines
resync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 24 19:55:28 2013 UTC (11 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, agc-symver-base, agc-symver
Branch point for: netbsd-7-1, netbsd-7-0, netbsd-7
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -3 lines
fix previous.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 24 17:44:59 2013 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
make it static const

Revision 1.25.42.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:45 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.25.42.3: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.42.3: +2 -3 lines
sync with head

Revision 1.25.42.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:34:11 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25.42.2: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.42.2: +167 -56 lines
sync with (a bit old) head

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Dec 14 09:48:31 2012 UTC (11 years, 11 months ago) by roy
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -2 lines
Intsead of forcing out each RA at shutdown and sleeping we now use
the existing timer model and wait for each RA to expire itself after
sending the required number of transmissions.

This allows for a faster and saner shutdown.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Dec 13 15:36:36 2012 UTC (12 years ago) by roy
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +166 -55 lines
Remove the iflist array and store ifflags in rainfo.

Add support for SIGHUP to re-read the configuration for each interface.
If an invalid configuration is found, we continue to use the old one;
otherwise we expire the current one and then start advertising the new one.

Specififed interfaces don't have to exist at startup.
If specified interfaces arrive, load their config and start advertising.
If they depart, remove their rainfo structure and continue.

Fixes PR/43881 and PR/47311

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Dec 11 16:37:23 2012 UTC (12 years ago) by roy
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2 lines
Add support for the noifprefix keyword which stops rtadvd(8) gathing prefix
information from the interface if no addrs are present in rtadvd.conf(5).

Revision 1.25.42.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:52 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25.42.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.42.1: +3 -2 lines
sync with head

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 8 15:37:49 2012 UTC (12 years, 4 months ago) by martin
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-1, netbsd-6-0
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #465):
	usr.sbin/rtadvd/config.c: revision 1.28
Fix a bug that incorrect RA packet is sent if rtadvd.conf exists.
Fixes PR#46580 reported by Takahiro HAYASHI.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Aug 8 04:05:26 2012 UTC (12 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
Fix a bug that incorrect RA packet is sent if rtadvd.conf exists.
Fixes PR#46580 reported by Takahiro HAYASHI.

Revision 1.25.42.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:53 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +265 -134 lines
sync with head

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Dec 11 20:44:44 2011 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base
Branch point for: netbsd-6
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +46 -42 lines
- sprinkle const
- malloc + memset -> calloc
- free + malloc -> realloc
- syslog("%s", strerror(errno)) -> syslog("%m")

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Dec 10 19:14:29 2011 UTC (13 years ago) by roy
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +225 -98 lines
Add RDNSS and DNSSL support, RFC6106.
Replace custom lists with TAILQ lists.
Clean up plently of signed vs unsigned warnings and set WARNS=4.

Adapted from FreeBSD.

Revision 1.25.16.1: download - view: text, markup, annotated - select for diffs
Fri Feb 22 02:53:34 2008 UTC (16 years, 9 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +71 -8 lines
imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu May 11 08:35:47 2006 UTC (18 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pagecache, keiichi-mipv6
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +8 -8 lines
u_char -> char for several things:
- inet_ntop()
- if_indextoname()
- variable assignment matching
char -> u_char in one place for variable assignment matching

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed May 10 22:30:33 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
PR 33462: default maxinterval was not being initialized properly.
From Matthias Scheller.

From KAME sources.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Mar 22 09:22:28 2006 UTC (18 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
avoid heap overrun.  thanks goes to Susan Lan of zyxel.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Mar 5 23:47:08 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +333 -36 lines
NDP-related improvements:
        RFC4191
	- supports host-side router-preference

	RFC3542
	- if DAD fails on a interface, disables IPv6 operation on the
          interface
	- don't advertise MLD report before DAD finishes

	Others
	- fixes integer overflow for valid and preferred lifetimes
	- improves timer granularity for MLD, using callout-timer.
	- reflects rtadvd's IPv6 host variable information into kernel
	  (router only)
	- adds a sysctl option to enable/disable pMTUd for multicast
          packets
	- performs NUD on PPP/GRE interface by default
	- Redirect works regardless of ip6_accept_rtadv
	- removes RFC1885-related code

From the KAME project via SUZUKI Shinsuke.
Reviewed by core.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jun 17 08:08:48 2003 UTC (21 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +108 -130 lines
relax addrs#x config parameter.  should address PR 21872

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 17 18:51:13 2003 UTC (21 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
strncpy -> strlcpy

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jul 10 21:13:35 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1 lines
test malloc failure.  From: Chad Loder <cloder@acm.org>.  sync w/kame

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jul 10 21:11:43 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +38 -38 lines
byebye __FUNCTIION__.  sync w/kame

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jun 15 01:28:39 2002 UTC (22 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Remove extra/redundant argument to syslog.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jun 9 02:47:29 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
use strchr

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jun 8 18:11:46 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +9 -1 lines
do not use deprecated ioctls

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 29 14:40:31 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +149 -197 lines
KNF, strlcpy, memory leak fix, random other cleanups.  sync w/kame

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jun 3 09:26:04 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
prevent overflow of lifetime value.  sync with kame

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Feb 5 06:04:41 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +8 -8 lines
typo.  ntohl -> htonl.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Feb 4 06:19:40 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +38 -36 lines
avoid infinite loop when -s is specified (select loop mistake).
make agetent() 32bit clean.  KAME PR 127.
disable -R (router renumbering receiver).  sync with kame.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jan 23 15:35:54 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -4 lines
make sure to initialize prefix information struct before use.  sync with kame

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jan 21 15:39:33 2001 UTC (23 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -78 lines
sync with latest kame.
- make icmp6.h spec conformant to 2292bis-02, regarding to router reumbering
  flag bit.
- latest rtadvd.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 15 06:14:05 2001 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +177 -7 lines
sync with latest kame tree.
- reduce chances for signal handler rae condition
- decrease chances for misconfiguration
- feedbacks from router renumbering protocol bakeoff

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 23 11:37:58 2000 UTC (24 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -3 lines
sync with latest kame.
- decrease warning level on missing rtadvd.conf (actually, the file
  can be omitted)
- strict prototype
- gather stats better, emit stats on SIGUSR1 to /var/run

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Mar 13 06:16:46 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +107 -9 lines
bring in latest kame tree.  this fixes unclosed file descdriptor
in router renumbering case.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Feb 6 11:21:46 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
fix include file path (IPv6 related).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Feb 2 04:07:50 2000 UTC (24 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -3 lines
add -R (accept router renumbering packet).  now router renumbering is disabled
by default for ipsec config twists.
dies gracefully on SIGTERM.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jul 6 13:02:09 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
fix for 64bit arch, where sizeof(size_t) != sizeof(int).
add NetBSD RCS ID.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 4 22:14:53 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +60 -41 lines
more careful signed-ness handling in parsing config file.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 2 09:28:17 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>