summaryrefslogtreecommitdiff
path: root/sbin/route/route.c
AgeCommit message (Collapse)Author
2006-05-27Kill unused Aflag support that sneeked in via netstat code.Claudio Jeker
2006-05-21Pretty print netmasks in monitor mode.Marco Pfatschbacher
From Alexander Bluhm <Alexander_Bluhm at genua.de> OK henning@
2006-04-20Instead of printing useless metrics like recvpipe and sendpipe printClaudio Jeker
rmx_pksent in route get. This makes it possible to identify DoS targets even if you have a full routing table. OK henning@
2006-03-30If an address family is specified do not print IPSec "routes". AdditionallyClaudio Jeker
add a -encap option to show only the IPSec part. OK hshoexer@, henning@
2006-03-30Really ignore sendpipe, recvpipe, rtt, rttvar, etc. in route(8) instead ofClaudio Jeker
passing these values to the kernel where they get ignored anyway. OK henning@
2005-12-11Don't allow a -prefixlen arg of -1. jaredy@ okAaron Campbell
2005-06-09print the interface address on route get; ok henning, claudioMarkus Friedl
2005-06-06get rid of another leftover from the src routing adventureHenning Brauer
2005-05-27Use rtm_fmask instead of rtm_useRyan Thomas McBride
ok marius@ claudio@
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
2005-03-30make set_metric() bail out on invalid keys (unreachable, but betterHenning Brauer
safe than sorry later)
2005-03-30unconditionalize INET6 support, no binary changeHenning Brauer
2005-03-30spring cleaning, more to comeHenning Brauer
2005-03-30remove ccitt x.25 traces, ok theoHenning Brauer
2005-02-18ansi, knf, and other style nits; ok henningJared Yanovich
2005-02-17print the interface name in monitor mode when interfaces go up/down; ok mcbrideJared Yanovich
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