summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/util.c
AgeCommit message (Expand)Author
3 daysAdd missing CAPA_EXT_MSG to log_capability().Claudio Jeker
2024-11-21ibuf_get_string() was added to the ibuf API, remove local versionClaudio Jeker
2024-09-30Improve some currently impossible error path in log_ext_subtype().Claudio Jeker
2024-07-03Fix typoJob Snijders
2024-05-29Introduce a ring buffer for log_sockaddr() this way log_addr() can beClaudio Jeker
2024-03-22Rework the cease shutdown reason to work in both directions by lookingClaudio Jeker
2024-03-22Rework parse_notification() to use the ibuf API for everything.Claudio Jeker
2024-03-20Cleanup AID handling.Claudio Jeker
2024-02-22Workaround for gcc3 - the use of anonymous unions now makes it complainMiod Vallat
2024-02-02aspath_inflate() can be called with an empty ASPATH.Claudio Jeker
2024-01-30Convert he ATTR_ASPATH and ATTR_AS4_PATH handlers in rde_attr_parse()Claudio Jeker
2024-01-23Start converting the message parser to use the new ibuf api.Claudio Jeker
2024-01-10Implement log_roa() and log_aspa() and use these functions in printconf.cClaudio Jeker
2023-04-17Implement a basic API to work with flowspec NLRI.Claudio Jeker
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