summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/util.c
AgeCommit message (Expand)Author
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
2018-07-13Move aspath_verify() and aspath_inflate() into util.c so bgpctl can use them.Claudio Jeker
2017-05-31Rework the way we do extended communities (mainly in the parser) and updateClaudio Jeker
2017-01-24sync log.c from relayd et al to bgpd.Sebastian Benoit
2017-01-23Make util.c fatal() free by allowing undefined behaviour in prefix_compare.Claudio Jeker
2017-01-13Add support for draft-ietf-idr-shutdownPeter Hessler
2016-06-03Add operators =, !=, - (range), >< (exclsive range) to the as-pathSebastian Benoit
2015-10-24seg_type is only set but never used. So remove it. Someone reported thisClaudio Jeker
2014-11-11Adjust aspath_strlen() since the output format changed to ASPLAIN.Claudio Jeker
2014-11-11The default output format for 32bit AS numbers has moved from AS_DOT+Peter Hessler
2013-10-30use more careful format strings to deal with various forms of AS#'sTheo de Raadt
2013-10-19Merge the prefix and prefixlen filter bits into one filter. Change theClaudio Jeker
2013-09-27typo in macro name; no md5 changeStuart Henderson
2011-09-20Move a few functions into util.c because bgpctl will need them soon.Claudio Jeker
2010-11-18Accept but ignore (treat as withdraw) updates with AS_CONFED_* pathClaudio Jeker
2010-10-24the subtype should be printed unsigned; ok claudioTheo de Raadt