summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rad/rad.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Path #defines are traditionally prefixed with _PATH.florian2021-02-271-3/+3
| | | | Pointed out by deraadt
* No need for a global rad_process; unbreaks -fno-common.florian2021-01-191-13/+1
| | | | Problem reported by mortimer
* Let rad(8) handle all rdomains in a single daemon, similar to previousflorian2020-12-011-5/+3
| | | | | | | | work in slaacd. Suggested / requested by tb who showed me previous work by reyk which unfortunately predated my work in slaacd and followed a different pattern to that done in slaacd. Testing & OK tb
* Use defines instead of raw numbers for intervals specified by RFCflorian2020-03-301-12/+14
| | | | | 4861. No binary change. While here consistently use #define<tab> instead of #define<space>.
* Introduce the IMSG_DATA_SIZE() macro to replace recurring math on imsg.hdr.len to shorten and simplify code.pamela2019-03-021-1/+3
| | | | OK florian@
* We don't need IMSG_SHUTDOWN, we can just close the sockets.florian2019-01-291-2/+1
| | | | pointed out by deraadt
* Move dns settings to global options so that they don't need to beflorian2018-08-031-16/+17
| | | | | | repeated in every interface block - they can still be overwritten on a per interface basis. Pointed out by, tweaks & OK sthen
* No need to copy rdns_lifetime around with an IMSG, it gets send to theflorian2018-07-201-2/+1
| | | | | | | engine end frontend as part of ra_iface_conf. Spotted after explaining to bket@ that a similar pattern is not needed for the mtu option.
* Fix mem leaks on config reload:florian2018-07-201-3/+3
| | | | | | - always free struct ra_iface_conf with free_ra_iface_conf() - free_ra_iface_conf() needs to free the recently added nameserver and search list
* Introduce MTU option.bket2018-07-201-2/+3
| | | | | | | | The MTU option is used in Router Advertisement messages to ensure that all nodes on a link use the same MTU value in those cases where the link MTU is not well known. Feedback (thank you!) and OK from florian@
* Implement RFC 8106: IPv6 Router Advertisement Options for DNSflorian2018-07-151-6/+29
| | | | Configuration.
* nuke newd leftoverflorian2018-07-151-2/+1
|
* pass control socket in from mainflorian2018-07-131-1/+2
|
* pass in route socket from main; stub out handling for nowflorian2018-07-131-1/+2
|
* use _rad userflorian2018-07-121-2/+2
|
* cleanly shutdown by sending advertisement with lifetime 0florian2018-07-111-1/+2
|
* Send a RA with router lifetime of 0 when an interface is removed fromflorian2018-07-111-1/+2
| | | | | | | | | the config. RFC 4861, 6.2.5: [...] the router SHOULD transmit one or more (but not more than MAX_FINAL_RTR_ADVERTISEMENTS) final multicast Router Advertisements on the interface with a Router Lifetime field of zero.
* Detect when a router advertisement packet changes due to configflorian2018-07-111-1/+2
| | | | | | | | change and if it does send a new advertisement. The way this is implemented gives us various things for free: - periodic sending of router advertisements - send initial advertisement for every interface on startup
* no longer neededflorian2018-07-111-3/+1
|
* remove newd control leftoversflorian2018-07-101-21/+1
|
* Import rad(8).florian2018-07-101-0/+161
It's a Router Advertisement Daemon written using the standard 3 process privsep pattern and a parse.y based config file. Commit early to continue work in tree. OK jca "it's totally rad" phessler@ "usr.sbin never runs out of space" deraadt@