summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
AgeCommit message (Expand)Author
2024-01-09Convert the parent process imsg handling over to the new imsg API.Claudio Jeker
2024-01-08Define and use struct ctl_kroute_req to encode the arguments ofClaudio Jeker
2023-10-17Neither sin_len nor sin6_len can be 0 so these checks are not needed.Claudio Jeker
2023-10-16Improve IPv6 link-local address handlingClaudio Jeker
2023-06-01Check the F_NEXTHOP flag on the right kroute6 object.Claudio Jeker
2023-03-07Remove pre-c99 gcc workaround which is no longer needed.Claudio Jeker
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
2022-11-09Properly handle L3VPN routes in kroute. This got broken while reworkingClaudio Jeker
2022-10-18Fix some spelling errorsJob Snijders
2022-09-21The values for fib_priority are OS dependent. To help portability moveClaudio Jeker
2022-09-15Make kroute_matchgw() also work with connected routes.Claudio Jeker
2022-08-30Add missing #include <sys/queue.h>Claudio Jeker
2022-08-30Reshuffle and cleanup the includes a little bit.Claudio Jeker
2022-08-25Connected routes use the BGP exit nexthop while other routes need to useClaudio Jeker
2022-08-19Fix nexthop lookup for connected routes.Claudio Jeker
2022-08-18In kroute_insert() fix the check for multipath routes. Use a helper variableClaudio Jeker
2022-08-18There is no need to pass the fd to send_rtmsg(), the fd is always theClaudio Jeker
2022-08-17Convert bzero() to memset(), bcmp() to memcmp() and bcopy() to memcpy().Claudio Jeker
2022-08-17Just use struct kif and kill struct kif_node. No need for this extraClaudio Jeker
2022-08-17Just 2 newline changes.Claudio Jeker
2022-08-16Do not send kroutes from the RDE to the FIB with the true_nexthop butClaudio Jeker
2022-08-10Reverse NULL check in krVPN6_change()Theo Buehler
2022-08-03Fix a modify after free error in kroute_remove()Claudio Jeker
2022-08-03Fix possible NULL dereference in knexthop_validate().Claudio Jeker
2022-07-28Rework kroute_remove(), it uses a struct kroute_full and does most ofClaudio Jeker
2022-07-28whitespace found during a read-thru; ok claudioTheo de Raadt
2022-07-27There is no need to track both F_BGPD and F_KERNEL anymore.Claudio Jeker
2022-07-26No need to check RB_REMOVE() return value if kif is not NULL.Claudio Jeker
2022-07-26Missing indirection. This version compiles.Claudio Jeker
2022-07-26Refactor nexthop tracking and remove all the kif_kr code. There is noClaudio Jeker
2022-07-23Refactor and rename bgpd_filternexthop() to bgpd_oknexthop()Claudio Jeker
2022-07-22Revert previous commit. The RTP_MINE checks on struct kroute_full areClaudio Jeker
2022-07-22Retire the F_KERNEL flag, it got superseded by route priority and RTP_MINE.Claudio Jeker
2022-07-21Make kr_redistribute() and kroute_insert() AID independent and useClaudio Jeker
2022-07-20Cleanup and fix the network code.Claudio Jeker
2022-07-19Use kf for all struct kroute_full variables. Makes code more consistent.Claudio Jeker
2022-07-18use syntax which more acceptable to older compilersTheo de Raadt
2022-07-14More IPv6 scope_id fixes, now hopefully scope_id should be handledClaudio Jeker
2022-06-30Only have one version of send_rtmsg() which uses struct kroute_full().Claudio Jeker
2022-06-25Since 128bit addressing is not enough add some addition 32bit ofClaudio Jeker
2022-06-24Use IN6_IS_ADDR_MC_NODELOCAL() instead of IN6_IS_ADDR_MC_INTFACELOCAL().Claudio Jeker
2022-06-23Move struct kif from bgpd.h to kroute.cClaudio Jeker
2022-06-23Fix commentsClaudio Jeker
2022-06-23Thanks IPv6 for being extra complex. Recover scope_id for link local addrs.Claudio Jeker
2022-06-23Replace struct kroute_node and kroute6_node with direct versions ofClaudio Jeker
2022-06-22Move struct kroute and kroute6 to kroute.c and out of bgpd.hClaudio Jeker
2022-06-22Use struct kroute_full in bgpd_filternexthop() so this code becomes a lotClaudio Jeker
2022-06-22Use struct kroute_full instead of a union of struct kroute & kroute6.Claudio Jeker
2022-06-22Remove comment which is no longer true.Claudio Jeker
2022-06-19Implement a applymask() function that works on bgpd_addr structs.Claudio Jeker