Module Name:    src
Committed By:   martin
Date:           Wed Oct 23 19:33:07 UTC 2019

Modified Files:
        src/sys/netinet6 [netbsd-9]: in6_ifattach.c in6_ifattach.h in6_var.h
        src/tests/net/ndp [netbsd-9]:

Log Message:
Pull up following revision(s) (requested by ozaki-r in ticket #368):

        sys/netinet6/in6_ifattach.h: revision 1.14
        sys/netinet6/ip6_input.c: revision 1.212
        sys/netinet6/ip6_input.c: revision 1.213
        sys/netinet6/ip6_input.c: revision 1.214
        sys/netinet6/in6_var.h: revision 1.101
        sys/netinet6/in6_var.h: revision 1.102
        sys/netinet6/in6_ifattach.c: revision 1.116
        sys/netinet6/in6_ifattach.c: revision 1.117
        tests/net/ndp/ revision 1.33

Reorganize in6_tmpaddrtimer stuffs
- Move the related functions to where in6_tmpaddrtimer_ch exists
- Hide global variable in6_tmpaddrtimer_ch
- Rename ip6_init2 to in6_tmpaddrtimer_init
- Reduce callers of callout_reset
- Use callout_schedule

Validate ip6_temp_preferred_lifetime (net.inet6.ip6.temppltime) on a change
ip6_temp_preferred_lifetime is used to calculate an interval period to
regenerate temporary addresse by
as per RFC 3041 3.5.  So it must be greater than (REGEN_ADVANCE +
DESYNC_FACTOR), otherwise it will be negative and go wrong, for example
KASSERT(to_ticks >= 0) in callout_schedule_locked fails.

tests: add tests for the validateion of net.inet6.ip6.temppltime

in6: reset the temporary address timer on a change of the interval period

To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.115.6.1 src/sys/netinet6/in6_ifattach.c
cvs rdiff -u -r1.13 -r1.13.68.1 src/sys/netinet6/in6_ifattach.h
cvs rdiff -u -r1.100 -r1.100.6.1 src/sys/netinet6/in6_var.h
cvs rdiff -u -r1.208.2.2 -r1.208.2.3 src/sys/netinet6/ip6_input.c
cvs rdiff -u -r1.32 -r1.32.6.1 src/tests/net/ndp/

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to