summaryrefslogtreecommitdiff
path: root/sys/net/bfd.c
AgeCommit message (Expand)Author
2019-06-02Repair state and flag bitmasks to match RFC, from Mitchell KromeTheo de Raadt
2019-05-28Fix reporting of up->down transition in routing messagekn
2019-05-09we don't need to check rtisvalid() in these places, the functions we arePeter Hessler
2019-01-20use the faster interface, since the precision is not necessaryPeter Hessler
2019-01-18chase sounlock() api change, make bfd(4) build againPeter Hessler
2018-07-30Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O modeMartin Pieuchot
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketMartin Pieuchot
2018-04-28bump my copyrightPeter Hessler
2018-04-28don't check if we still have the BFD flag set when sending a packet, as wePeter Hessler
2018-04-28properly delete the bfd configuration when it is disabledPeter Hessler
2018-04-28use unsigned variables for things that we use as unsignedPeter Hessler
2018-04-28add the socket lock around our use of socketsPeter Hessler
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changeMartin Pieuchot
2017-08-10The caller of sobind() has to free the name mbuf. Plug a mbuf leakAlexander Bluhm
2017-05-16Replace remaining splsoftassert(IPL_SOFTNET) by NET_ASSERT_LOCKED().Martin Pieuchot
2017-03-10move clearing the bfd config to a task. while here, fix a typoPeter Hessler
2017-03-10move receiving and processing the BFD packet into a taskPeter Hessler
2017-03-06Prefix functions dealing with routing messages with 'rtm_' and keepMartin Pieuchot
2017-01-24A space here, a space there. Soon we're talking real whitespaceKenneth R Westerback
2017-01-24only send the rt msg on timeout failure if bfd is not downPeter Hessler
2017-01-24move setting the IP TOS from the listening socket to the sending socketPeter Hessler
2017-01-22set the TOS/ECN field to Internetwork Control, since that is exactlyPeter Hessler
2017-01-21sockets tell us the size of their data. since we want one udp packet,Peter Hessler
2017-01-21be more explict with the size of bfd packets we send and receivePeter Hessler
2017-01-20if a route is not valid, set down instead of admindownPeter Hessler
2017-01-20fix typoPeter Hessler
2017-01-20don't increase the error counter in the not-down case, in generalPeter Hessler
2017-01-20only increase the error counter if we are in a not-down statePeter Hessler
2017-01-20correctly set our rx timer to be the required minimum, not the barePeter Hessler
2017-01-19add hooks so we can query the current state of a BFD sessionPeter Hessler
2017-01-19when parsing a BFD packet, avoid an uninitialized variable if thePeter Hessler
2017-01-19make error handling a function, and use it in a few placesPeter Hessler
2017-01-19rtisvalid() checks for RTF_UP, so instead check for RTF_BFDPeter Hessler
2017-01-19when deconfiguring a BFD session, clear both the RTF_BFD flag on thePeter Hessler
2017-01-12Remove unneeded splsoftnet().Martin Pieuchot
2016-09-24a route message for BFD, so we can notify userland about the status.Peter Hessler
2016-09-23since the kernel ticks are every 10ms, bump our minimum up a little bit.Peter Hessler
2016-09-23based on a more careful reading of the spec, we're not allowed to makePeter Hessler
2016-09-23only set the diag code when we we decide to fail it, not when the firstPeter Hessler
2016-09-23remove splsoftnet around the socket functions. if they need it, theyPeter Hessler
2016-09-20properly set our state to down when we initially create the session.Peter Hessler
2016-09-20little bit of whitespacePeter Hessler
2016-09-20sprinkle some splsoftnet around sosocket and our soon-to-be-rtmsg locationsPeter Hessler
2016-09-19sigh, correct typoPeter Hessler
2016-09-19do a better job of setting "last state"Peter Hessler
2016-09-19send a nice diagnostic reason when we destroy all bfd interfaces (reboot)Peter Hessler
2016-09-19remove a bunch of noisy implementation-helper printfsPeter Hessler
2016-09-19once again, fix the bfd state-machine. this time, tested against aPeter Hessler
2016-09-18apply the canary to the correct variablePeter Hessler