summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_attr.c
AgeCommit message (Expand)Author
2012-08-12By default mask the reserved bits and the ext len bit in the attributeClaudio Jeker
2012-04-12aspath_neighbor() should return the local AS number for empty AS pathes.Claudio Jeker
2011-09-20Move a few functions into util.c because bgpctl will need them soon.Claudio Jeker
2010-12-31Add missing #includes instead of assuming that some system header pulls inPhilip Guenthe
2010-11-18Accept but ignore (treat as withdraw) updates with AS_CONFED_* pathClaudio Jeker
2010-10-22Free attributes that just got allocated beforehands and do not hold anyClaudio Jeker
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
2010-05-17Implement two new filters, max-as-len and max-as-seq. The first is limitingClaudio Jeker
2010-03-29I'm going to need community_ext_conv() outside of rde_attr.c soon, so moveClaudio Jeker
2010-03-05Allow to filter for ext-community attributes. Currently only perfect matchesClaudio Jeker
2009-12-18Merge rde_filter_community() with community_match() and kill a uselessClaudio Jeker
2009-12-16Implement "set ext-community [delete] subtype key:value" to set and deleteClaudio Jeker
2009-03-19Implement a attr_writebuf() function that works on a struct buf instead ofClaudio Jeker
2009-02-17Fix aspath_prepend() in the case a AS-PATH has a sequence of 255 elementsClaudio Jeker
2009-01-13Replace NEW_ASPATH/NEW_AGGREGATOR with the naming from RFC4893,Stuart Henderson
2008-05-08KNFHenning Brauer
2007-05-22Only try to merge a AS_SEQUENCE if there is a difference between the 4-byteClaudio Jeker
2007-05-11Various spelling fixes from Stuart Henderson.Claudio Jeker
2007-04-30Better error messages.Claudio Jeker
2007-04-30Fix a bad check in aspath_inflate() -- compare with the correct loop value.Claudio Jeker
2007-04-23Make bgpd 4-byte AS compatible. All internal representations of AS numbersClaudio Jeker
2007-03-06allow filtering on peer-as (leftmost AS in path), ok claudioHenning Brauer
2007-02-22KNFHenning Brauer
2006-12-21Check for overflow of others_len. This can not happen at the moment becauseClaudio Jeker
2006-12-18avoid p = realloc(p idiom, ok claudio, spotted deraadtHenning Brauer
2006-05-27Unfuck community delete. The if () statement to match communities was FUBARClaudio Jeker
2006-04-12It is no longer allowed to change attributes in place. This corrupts theClaudio Jeker
2006-03-15Fix a memory leak when communities are set or deleted. This seems to fixClaudio Jeker
2006-02-09Implement "set community delete 65001:*" and friends. This will removeClaudio Jeker
2006-02-09When comparing community type, cast to u_int16_t. The same is done for theClaudio Jeker
2006-02-09attr_free() should not modify others_len as it does not resize the othersClaudio Jeker
2006-01-20No need to calloc() others if others_len is 0. The 0 malloc() does not hurtClaudio Jeker
2006-01-20Doh. > not < and attr_compare() starts to work correctly. OK henning@Claudio Jeker
2006-01-10The attributes cache broke the set community filterset because community_set()Claudio Jeker
2006-01-10In attr_diff() compare the attributes flags too. They may be different andClaudio Jeker
2006-01-05Cache optional BGP attributes (mostly communities) and use a simpleClaudio Jeker
2006-01-04Correctly count the number of allocated BGP attributes. Needs a own counter.Claudio Jeker
2006-01-03Track some (memory) statistics in the RDE. Accessible via bgpctl.Claudio Jeker
2006-01-03Move functions shared with bgpctl into new file util.c. Simplifies theClaudio Jeker
2005-12-30Remove unused attr_optlen()Claudio Jeker
2005-12-30Use sys/hash.h instead of own built functions that work similar.Claudio Jeker
2005-12-19Better English in comment.Claudio Jeker
2005-06-13realloc(3) correctly. Do not adjust the variable describing how much memoryClaudio Jeker
2005-06-10Make sure that the ATTR_EXTLEN flag is unset if the attribute length isClaudio Jeker
2005-06-10Introduce attr_optlen() to get the total lenght of an optional attributeClaudio Jeker
2005-04-16Simplify return codes of aspath_asprint().Claudio Jeker
2005-04-15Fix memory leak in case aspath_snprint() returns an error (-1).Claudio Jeker
2004-11-10It is not needed to mask the value wit 0xff as it is < 255. OK henning@Claudio Jeker
2004-08-10style, use sizeof() instead of a hardcoded value.Claudio Jeker
2004-08-06Monster diff to get one step closer to IPv6 support.Claudio Jeker