summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/util.c
AgeCommit message (Expand)Author
2023-04-03Add first step of flowspec support. This adds the bits to establish aClaudio Jeker
2023-03-30Refactor extract_prefix() to first do the length checks and only thenClaudio Jeker
2023-01-04Add a per eBGP session role to the config.Claudio Jeker
2022-11-09Fix nlri parsing of L3VPN prefixes in withdrawals.Claudio Jeker
2022-11-07Fix some spelling errors.Moritz Buhl
2022-08-17Convert bzero() to memset(), bcmp() to memcmp() and bcopy() to memcpy().Claudio Jeker
2022-07-19Do a minimal check that the passed in option is inside the ASPATH segment.Claudio Jeker
2022-06-28Unbreak tree: add log_policy() implementation missing from previous commit.Theo Buehler
2022-06-24Use IN6_IS_ADDR_MC_NODELOCAL() instead of IN6_IS_ADDR_MC_INTFACELOCAL().Claudio Jeker
2022-06-22Sync KAME hack in log_in6addr() with route/show.cTheo Buehler
2022-06-19Implement a applymask() function that works on bgpd_addr structs.Claudio Jeker
2022-06-17Adapt the KAME hack in sa2addr() to be the same as in route/show.cClaudio Jeker
2022-06-16Remove prefixlen2mask() uasge outside of util.c. Instead use inet4applymask().Claudio Jeker
2022-05-25Fix non-transitive extended community handling.Claudio Jeker
2022-02-06Switch from u_intX_t types to stdint.h uintX_t. Mostly mechanical withClaudio Jeker
2021-02-16Add RTR support to OpenBGPD. Add basic support for the protocol.Claudio Jeker
2021-01-25RFC6472 discourages the use of AS_SET segements in ASPATH attributes.Claudio Jeker
2021-01-18Change struct bgpd_addr VPN encoding. Instead of including two almostClaudio Jeker
2021-01-05Revert part of the last addr2sa change. When addr is NULL or AID_UNSPECClaudio Jeker
2021-01-05Add AID_VPN_IPv[46] support to addr2sa. It only converts the address partClaudio Jeker
2021-01-04Use log_sockaddr() in log_addr() to print a struct bgpd_addr. This wayClaudio Jeker
2020-10-21Move tmp16 declaration into the #ifdef __KAME__ block to remove a compilerClaudio Jeker
2020-05-10In bgpctl argument parser, re-arrange 'reason' parsing ('nei action [reason]')Theo de Raadt
2020-04-23Store local-address by address family. This allows to configure bothClaudio Jeker
2020-02-12Move the code to figure out the alternate IP address (IPv6 addr for IPv4Claudio Jeker
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-06-17Cleanup, remove some unneded spaces add some other where needed.Claudio Jeker
2019-04-10Include endian.h since htobe* or be*toh is used. Helps with protable.Claudio Jeker
2019-02-27Convert the remote and local addresses in struct peer to be bgpd_addrsClaudio Jeker
2019-02-26Add support for '*', local-as and neighbor-as for ext-community matchingClaudio Jeker
2019-02-21Media and link states are highly OS dependent, to make porting easierClaudio Jeker
2019-02-18Use (unsigned) long long instead of (u_)int64_t since that drops theClaudio Jeker
2019-02-18Do not depend on the length field of struct sockaddr instead pass theClaudio Jeker
2019-02-15Use the posix version of betoh64() which is spelled be64toh() this is moreClaudio Jeker
2018-12-30add support for IPv6 VPN routesdenis
2018-12-11Refactor aspath code a bit. Move cached source_as (for origin validation)Claudio Jeker
2018-09-26Instead of checking that a segement is not of type AS_SET do the checkClaudio Jeker
2018-09-20Split up as_set into a set_table and an as_set. The first is what doesClaudio Jeker
2018-09-20whitespace cleanup, ok claudio@Sebastian Benoit
2018-09-20Fix the empty aspath segments check. seg_size is never 0, this needs to useClaudio Jeker
2018-09-20Fix an out of bound read that could crash the RDE because it touchedClaudio Jeker
2018-09-14Extend as_set to allow for different sized objects to be added. The onlyClaudio Jeker
2018-09-07Implement as-set a fast lookup table to be used instead of long list ofClaudio Jeker
2018-09-05Change the way as_compare() and aspath_match() handle 'neighbor-as'. InsteadClaudio Jeker
2018-09-04Introduce inet4applymask() which does the same as inet6applymask() andClaudio Jeker
2018-08-29When checking for AS 0 make sure the full ASPATH is validated and don'tClaudio Jeker
2018-08-10Make the AS_SET handling for source-as even simpler. It is enough to onlyClaudio Jeker
2018-08-09Improve handling of source-as when an AS_SET is rightmost. In that caseClaudio Jeker
2018-07-22Move functions to print link status etc. to util.c so that bgpd can use themClaudio Jeker
2018-07-20Move the nlri_get_prefix functions to util.c so that bgpctl can use them too.Claudio Jeker