summaryrefslogtreecommitdiff
path: root/sbin/route/route.c
AgeCommit message (Collapse)Author
2007-09-25make route flush obey the rtable IDHenning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-05Correct the format strings after the recent rt_metrics changes.Claudio Jeker
rmx_pksent is not u_int64_t all others are just u_int. This is almost the same as in usr.bin/netstat.
2007-06-04remove IPX, agreed by manyHenning Brauer
libc and kernel side awaiting a libc major bump to piggyback to
2007-05-30Unbreak route.c after TOKEN removal by henning (bad henning, no cookie)Ryan Thomas McBride
looks ok otto@
2007-03-25Instead of using the global -F flag that only works with show, switch to aClaudio Jeker
show specific modifier -gateway to show only routes whose gateway are in the same AF as the destination. Requested by deraadt@, OK pyr@, reyk@, michele@
2007-03-23add -F to usage() and kill some extraneous whitespace;Jason McIntyre
2007-03-23Add a new flag -F to netstat restricting route display in conjuctionPierre-Yves Ritschard
with -r to routes in the same address family as the destination. ok henning@, claudio@
2007-03-23Only print the routing table id if the routing message uses the rt_msghdrClaudio Jeker
else some random value is printed for messages like RTM_NEWADDR. OK henning@
2006-11-28add additional link states to report the half duplex / full duplexReyk Floeter
state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
2006-11-28-T in synopsis and briefly in manpageHenning Brauer
2006-11-17change semantics of ff01::/16 to interface local multicastJun-ichiro itojun Hagino
(to sync up with more recent IPv6 spec) ok from: deraadt mcbride
2006-10-15Proper link state descriptions in print_rtmsg() RTM_IFINFO case.Ryan Thomas McBride
ok deraadt henning
2006-06-17Display multipath and jumbo flags in route get/monitor.Christopher Pascoe
ok claudio@
2006-06-16make route show work on secondary tables, using the just committedHenning Brauer
extension to the syctl NET_RT_DUMP interface, claudio ok
2006-06-16introduce -T <tableid> to work on alternate tables.Henning Brauer
purposefully undocumented for the moment, claudio hshoexer norby ok
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@