summaryrefslogtreecommitdiff
path: root/sbin/route/route.c
AgeCommit message (Collapse)Author
2004-10-14avoid collision of variable "err" with err()Jared Yanovich
use errx() after strlcpy if out of space style nits/knf ok henning hshoexer
2004-10-13print the expire route metric as signed; ok deraadt claudioJared Yanovich
2004-09-26fix printf's for route metrics. ok henningJared Yanovich
2004-09-24simplify some parts, little more warn() fixing. ok henningJared Yanovich
2004-09-24kill homegrown quit(); use err()/errx() insteadJared Yanovich
make other error messages consistent sync usage ok henning
2004-09-23properly check read() and write() return values.Henning Brauer
one instance found by jaredy, causes issues with route -t monitor ok jaredy hshoexer mickey fgs
2004-09-22remove -S, -src, -srcmask, and other source routing stuff. ok henningJared Yanovich
2004-09-15lint demands little cleanupsTheo de Raadt
2004-09-07make -netmask work again; ok henning, mcbride, deraadtMarkus Friedl
2004-08-03display route labels with "route get", and allow them to be setHenning Brauer
2004-06-25remove netiso and netns codeHenning Brauer
2004-06-19require RTF_MPATH to enter a multipath route with RTM_ADD.Cedric Berger
route(8) takes a new -mpath modifier to enter a multipath route. requested deraadt@, ok itojun@ mcbride@ millert@
2004-06-12Make route show output similar to netstat -r output.Claudio Jeker
OK cedric@ millert@
2004-06-09Fix IPv4 name->address translation. Addresses like "10.1000" will not beCedric Berger
accepted anymore, but constructs like "route add 10.1.2/24 <gw>" will finally do the right thing. ok millert@
2004-06-06add new "-src" and "-srcmask" modifiers to make it possible to add a sourceCedric Berger
selector part to the routing table entry. complements existing "-dst" and "-dstmask". typical use: route add -src 20.20.20.22 20.20.20.21 route add -src 192.168.1.0/24 -dst 192.168.2.0/24 20.20.20.21 useful for example to implement symetrical routing on multihomed boxes, or to better select which packets to send to gif/tun/... tunnels. new '-S' flag similar to netstat one. ok deraadt@ mcbride@
2004-05-15Fix two byte overflow when printing unknown sockaddrs. OK cedric@Claudio Jeker
2004-04-26fix route with explicit -gateway modifier. ok deraadt@ itojun@Cedric Berger
2004-04-07another piece inside qflag checkTheo de Raadt
2004-01-18print link state for RTM_IFINFO messages, flush stdout correctlyMarkus Friedl
if message contains no address; ok mpf@, deraadt@, mcbride@
2004-01-15print RTM_IFANNOUNCE message; netbsd; ok itojun@, henning@Markus Friedl
2004-01-09route -q is supposed to be totally quietTheo de Raadt
2003-08-26mark cloned route with RTF_CLONED. remove RTF_CLONED route when clone parentJun-ichiro itojun Hagino
disappers. deraadt ok
2003-07-02missing protosTheo de Raadt
2003-06-26ansi and protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-11strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.deTheo de Raadt
2003-01-31o When checking for root, look at effective, not real uid; checking theTodd C. Miller
real uid made sense when route(8) was setuid root but it no longer is. o ANSIfy deraadt@ OK
2002-11-24KNF while beeing hereHenning Brauer
2002-10-18correct prefixlen handling (-prefixlen 32 will make it a host route)Jun-ichiro itojun Hagino
2002-10-17Make prefixlen check to make sure its argument is present before deref; ↵Jason Wright
millert ok.
2002-06-10permit DNS name (they are considered RTF_HOST if specified as destination).Jun-ichiro itojun Hagino
PR 2152
2002-06-08support IPv4 in -prefixlen.Jun-ichiro itojun Hagino
2002-06-05more correction to RTF_HOST handling.Jun-ichiro itojun Hagino
2002-06-04do not automagically have -prefixlen 128 on IPv6 host route.Jun-ichiro itojun Hagino
From: Dawid Szymanski <dawszy@arhea.net>
2002-05-26pid_t cleanupTheo de Raadt
2002-05-20raise RTF_HOST for IPv6 /128 destination. from umeJun-ichiro itojun Hagino
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.
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-05-11use strlcpy instead of strncpy+a[len-1]='\0'Michael Shalayeff
2001-01-27correct 1.28 -> 1.29 (ortentry removal, cmetz).Jun-ichiro itojun Hagino
can't use routename() here since it could overwrite DNS lookup result pointed to by "hp". maybe we need to change every gethostby* to get*info.
2000-09-24If the route add/delete fails exit w/ 1 instead of 0Todd C. Miller
Remove register decls and make return foo vs. return (foo) consistent.
2000-08-03Don't flush SPD entries.Angelos D. Keromytis
2000-07-27Don't show or delete IPsec flows with the route command -- this was aAngelos D. Keromytis
kludge to begin with, and it's about time we get rid of it.
2000-04-20use scoped address notation (fe80::1%de0) for IPv6 linklocal unicast/multicast.Jun-ichiro itojun Hagino
2000-01-22remove extra externs not needed because of unistd.h (rest of tree will be ↵Theo de Raadt
done later.. contact me if you want to help)
1999-12-08ipv6 support from KAME (needs no libc upgrade). regen keywords.[ch].Jun-ichiro itojun Hagino
1999-09-22routing interface sends aligned to long word boundaries; itojunTheo de Raadt
1999-08-17More <sys/file.h> vs. <fcntl.h> and open() flags fixes.Todd C. Miller
1999-07-29Modified 'route flush' default behaviour to skip '-encap' (PF_KEY) flows,Hakan Olsson
as deleting these will leave the SPIs behind. 'route flush -encap' will still delete the flows. 'ipsecadm' should do this, and properly. PF_KEY/AF_KEY nitpick. Sync man page. Add ref to ipsecadm(1).