summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_attr.c
AgeCommit message (Collapse)Author
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
Cleanup path attribute handling. First of all kill struct attr_flags, all those infos are now in struct rde_aspath. Second move attribute parser functions into rde.c, rde_attr.c is shared between bgpd and bgpctl. Third reimplementation of the nexthop handling. Make it IPv6 ready and fix some major bug relating to "set nexthop". henning@ OK if it breaks nothing
2004-08-05As usual cleanup on exit. OK henning@Claudio Jeker
2004-08-05Cleanup aspath specific functions and api. Mainly switch to a refcnt basedClaudio Jeker
allocation. This helps to save a bit of RAM. looks good henning@
2004-07-28The default localpreference is 100 and not 0. Found and ok henning@Claudio Jeker
2004-07-13fix some typosJared Yanovich
ok henning otto
2004-07-05The rde no longer needs to check if the nexthop is the loopback address.Claudio Jeker
This is now down in the parent. OK henning@
2004-07-05fix a few KNF falloutsHenning Brauer
2004-06-24First step at multiprotocol support, only partially done.Claudio Jeker
OK henning@
2004-06-24Make community set strict aligenment save, remove unneeded ENSUREsClaudio Jeker
OK henning@ djm@
2004-06-22Cleanup. jajaja henning@Claudio Jeker
2004-06-20at least somewhat consistently name the TAILQ_ENTRYs... this confused meHenning Brauer
more than once
2004-05-21RFC 2796 bgp route reflector support. This is very useful in conjunctionClaudio Jeker
with templates. looks good, go for it henning@
2004-05-17extend filter language to allow basic setting of COMMUNITIES attribute.Damien Miller
ok claudio@
2004-05-07add a filter option to dump prefixes learned in UPDATEs into a PF table,Damien Miller
intended for building realtime BGP blacklists (e.g. with spamd); ok claudio & henning
2004-04-30spellingTheo de Raadt
2004-04-08swap the last two parameters to TAILQ_FOREACH_REVERSE. matches what FreeBSDHenning Brauer
and NetBSD do. ok millert@ mcbride@ markus@ ho@, checked to not affect ports by naddy@
2004-03-20comment spelling fixes; ok henning@David Krause
2004-03-12*size is a u_int16_t not a pointer so use 0 instead of NULL.Claudio Jeker
2004-03-12bgpctl has a empty-as keyword so make this actually work. Handle AS_EMPTYClaudio Jeker
in aspath_match().
2004-03-12I modified the print format for AS_SET so keep the aspath_strlen() functionClaudio Jeker
in sync.
2004-03-12tab at EOLClaudio Jeker
2004-03-12Rewrite community_match() for loop. yaya henning@Claudio Jeker
2004-03-11Add basic support for communities. Currently it is only possible to filterClaudio Jeker
on communities, e.g match from any community 24640:* set localpref 666 OK henning@
2004-03-11Ensure that aspath_snprint() returns a zero terminated string also if theClaudio Jeker
aspath is "". Found, OK and tsc tsc tsc henning@
2004-03-05Plug some memory leaks in rde. Based on a patch by Patrick Latifi.Claudio Jeker
Added attr_move() so that we can copy the attribute before calling the filter. path_update() will now use the passed attribute so it can't be simply reused. OK henning@
2004-03-01KNFHenning Brauer
2004-02-27remove unneded peer pointer in struct prefix and change a in_addr_t toClaudio Jeker
struct in_addr. OK henning@
2004-02-26Implement "enforce neighbor-as yes|no" which is by default on for ebgpClaudio Jeker
neighbors. While doing that check also that the nexthop is valid (not class D or E and not in 127/8 range). Kill some TODO and XXX and rename the british neighbour to neighbor as used everywhere else. OK henning@
2004-02-24spacesClaudio Jeker
2004-02-23While searching a different bug found those two gems. The ntohs is obviousClaudio Jeker
the plen adjusting is needed to jump over the value that we ignore. yaya henning@
2004-02-19Add support for basic filters. Nothing optimized and it has some issues butClaudio Jeker
this is a huge step forward. OK henning@
2004-02-19Make the code more portable. Add some missing header files and make the useClaudio Jeker
of the queue(3) makros more portable. OK henning@ some time ago.
2004-02-19Doh. Copy pasto. The if is always false and bogus.Claudio Jeker
2004-02-18Correctly handle parse errors in aspath and prefixes. Also do input aspathClaudio Jeker
loop detection. OK henning@
2004-02-18Bring the path attribute parsing on big step closer to the RFC.Claudio Jeker
Check that evry attribut is only allowed once and ensure that the mandatory attributes are present. no objections henning@
2004-02-18Check for optional path attributes error. This kills some XXX in the code.Claudio Jeker
OK henning@
2004-02-16KNFHenning Brauer
2004-02-16Basic aspath match function needed for filters and the "show rib" bgpctlClaudio Jeker
command. OK henning@
2004-02-16Add basic functions to print aspath in human readable format. OK henning@Claudio Jeker
2004-02-16Make the path attribute handling more RFC conformant. Also move theClaudio Jeker
parser to rde_attr.c where it belongs. Still missing: better aspath loop detection (should be done afterwards) and some basic error checking for optional attributes. OK henning@
2004-02-09replace a bunch of u_long by u_int32_tHenning Brauer
2004-02-04Move BGP path attribute handling functions in a own file. henning@ conceptual okClaudio Jeker