summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d/route6d.c
AgeCommit message (Collapse)Author
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
which want a "full" dump ok dlg
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-06-26More consistent RTM_VERSION checking. A few missing one was in the wrongClaudio Jeker
spot. OK henning@, sthen@
2009-06-05rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@, henning@
2009-05-13no need for _KERNEL or the rtentry; ok claudioTheo de Raadt
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15repair msg_controllen and also an errant buf[CMSG_LEN(..)] declTheo de Raadt
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2006-12-15reduce RFC2292/3542 #ifdef.Jun-ichiro itojun Hagino
2006-11-15validate response packet more carefully. kame revision 1.109->1.111Jun-ichiro itojun Hagino
2006-06-16Don't use rmx_hopcount any longer. The kernel ignores it anyway.Claudio Jeker
OK henning@, norby@, hshoexer@
2006-04-02malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaksDamien Miller
suggested by kjell@; ok otto@ pat@ millert@ jaredy@
2006-02-06typos from alexey dobriyan;Jason McIntyre
2005-05-26remove RTM_OLDADD/_OLDDEL traces (that lead to an "unspported" message anyway)Henning Brauer
2004-08-01ansi cleanup; khalek@linuxgamers.netTheo de Raadt
2003-10-31need_trigger/idx should be u_int, not ssize_t. millertJun-ichiro itojun Hagino
2003-10-31insufficient length check (possible remote DoS). kame PR 507.Jun-ichiro itojun Hagino
ok deraadt markus mcbride
2003-08-22Don't age non-gateway host routes. NetBSD PR bin/22568 from Andrew WhiteJun-ichiro itojun Hagino
2003-06-28() to (void)Theo de Raadt
2003-04-22port numbers are unsigned. use %u. from kameJun-ichiro itojun Hagino
2003-04-15avoid hardcoding 12; use NI_MAXSERV. deraadt okJun-ichiro itojun Hagino
2003-04-14%d is 12 chars big, not 10; ok deraadtPeter Valchev
2002-10-26use poll(2). sync w/kame originally from netbsdJun-ichiro itojun Hagino
2002-10-26use strtoul, not atoi. some error handling sync w/kame.Jun-ichiro itojun Hagino
2002-08-21suppress dump output on -q. sync w/kameJun-ichiro itojun Hagino
2002-06-09strchr() instead of index()Theo de Raadt
2002-06-07avoid fd_set overrun. sync w/kameJun-ichiro itojun Hagino
2002-05-29rtm_seq is an int. from deraadtJun-ichiro itojun Hagino
2002-05-22more strcpy/sprintf death; mpech okTheo de Raadt
2002-02-25do not age address on loopback interface. sync w/kameJun-ichiro itojun Hagino
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-11call daemon(3) prior to socket setups to avoid file descriptor close mistakes.Jun-ichiro itojun Hagino
noted by markus, sync with kame
2001-12-01Use pidfile() instead of doing the equivalent thing by hand, and sometimesMiod Vallat
forgetting to unlink the pid file at exit. ok millert@ deraadt@
2001-11-17remove unused signal handler variableTheo de Raadt
2001-09-05sync with the latest kame route6d.Jun-ichiro itojun Hagino
- no select() with FD_SETSIZE. from deraadt - use sin6 as varaible name, not sin, to avoid symbol conflict with sin(). - other minor cleanups.
2001-06-13need va_start/end pair every time we call vfprintf(). via markusJun-ichiro itojun Hagino
2001-03-09exit(-#) is wrongTheo de Raadt
2001-03-08correct delroute() against host routes. clarify ROUTE6D p2p advert behaviorJun-ichiro itojun Hagino
(no behavior change for normal use). sync with kame
2001-02-07bring in latest kame code.Jun-ichiro itojun Hagino
- correct RTA_NETMASK processing - correct -A filter behavior (do not advert aggregated route to other if) - better signal handling - mandate getifaddrs - do not advert connected routes on !IFF_UP routes. experimental sync with kame
2001-01-12make signo a volatile variable. sync with kameJun-ichiro itojun Hagino
2001-01-12make signal handler very short, to avoid possibility of race conditions.Jun-ichiro itojun Hagino
commented by deraadt. sync with kame
2000-11-10do not advertise dynamic/cloned routesJun-ichiro itojun Hagino
2000-10-10cast size_t to u_long on printing, be friendly with alpha. sync with kameJun-ichiro itojun Hagino
2000-10-06printf string format audit. from: sommerfeld@netbsd.orgJun-ichiro itojun Hagino
2000-08-13unbroken -A (workaround). repair LP64 problem. (sync with kame)Jun-ichiro itojun Hagino
2000-07-15sync with latest kame.Jun-ichiro itojun Hagino
- correct possible realloc memory leak. - remove obsolete non-advanced api support (!ADVAPI) - do not overwrite routing entry, when -A is specified (exit with error).
2000-05-18don't overload rtm_flags with route6d-local flags. sync with latest kame.Jun-ichiro itojun Hagino