summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2021-11-27usr.sbin: remove unnecessary CONSTCOND, lint no longer needs itrillig
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]
2021-03-23print function names as %s: not <%s> everywhere for consistency.christos
2021-03-23interface indexes are unsignedchristos
2021-03-23call tzset() before chroot so we initialize our timezone datachristos
2021-03-23fix misplaced paren, add missing va_end()christos
2021-03-22- remove extra \n from stderr loggingchristos
- add string message types - sprinkle const
2021-02-03rtadvd: no longer need packed member warningroy
2020-09-06add support for new GCC 9 warnings that may be too much to fixmrg
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
2020-08-28Use wrapper name for call to setsockopt(2), NFC for non-rump builds.rjs
2020-05-14If we could not lock the pid file, don't continue as we end up with multiplechristos
rtadvd's (thanks roy@)
2020-05-10warn only for > INFO level messages.christos
2020-05-10Print errors to stderr until we daemonize.christos
Fix typo.
2020-04-21Remove dst variable that was only set but not used.wiz
(This broke the build for me.)
2020-04-21Update getopt string.wiz
Remove -M. Add -C (the code is there and documented, even if noone could activate it...). Sync usage with manpage.
2020-04-21Remove -M from SYNOPSIS as well.wiz
2020-04-21rtadvd: Remove disabled use of SIOCGIFPREFIX_IN6roy
It's not been enabled since the functionality was added to ifconfig(8) many many years ago.
2020-04-21rtadvd: Remove router renumbering - it's been disable for yearsroy
2019-12-03 s/upate/update/ in comment.msaitoh
2019-11-11rtadvd: Add C flag to control the zeroing of the leaving configurationroy
This is only intended to assist the testing of clients which consume Router Advertisement messages, such as dhcpcd(8).
2019-11-10rtadvd: remove support for SIOCSIFINFO_IN6roy
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.
2019-11-10rtadvd: Fix reloading configuration killing interface timersroy
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-06-14rtadvd: fix rdnss and dnssl lifetime assignmentroy
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.
2019-03-29- die sooner (if we got interrupted)christos
- when we finish resending exit.
2019-02-03- add or adjust /* FALLTHROUGH */ where appropriatemrg
- add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
2019-01-12adjust to new expandm.christos
2019-01-11use expandm from libwrap.christos
2018-11-16rtadvd: use %u to print unsigned variablesozaki-r
2018-04-24Back out part of the prior commit where we added space for IPV6_HOPLIMITroy
to the sending control message buffer. That code never worked on ERLITE, so I elected to set socket options instead but forgot to revert this part.
2018-04-21Minor improvements.wiz
2018-04-20Update values from RFC 8319roy
2018-04-20Make the #defines more readableroy
2018-04-20Lack of timeout is a programming error, so use an assert in it's place.roy
While here, improve the error reported if malloc fails.
2018-04-20Use EXIT_FAILURE instead of an arbtitary number.roy
2018-04-20Unicast solicited RA's as per RFC 7772.roy
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.
2018-04-20Ensure that the soliciter list is initialised and freed correctly, even if ↵roy
it's not used yet.
2018-04-20Allow timers to exist but be inactive.roy
This will be used in a future commit.
2018-04-20Insist on newer socket options.roy
2018-04-20Use pidifle_lock(3)roy
2018-04-20Punt dead coderoy
2018-04-20White space police.roy
2018-04-20Fix some unaligned pointer issues.roy
2017-11-25When sending log messages to stderr, append the \n that syslog does not need.kre
2017-11-06Mark expandm as preserving format strings.joerg
2017-11-06Change the meaning of the 'D' flag to print errors to stderr instead ofchristos
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).
2017-10-14PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicastchristos
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..
2017-10-10use librumpreschristos
2017-09-11Don't start another copy of rtadvd if one is running.christos
2017-09-11KNF, fix time printing formats.christos