summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rad/engine.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Include interface name in warning when a RA is recieved from a non-link-localclaudio2020-05-201-2/+3
| | | | | address OK sthen@ florian@ benno@
* Correctly interlock config reloads imsgs.florian2019-03-151-1/+7
| | | | | | Only accept a new config reload if it's not currently running and on accept a config reload end if one is currently running. OK pamela
* fix line breakpamela2019-03-121-2/+3
| | | | OK florian@
* In the manner of recent changes to unwind(8) and slaacd(8), make imsgpamela2019-03-121-10/+33
| | | | | | processing more paranoid. Call fatalx() for imsg size mismatches or unexpected/missing imsg fd. OK florian@
* Change fatal() to fatalx() where errno is not set.pamela2019-03-111-4/+4
| | | | tweak and OK florian@
* Introduce the IMSG_DATA_SIZE() macro to replace recurring math on imsg.hdr.len to shorten and simplify code.pamela2019-03-021-10/+10
| | | | OK florian@
* We don't need IMSG_SHUTDOWN, we can just close the sockets.florian2019-01-291-4/+1
| | | | pointed out by deraadt
* Move dns settings to global options so that they don't need to beflorian2018-08-031-5/+10
| | | | | | 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-4/+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.
* Implement RFC 8106: IPv6 Router Advertisement Options for DNSflorian2018-07-151-4/+26
| | | | Configuration.
* cleanly shutdown by sending advertisement with lifetime 0florian2018-07-111-1/+4
|
* Send a RA with router lifetime of 0 when an interface is removed fromflorian2018-07-111-4/+42
| | | | | | | | | 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-8/+82
| | | | | | | | 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
* remove newd control leftoversflorian2018-07-101-35/+1
|
* remove unused variable; pointed out by llvmflorian2018-07-101-2/+1
|
* Import rad(8).florian2018-07-101-0/+478
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@