summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/log.c
AgeCommit message (Collapse)Author
2004-06-01I would have sworn I added tzset() hereHenning Brauer
2004-05-21move the big name tables to the .h file, makes the .c easierHenning Brauer
2004-05-08KNFHenning Brauer
2004-05-08provide log_sockaddr, which uses getnameinfo(), and use it inHenning Brauer
log_conn_attempt
2004-04-25spacesHenning Brauer
2004-04-25add "neighbor cloning", allowing you to specify a prefix and prefixlengthHenning Brauer
instead of the neighbor's IP address. WHen a connection comes in matching that mask we clone the neighbor spec. IPv6 match code by itojun, rde feeding by claudio, ok claudio
2004-04-25unbreak log_conn_attempt, bah crap crap crap crap crap crap crap crap crapHenning Brauer
2004-04-16make log_conn_attempt work in an address family independent matterHenning Brauer
2004-03-11fflush(stderr) in vlog if in debug mode, from discussion with and ok claudioHenning Brauer
2004-03-05new error code "unsupported capability" from RFC 3392Henning Brauer
2004-02-25use __progname instead of hardcoding bgpd for log_initHenning Brauer
2004-01-28KNFHenning Brauer
2004-01-27log_ntoa is herewith condemned to death by claudio and yours trulyHenning Brauer
2004-01-27constify log_addr and log_ntoa's returns, reminded by claudioHenning Brauer
2004-01-27use inet_ntop() for log_addr(), claudio okHenning Brauer
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-23provide log_addr, which takes a struct bgpd_addrHenning Brauer
intended to replace log_ntoa in most cases becaus that is IPv4 only by design
2004-01-22provide a log_debug and use it in rde.c.Henning Brauer
with this, logit() can be a private function. we don't need to include syslog.h in bgpd.h any more; log.c and parse.y who need it include it directly now.
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-22provide log_warnx() and log_info()Henning Brauer
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-19(v)fprintf atomically in vlog() in debug mode, prodded by theoHenning Brauer
2004-01-062004Henning Brauer
2004-01-04share statenamesHenning Brauer
2003-12-30missing free()s; From: Patrick Latifi <pat@eyeo.org>Henning Brauer
2003-12-30typos from davidHenning Brauer
2003-12-26constify; ok henning@Jakob Schlyter
2003-12-26when this project started and i added the fatal() function, I made it takeHenning Brauer
the error number as parameter instead of accessing errno, because in one place the error number was not in errno but fetched from a socket. now, of course it makes much more sense to just set errno to the error number just fecthed in this one place instead of having hundreds of fatal() calls all transfer the errno round and round and round... fix this, and also provide a fatalx, which does not care for errno and doesn't invoke strerror. oh, btw, in the place where we fetch the err # from the socket, we don't call fatal anymore anyway...
2003-12-26provide a real log_errHenning Brauer
2003-12-26log_err -> log_peer_errHenning Brauer
log_errx -> log_peer_errx because that is what they really are, peer specific.
2003-12-26+ log_ntoa, a simple helper funtion that doesn't require a struct in_addr...Henning Brauer
2003-12-26remove he pathetic log_kroute()Henning Brauer
not used anywhere anyway
2003-12-24add log_kroute()Henning Brauer
2003-12-21little KNF inbetweenHenning Brauer
2003-12-20keep track which process we are so fatal() can log in which proc theHenning Brauer
condition happened. fatal()s from subsystems used by all 3 processes like the imsg subsystem were hard to track down without knowing in which process the condition happened.
2003-12-17styleHenning Brauer
2003-12-17welcome, bgpdHenning Brauer
started by me some time ago with moral support from theo, the proceeded up to the point where the session engine worked correctly. claudio jeker joined then and did a lot of work in the RDE. it is not particulary usefull as application right now as parts are still missing but is imported to enable more people to work on it. status: BGP sessions get established fine, OPEN messages and then KEEPALIVEs exchanged etc. session FSM works fine; NOTIFICATIONs are handled fine, and all connection drops etc I provoked get handled fine. Incoming UPDATE messgages are parsed well and the data entered to the RIB, the decision process is not yet there, neither is outgoing UPDATEs or sync to the kernel routing table. not connected to the builds yet.