summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2005-03-17Fix fd passing. Bug introduced lately passed the first fd twice and an oldClaudio Jeker
bug passed a fd twice if only part of the buffers where written by sendmsg(). Lot of discussion and help deraadt@, additional testing norby@ OK deraadt@
2005-03-17Handle the retransmission queues correctly. Mainly iface state DROTHERClaudio Jeker
needs to be handled specially because the backup DR does not send acks and so his retransmission queue fills up and does not get cleared. Also implement the retransmission timeout correctly. OK henning@ norby@ deraadt@
2005-03-17Fix an access after free. It is not allowed to use a RB_REMOVE inside of aClaudio Jeker
RB_FOREACH. OK norby@ deraadt@
2005-03-16don't try to merge the freshly parsed config into the running one ifHenning Brauer
we had parser failures... debugging session with claudio and jason ackley ok claudio norby deraadt
2005-03-16plug memory leak. Patrick LatifiJun-ichiro itojun Hagino
2005-03-15describe "depend on"Henning Brauer
you wouldn't guess how hard it was to get that right... initial diffs and lots of input from Jason Ackley and jaredy, ok claudio jaredy jmc deraadt
2005-03-15bgpctl parts for "show fib".Claudio Jeker
OK norby@ deraadt@
2005-03-15Add control messages for the show fib commands.Claudio Jeker
OK norby@ deraadt@
2005-03-15First close() than unlink().Claudio Jeker
2005-03-15remove listener if bind() fails. no point in having a defunct listenerHenning Brauer
in the list; causes issues with upcoming changes, spotted by Jason Ackley <jason@ackley.net>, claudio ok
2005-03-15grow the receive buffer on the routing socket, pointed out by markus,Henning Brauer
ok markus claudio
2005-03-15tweaks;Jason McIntyre
ok claudio@
2005-03-14Add "show summary" to ospfctl.Esben Norby
ok claudio@ henning@
2005-03-14Allow to modify the metrics in a relative way by prepending the number withClaudio Jeker
a '+' or '-'. e.g. set localpref +20. This is another gem from the FOSDEM lying around on my HD gathering dust. OK henning@
2005-03-14unlink() control socket in error path. Spotted by Theo at FOSDEM.Claudio Jeker
Was way too long in one of my trees.
2005-03-14add IFT_/IFM_IEE80211 to ift2ifm so we can pretty-print link state andHenning Brauer
such for those as well, pointed out by claudio
2005-03-14print interface and some stuff about it with the nexthops so it is easierHenning Brauer
to see why a nexthop is treated invalid, claudio ok
2005-03-14send a kif structure describing the interface a route relies on alongHenning Brauer
with the "show nexthop" messages, claudio ok
2005-03-14when a buffer has a file descriptor to pass attached, we tried to sendHenning Brauer
out all pending buffers up to and including the one with the fd attached. the fd is sent with the data and closed after all data is sent. when this amount of data exceeds what we can get rid of with a single sendmsg() on our nonblocking sockets we might send the fd more than once, leaving unused fds around. when we see a buffer with an fd attached, send out everything up to, but EXcluding that buffer, so that in the next round a seperate message with just the one buffer and the associated fd is sent. if anything got written in that sendmsg() call consider the fd sent and close it. from a debugging session with theo hunting something else, claudio ok
2005-03-14report/ignore broken packing-lists.Marc Espie
Happens only to guys who don't run fsck after panics, but hey ! ;-) okay pval@
2005-03-14"we notice when you plug the cable" - yeah, but we didn't notice when itHenning Brauer
was unplugged from the beginning on... correctly take interfaces' link state into account for nexthop verification in all cases. add a new function kroute_validate() that looks up the interface for a given kroute via the ifindex and check its link state. use it in all cases instead of hand-rolling the test. claudio ok
2005-03-13Missing return value and fd leak in fork()'s error path. Spotted by mpech@Otto Moerbeek
2005-03-13when fetching the initial table, inherit the ifindex regardless of af, notHenning Brauer
just for AF_LINK
2005-03-13explicitely initialize optHenning Brauer
2005-03-13s/to many/too many/, from jmcHenning Brauer
2005-03-13Fixes in ntpd_settime (ie ntpd -s):Darren Tucker
- Handle errors from syscalls better - Prevent curtime.tv_usec from being negative for negative offsets. - Don't claim to have done settimeofday if it fails. ok henning@
2005-03-13document some common usage of pkg_info to make us look cool.Marc Espie
okay jmc@, prod by theo.
2005-03-12remove useless sentence;Jason McIntyre
ok beck@
2005-03-12Do not leak mem or fd in error paths. From Andrey Matveev (thanks!).Chad Loder
OK niallo@ deraadt@: "stop polishing turds and commit already"
2005-03-12Add "show rib" and "show rib detail" to ospfctl.Esben Norby
ok henning@
2005-03-12Small K&F.Esben Norby
ok henning@
2005-03-12shutdown the inetd socket for reading if secure; ok deraadtMarkus Friedl
2005-03-11freeaddrinfo() isn't needed on the error path from getaddrinfo().Bob Beck
ok claudio@
2005-03-11Fix typo.Esben Norby
ok claudio@
2005-03-11fix usage to reflect new reality, ok jmc@Bob Beck
2005-03-11"Greytrapping" for spamd - allow for spamd greylisting to maintainBob Beck
a list of spamtrap destination addresses in the spamd database. When a spamtrap address gets an attempted greylist delivery, blacklist the offending host for a day. Does not affect hosts already whitelisted. ok deraadt@, jmc@, dhartmei@ to get it in so it can be whacked on
2005-03-11shutdown() directly before close() is useless, theoHenning Brauer
2005-03-11clean up printing of rule numbers. omit ruleset name and sub-rule numberDaniel Hartmeier
when irrelevant. print 'def' for default rule. omit numerical reason if description is printed. ok henning@, deraadt@
2005-03-11move umask() song and dance closer around the bind, being more careful about ↵Theo de Raadt
errors; ok claudio
2005-03-11Finally commit the transparent-as and nexthop no-modify stuff I wrote on theClaudio Jeker
way to FOSDEM. With transparent-as set to ye bgpd will not prepend his own AS for sent updates. NB the neighbor needs to set "enforce neighbor-as no" or it will not like the received AS paths. With set nexthop no-modify bgpd will change the nexthop as done normaly. OK henning@ man page update with help of jmc@
2005-03-11KNFHenning Brauer
2005-03-10only play with umask() for a moment -- restore afterTheo de Raadt
2005-03-10put umask restores in right place; millert okTheo de Raadt
2005-03-10Write this in real C, not some bullshit GNU extension that other compilersTheo de Raadt
do no understand.
2005-03-10the section is named "LOGGING FACILITY", not "Logging Facility";Jason McIntyre
also mention that it is "above", as this is one large page;
2005-03-09Do not leak Keynote sessions on failure. Also check snprintf returnChad Loder
value for truncation and failure. OK hshoexer
2005-03-09nasty: host_dns used to run before forking and chrooting etc, so it wasHenning Brauer
guaranteed that its res_init() call was done once before fork etc... that is no longer the case. call res_init() in main() early.
2005-03-09Check kn_init for failure.Chad Loder
OK hshoexer@, henning@
2005-03-09Preliminary support for the floppy drive on Ultrasparcs. Only tested onMiod Vallat
SBus machines so far, although EBus attachment glue is provided but not enabled by default. Also, fdformat(8) does not work correctly yet, although reading and writing is safe; this will hopefully be fixed in the near future. ok deraadt@
2005-03-09memcpy/memmove correctness here as wellHenning Brauer