| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove rtadvd(8), it's time to switch to rad(8). | 2018-07-23 | 17 | -4541/+0 | |
| | | |||||
| * | rtadvd is only interested in IPv6 so limit route socket to AF_INET6. | 2018-07-16 | 1 | -2/+2 | |
| | | | | | OK florian@ | ||||
| * | RFC 8106 obsolteted RFC 6106. | 2018-06-13 | 1 | -4/+4 | |
| | | | | | | | | From brad@, OK jmc (forgot to commit this when I commited the same change in slaacd, prodded by brad, thanks!) | ||||
| * | two fixes from klemens nanni, plus one tweak from myself; | 2018-03-19 | 1 | -5/+5 | |
| | | | | | ok sthen | ||||
| * | Convert snprintf+write into dprintf. It is simply easier to read, and | 2017-12-08 | 1 | -5/+5 | |
| | | | | | | provides retry on short-write file descriptors. ok florian, previous versions seen by millert | ||||
| * | clarify that slaacd is a client; Xr to rtadvd. feedback/ok benno jmc | 2017-09-14 | 1 | -2/+3 | |
| | | |||||
| * | Rename now oddly-named variable. | 2017-08-22 | 1 | -13/+13 | |
| | | |||||
| * | The impossibility has been impossible since an impossible long | 2017-08-13 | 1 | -6/+1 | |
| | | | | | | time. And indeed it is impossible to arrive here with something other than a ND_OPT_PREFIX_INFORMATION. Remove #if 0'ed block. | ||||
| * | No need to constantly re-open a socket. Just open it up front and keep | 2017-08-12 | 2 | -25/+18 | |
| | | | | | | it around. OK jca | ||||
| * | No need to handle multiple routing messages here. | 2017-08-10 | 3 | -206/+176 | |
| | | | | | | | | | route(4) sockets only ever ship a single routing message per read(2) call, so simplify this. Mostly mechanical diff for now, some further cleanups will follow. ok rob@ florian@ | ||||
| * | Do not forget to reschedule the timer when we receive a new prefix. | 2017-08-08 | 1 | -1/+2 | |
| | | | | | This way the new prefix can be advertized asap. ok florian@ | ||||
| * | errno is not set, use log_warnx | 2017-07-12 | 1 | -2/+2 | |
| | | | | | OK benno | ||||
| * | replace | 2017-07-12 | 3 | -101/+70 | |
| | | | | | | | | | log_warnx("foo"); exit(1); with fatalx("foo); OK benno | ||||
| * | Bring over fatal{,x} from bgpd so that we can have format strings. | 2017-07-12 | 2 | -20/+38 | |
| | | | | | OK benno | ||||
| * | Don't clobber errno, we want to log_warn what went wrong. | 2017-07-12 | 1 | -2/+4 | |
| | | | | | OK benno, millert | ||||
| * | If we receive a router solicitation with a source link-layer address | 2017-06-09 | 1 | -18/+24 | |
| | | | | | | | | | option respond with a unicast advertisement. This improves air time on wireless networks and reduces energy consumption on battery powered devices. For details see RFC 7772 "Reducing Energy Consumption of Router Advertisements" aka BCP 202. Input & OK bluhm@ | ||||
| * | Unify variables used for recvmsg/sendmsg | 2017-04-05 | 1 | -17/+16 | |
| | | | | | ok millert@ deraadt@ | ||||
| * | sendmsg returns a signed value, fix error check | 2017-04-05 | 1 | -2/+2 | |
| | | | | | ok millert@ deraadt@ | ||||
| * | Don't rely on asprintf setting pointer to NULL on failure. | 2017-04-05 | 1 | -8/+15 | |
| | | | | | ok millert@ deraadt@ tom@ | ||||
| * | Always use return value of asprintf to determine success/failure, | 2017-04-02 | 1 | -7/+10 | |
| | | | | | | don't rely upon *ret becoming NULL ok millert, tom | ||||
| * | From a syslog perspective it does not make sense to log fatal and | 2017-03-21 | 1 | -6/+6 | |
| | | | | | | | warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@ | ||||
| * | work on making log.c similar in all daemons: | 2017-01-20 | 3 | -24/+46 | |
| | | | | | | | | | reduce the (mostly whitespace) differences so that log.c's can be diffed easily. need to set verbose in main() when option -d is used. ok florian@ | ||||
| * | Exit early from rdaemon() is the passed fd is invalid. | 2016-09-26 | 1 | -1/+7 | |
| | | | | | fd == -1 check suggested by deraadt@, ok florian@ | ||||
| * | consistently use MAX_ prefix | 2016-09-25 | 2 | -8/+8 | |
| | | | | | OK jca | ||||
| * | Interval calculations are perfectly fine with ints. | 2016-09-25 | 2 | -7/+6 | |
| | | | | | OK jca@ | ||||
| * | Use a properly aligned buffer (malloc'd, not on stack) to get routing messages. | 2016-09-21 | 1 | -9/+16 | |
| | | | | | | This fixes rtadvd on (at least) armv7. Problem reported and fix tested by Martin Brandenburg. | ||||
| * | Use the correct local variable to get address & prefixlen in routing messages | 2016-09-21 | 1 | -5/+5 | |
| | | | | | | | | This currently has no effect because route sockets are datagram (PR_ATOMIC) sockets, so we only get one message at a time. This means that the parsing code could be simplified. route(4) sockets cluebat from claudio@ | ||||
| * | Go in the background later, using rdaemon(). | 2016-09-15 | 1 | -7/+44 | |
| | | | | | | | | | | | | | rdaemon() works like daemon(3) but requires its caller to pre-open /dev/null. This makes it possible to go in the background after a chroot(2), allowing for more error checking. The pattern is basically - open /dev/null - chroot - privdrop - rdaemon "design" initialy discussed with semarie@ a while ago, ok dlg@ | ||||
| * | typos | 2016-09-03 | 1 | -3/+3 | |
| | | |||||
| * | Fix rtadvd.conf(5) example for pinfoflags, it accepts numbers not strings. | 2016-08-25 | 1 | -3/+3 | |
| | | | | | ok phessler | ||||
| * | Tweak timer debug output. | 2016-08-20 | 1 | -2/+2 | |
| | | | | | | -RA timer on em0 is set to 16:0 +RA timer on em0 is set to 16.0s | ||||
| * | Move counters from u_quad_t to uint64_t. | 2016-08-20 | 1 | -5/+5 | |
| | | | | | Printing is already done with %llu/(unsigned long long) casts. | ||||
| * | Move to libevent; ok florian@ | 2016-08-02 | 8 | -303/+97 | |
| | | |||||
| * | Prevent NULL deref, pointed out by llvm's scan-build. | 2016-06-30 | 1 | -6/+9 | |
| | | | | | OK jca, millert | ||||
| * | Spring cleanup | 2016-06-29 | 6 | -123/+74 | |
| | | | | | | | | | | | | | | | - pointless casts, kill caddr_t or replace it with char * - signed counters - simplify if_getmtu, only one method is needed and SIOCGIFMTU is the cheapest - we no longer have drivers for IFT_FDDI - hide details of iflist management - if (dflag) log_debug -> log_debug - dead code and comments - etc etc Input from and ok florian@ | ||||
| * | Replace .Po/.Pc with .Pq, and drop extra .Li; suggested by jmc@ | 2016-05-07 | 1 | -19/+7 | |
| | | |||||
| * | Document that both raflags and rtflags can hold route preference flags. | 2016-05-07 | 1 | -14/+23 | |
| | | | | | Input from an ok jmc@ | ||||
| * | fatal("malloc") -> fatal(NULL) | 2016-03-01 | 4 | -19/+19 | |
| | | |||||
| * | Pointless 'return;' in void functions | 2016-03-01 | 3 | -16/+3 | |
| | | |||||
| * | Kill unused #defines | 2016-03-01 | 1 | -4/+1 | |
| | | | | | No functional change | ||||
| * | Merge add/make_prefix() and kill last use of struct in6_prefixreq in userland. | 2016-02-29 | 1 | -34/+11 | |
| | | | | | ok florian@ | ||||
| * | init_prefix() is now trivial, merge it with its caller. | 2016-02-29 | 1 | -18/+5 | |
| | | | | | Suggested by and ok bluhm@ | ||||
| * | sys/signal.h -> signal.h | 2016-02-26 | 1 | -2/+2 | |
| | | |||||
| * | Unused variable. | 2016-02-26 | 1 | -2/+1 | |
| | | |||||
| * | GC remnants of the Router Renumbering code; ok florian@ | 2016-02-26 | 2 | -29/+2 | |
| | | |||||
| * | Remove #if'0ed code that uses a deprecated ioctl; ok florian@ | 2016-02-26 | 1 | -34/+1 | |
| | | |||||
| * | Kill some useless members of struct rainfo; ok florian@ | 2016-02-26 | 2 | -11/+2 | |
| | | |||||
| * | another typo | 2016-02-09 | 1 | -2/+2 | |
| | | |||||
| * | Kill code to send unicast packets which never got enabled. | 2016-02-09 | 3 | -44/+3 | |
| | | | | | | | and get rid of pointless memory allocations. ok bluhm@ | ||||
| * | Kill trailing whitespace. | 2016-02-08 | 10 | -47/+47 | |
| | | |||||
