summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2004-03-16tcp md5sig requires that local-address is specified as well for now, soHenning Brauer
enforce it.
2004-03-16delay creating the control socket until after forking, but before chrootHenning Brauer
(lives in /var/run, i. e. outside chroot) and privdrop. claudio ok
2004-03-15use switch instead of if { } else if { } else { }Henning Brauer
2004-03-15properly check chdir success after chroot() and tweak err msgs a little,Henning Brauer
claudio ok
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-12print that capabilities stuffHenning Brauer
2004-03-12tweak err reportingHenning Brauer
2004-03-12tweakHenning Brauer
2004-03-12not debugging any moreHenning Brauer
2004-03-12tab at EOLClaudio Jeker
2004-03-12Update man page to reflect reality. Added filtering section and some newClaudio Jeker
statements. OK jmc@ henning@
2004-03-12fix the "wait for child processes to terminate" code, and move it down a bitHenning Brauer
millert ok
2004-03-12Rewrite community_match() for loop. yaya henning@Claudio Jeker
2004-03-11There is no cnumber token in the parser so don't define a type for it.Claudio Jeker
2004-03-11yes, the keyword table has to be sorted ;-)Henning Brauer
2004-03-11KNFHenning Brauer
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-11Shutdown the RDE cleanly on exit. Plug some memleaks. OK henning@Claudio Jeker
2004-03-11Free unneeded mrt lists in SE and on exit. OK henning@Claudio Jeker
2004-03-11fflush(stderr) in vlog if in debug mode, from discussion with and ok claudioHenning Brauer
2004-03-11Type in Makefile. CLFAGS != CFLAGS and we don't want -Wredundant-decls theClaudio Jeker
standard include files are full of redundant declarations. OK henning@
2004-03-10pass a pointer to the network list as well to session_main so we can free()Henning Brauer
the members after fork
2004-03-10while walking the peer list on shutdown free the peer structsHenning Brauer
2004-03-10pass a pointer to the filter rule list to session_main() so we can free()Henning Brauer
the list entries and the head there after forking
2004-03-10when we exit try to write out what is left in the msg buffers for the imsgHenning Brauer
pipes and clear buffers afterwards
2004-03-10free peer list on exit, claudio okHenning Brauer
2004-03-10remove unused functionHenning Brauer
2004-03-10on shutdown, explicitely clear the knexthop, kroute and kif tables, claudio okHenning Brauer
2004-03-10in kif_kr_insert and _remove, don't whine when we do not find an interfaceHenning Brauer
whom's index is 0. this means no interface and our faked route that protects the loopback network uses ifindex 0. claudio ok
2004-03-10remove an ugly hack from the time when we had no RTM_IFANNOUNCE messages:Henning Brauer
if kif_find() did not find a matchnit re-fetched the complete table from the kernel and retried. this is obsolete now, claudio ok
2004-03-10oupsHenning Brauer
2004-03-10implement framework to announce capabilities in the open messages we send.Henning Brauer
this includes handling "unsupported optional parameter" notifications from the peer and retrying without capability announcement. claudio ok
2004-03-09When a new prefix is filtered it is necessary to remove the old prefix.Claudio Jeker
This is done by a recursive call that does the withdraw. OK henning@
2004-03-08mem leaks in error pathes, mostly from Patrick LatifiHenning Brauer
2004-03-08typo in format strin (ugh!) and few missing free()s, partitially fromHenning Brauer
Patrick Latifi
2004-03-06plug a memory leak in the lexer.Henning Brauer
the issue is this code fragement from yylex(): . token = lookup(buf); . yylval.v.string = strdup(buf); . if (yylval.v.string == NULL) . fatal("yylex: strdup"); . return (token); lookup() tries to match buf against a list of keywords, and returns the associated token if it has a match, or the token STRING otherwise. STRING is the only token that needs (and free()s) yylval.v.string. however, we assigned memory for it with the strdup in yylex for each and every token. the fix is obviously only setting yylval.v.string when lookup() returns STRING. Patrick Latifi noticed that something was leaking with token handling, analysis and fix by me. ok deraadt@
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-05plug a couple of memory leaks, Patrick LatifiHenning Brauer
2004-03-05huch, remove a debug messageHenning Brauer
2004-03-05new error code "unsupported capability" from RFC 3392Henning Brauer
2004-03-05add a parser for the capability announcements using the OPEN message as perHenning Brauer
RFC 3392. we don't support any capability yet but this at least avoids one session teardown and reestablishment when talking to peers which do support capability announcement (as in: basically any) and we'll start supporting some soon.
2004-03-05improve logging when we are unhappy with an OPEN message, claudio okHenning Brauer
2004-03-05let parse_open() call change_state() on error itself, so that after sendingHenning Brauer
a notification about disagreement on optional parameters we do not punish the peer by keeping him in Idle state for IdleHoldTime, rather let him proceed to Connect immediately again. the "punishment" is of course a flap protection in the first place. claudio ok
2004-03-05implement a parser for the optional attributes in OPEN messages and properlyHenning Brauer
refuse any if we find them. not refusing means agreement - so we agreed with our peers on stuff we don't support. oups. claudio ok
2004-03-05when a session that had a tcp connection established is pushed back to IDLE,Henning Brauer
try to write out what is left in the rite buffers. now notifications do reach the peer...
2004-03-04no ; after RB_PROTOTYPE / RB_GENERATEHenning Brauer
From: Andrey Matveev <andrushock@korovino.net>
2004-03-03plug a couple of little memory leaks in error paths that we hopefully neverHenning Brauer
reach - except for one missing free which was not in an error path. oups. at least in a function that is only called once ever in bgpd's lifetime. From: Patrick Latifi <pat at eyeo dot org>, thanks!