summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/kroute.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix 2 memory leaks in error paths and a double-free (kroute_insert alreadyremi2019-12-111-3/+2
| | | | | | | frees kr if it detects a duplicate). From Hiltjo Posthuma OK benno@
* Add config option fib-priority to set a custom prio for routes ripdremi2018-12-311-10/+12
| | | | | | insers into the kernel routing table. OK deraadt@
* Unify ROUNDUP macros for parsing route messages.friehm2017-07-241-4/+4
| | | | | | Use the macro from route(8) / ospf6d(8) since it works also with argument 0. OK claudio@
* As done for bgpd recently, rename if_mediatype to if_type in ripd.stsp2015-09-271-3/+3
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* Like bgpd and ospfd filter routes by RTF_LLINFO and RTF_BROADCAST and useclaudio2015-07-171-3/+14
| | | | the RTF_CONNECTED to know if a route is connected or not.
* Use sizeof(u_short) in the first check since there are RT messages thatclaudio2015-02-111-2/+2
| | | | | are less then sizeof(*rtm) bytes long (e.g. interface announcements). Found the hard way by phessler@
* Sync kroute code with what we do in ospfd/bgpd (EAGAIN handling).claudio2015-02-101-1/+6
|
* Add SOCK_CLOEXEC | SOCK_NONBLOCK to two more socket calls.claudio2015-02-091-2/+3
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* The second level of the CTL_NET sysctl is a PF_*, not an AF_*guenther2014-06-231-3/+3
| | | | inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
* LINK_STATE_IS_UP() cleanup userland part. There is no need to specialclaudio2011-07-041-7/+3
| | | | | | | | case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
* Remove obsolete mcast routes in ldpd and ripd.claudio2011-06-261-17/+1
| | | | OK dlg@
* Merge duplicate log messages into one log_warn().bluhm2010-07-121-17/+6
| | | | ok claudio@
* Fix comparison between the routing message's priority and RTP_RIP.michele2010-01-021-2/+2
| | | | ok claudio@
* Preliminary rdomain support.michele2009-09-261-4/+7
| | | | ok claudio@
* Priorities are now handled in the kernel so:michele2009-09-241-4/+1
| | | | | | | - RTF_PROTO3 is useless - MPLS routes don't need special treatment anymore, so don't track them at all ok claudio@
* Make kroute code routing priority aware.michele2009-09-181-76/+75
| | | | ok claudio@
* Make ripd(8) aware of MPLS routes.michele2009-07-071-2/+4
| | | | ok claudio@
* rtm->rtm_hdrlen conversionchris2009-06-051-3/+3
| | | | ok claudio@, henning@
* Same reject and blackhole route handling as in ospfd. Allow those routesclaudio2009-06-021-3/+13
| | | | to be redistributed even though they point to 127.0.0.1. OK michele@
* Assign the correct metric to the routes learned from the kernel while ripd ismichele2009-03-311-2/+12
| | | | | | | running. Issue spotted and diff tested by Steven Surdock. ok claudio@
* prio RTP_RIP for inserted routeshenning2008-05-091-1/+2
|
* An u_int8_t is enough as prefixlen. Another lint warning gone.claudio2007-10-241-2/+2
|
* spacingderaadt2007-10-181-2/+2
|
* Add missing RTM_VERSION checks.claudio2007-10-171-1/+7
|
* Ripd needs a valid route for 224.0.0.9 to work. Instead of forcing users toclaudio2007-04-271-3/+21
| | | | | | | set multicast_router=YES we inject a 224.0.0.9/32 route into the kernel and remove the route on exit if the insert was successful. With this ripd works out of the box. OK michele@ norby@
* Use vectorized writes to send routing messages into the kernel instead ofclaudio2007-04-191-34/+62
| | | | using a static message structure. Similar diffs went into bgpd and ospfd.
* Doh! If we support "redistribute rtlabel" we should actually track theclaudio2007-03-191-2/+24
| | | | | routing labels in ripd's kroute code. Just steal the code from ospfd which does it right. OK michele@
* Same problem as in ospfd's kroute.c don't check rtm_tableid without verifyingclaudio2007-03-131-4/+4
| | | | that rtm_type is one of RTM_ADD, RTM_CHANGE or RTM_DELETE.
* add additional link states to report the half duplex / full duplexreyk2006-11-281-3/+3
| | | | | | | | state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
* mib we pass to sysctl when fetching the routing table has 7 entries now,henning2006-11-281-3/+3
| | | | not 6 any more (rtableid added). need to tell sysctl so.
* ignore messages for alternate routing tables for now; from bgpdhenning2006-11-161-2/+6
|
* spelling and typo fixesdavid2006-10-241-2/+2
|
* Welcome ripdnorby2006-10-181-0/+1126
started by Michele Marchetto some time ago by using the imsg/three process framework of ospfd. He implemented most of the daemon with a little help and guidance from Claudio and I. Currently the daemon is more or less complete, with the exception of key lifetime and rollover. Not yet connected to the builds. OK claudio@