summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
AgeCommit message (Collapse)Author
2004-02-01put v6 cruft into session_up() while beeing there... claudio okHenning Brauer
2004-01-31rename tcp sockopt TCP_SIGNATURE_ENABLE to TCP_MD5SIGHenning Brauer
requested by theo ok markus@ hshoexer@
2004-01-30-enable md5sig on the listening socketHenning Brauer
-on connections we just accepted, check wether md5sig is configured for that peer, and check wether the connection is md5sig'd too. if not, refuse tested against cisco 7200.
2004-01-29enable tcp md5sig om the connecting socket when md5sig is configured for thatHenning Brauer
peer. I just successfully established an md5sig'd session against a cisco 7200 with that.
2004-01-28improve loggingHenning Brauer
2004-01-28KNFHenning Brauer
2004-01-28catch SIGINT here as well so we can properly shut down if ^C'ed in debug modeHenning Brauer
2004-01-28STOP events for all sessions before we exit.Henning Brauer
allows for some cleanup to happen, especially we need this to remove the md5sig flows
2004-01-28repair the bind() in session_connect; only used if local-addr was specifiedHenning Brauer
got broken in the sockaddr_in -> bgpd_addr conversion
2004-01-28improve loggingHenning Brauer
2004-01-28we need a pfkey_init the gets us a PF_KEY socket before we drop privsHenning Brauer
eases other code quite a bit in exchange...
2004-01-28call pfkey_auth_establish() on START eventsHenning Brauer
call pfkey_auth_remove when a session drops back to IDLE state ok markus@ claudio@
2004-01-27use a struct bgpd_addr instead of sockaddr_in for peer_config->local_addr andHenning Brauer
->remote_addr for easier multiprotocol support ok claudio@
2004-01-23make sure to only use the accept()ed connection of there is no other existingHenning Brauer
tcp connection for the peer in question, and shutdown & close it otherwise. add a comment about collision detection.
2004-01-23sync comments with reality and properly log accept() errorsHenning Brauer
2004-01-22make log_peer_* take a struct peer_config instead of the session engineHenning Brauer
specific struct peer, and move their prototypes to bgpd.h to make it available to whole bgpd ok claudio@
2004-01-22use log_warnx and log_info. reclassify a few messages in the process and fixHenning Brauer
a few messages. ok claudio@
2004-01-22log_peer_err -> log_peer_warnHenning Brauer
log_peer_errx -> log_peer_warnx
2004-01-22s/log_err/log_warn/Henning Brauer
it is like warn(3), nor err(3). so use a less confusing name.
2004-01-17allow the interfaces as bgpd sees 'em to be queried via imsgsHenning Brauer
2004-01-13Better update error handling. Ensure that the session goes down andClaudio Jeker
ignore all queued updates after an error. Looks good henning@
2004-01-11Add to the IMSG_SESSION_UP message the local and remote address of theClaudio Jeker
peer session. This is needed to set the correct nexthop address in outgoing bgp UPDATES. OK henning@
2004-01-11clean up setting the poll events a bit. no functional changes.Henning Brauer
2004-01-11new message IMSG_CTL_SHOW_NEXTHOP: request/send lost of BGP nexthops andHenning Brauer
the result of their validity check
2004-01-11once the tcp session is established use gettsockname/getpeername to getHenning Brauer
local/remote sockaddr and store it in the peer struct ok claudio@
2004-01-10re-enable sending outgoing updatesHenning Brauer
ok claudio@
2004-01-10we are only interested in POLLOUT for a session socket when we eitherHenning Brauer
have queued writes or the connection is not yet established - but certainly not if we ever had a queued write, forever... ok claudio@
2004-01-10disable sending UPDATEs for now; it triggers som blocking bug...Henning Brauer
ok & debugging band-aid claudio@
2004-01-10i buy a break;Henning Brauer
2004-01-10send out UPDATE messages to the peer(s) that we receive from the RDEHenning Brauer
ok claudio@
2004-01-09for IMSG_CTL_KROUTEs allow matching based on flags,Henning Brauer
add IMGS_CTL_KROUTE_ADDR to match the route for a given address ok claudio@
2004-01-09get us a stateful imsg relaying framework, and the first receiver,Henning Brauer
IMSG_CTL_KROUTE, to have the kroute structs forming the fib sent to a control socket. ok claudio@
2004-01-09we must ignore SIGPIPE.Henning Brauer
we do notice closed pipes just fine, tho there was at least one case where we tried a write without POLLOUT and that got us a SIGPIPE before our pipe closed detection catched it. ok claudio@
2004-01-07handle global vs peer-specific holdtime in a nicer and reload-friendlierHenning Brauer
way
2004-01-07don't try to be smart after config reloads and try to detect wetherHenning Brauer
a session needs a reinit for the new conf to kick in. the logic is condemned to fail, and implicitly taking sessions down is BAD. after discussion with mickey@, ok claudio@
2004-01-06two new imsg types, IMSG_CTL_NEIGHBOR_UP and _DOWN, on their receival on theHenning Brauer
control socket the given neighbor session is sent a START / STOP signal. ok claudio@
2004-01-06initialize new peers inline instead of looping through 'em initing eachHenning Brauer
before the mainloop started, and a speerate init for those coming in on reloads. much easier this way. ok claudio@
2004-01-06in session_dispatch_msg, in the loop where we suck the messages out of theHenning Brauer
buffers, we need to check wether the buffers are still there before trying to get the next message. the previous one might have caused the session to drop back to the IDLE state, which implies that those buffers have been deallocated. ok claudio@
2004-01-06allow holdtime and holdtime min to be configuered per peerHenning Brauer
ok claudio@
2004-01-06properly punish oscillating neighbors.Henning Brauer
previously we were to forgiving so the punishment didn't kick in as intended
2004-01-06rename our StartTimer to IdleHoldTimer as per draft-ietf-idr-bgp4-23Henning Brauer
2004-01-062004Henning Brauer
2004-01-05Big overhaul of the mrt code.Claudio Jeker
Dumping of incomming bgp messages is now possible and dumping the (not yet) filtered updates works too. Per neighbor dumps are still missing. OK henning@
2004-01-04cope with poll errorHenning Brauer
2004-01-04err, on receival of keepalives increase the keepalive counter, not the updateHenning Brauer
counter...
2004-01-04keep seperate message counters for open/update/keepalive/notificationHenning Brauer
2004-01-04-new imsg CTL_RELOADHenning Brauer
-upong receival in the SE forward to parent -make sending messages from SE to parent work for that (was not required before) -parent reacts to that just like a SIGHUP, reread config file
2004-01-04allow "show neighbor" to be limited to one specific neighborHenning Brauer
2004-01-04in the SE, keep the remote router-id in network byte order, just likeHenning Brauer
every other IP address in the RDE, transform in into host byte order upon receival
2004-01-03keep track of last session up/down and last successfull readHenning Brauer