summaryrefslogtreecommitdiff
path: root/sbin/route
AgeCommit message (Collapse)Author
2009-08-07if buffers overlap; result will be undefined. ok claudio@, michele@Martynas Venckus
2009-07-23Always print interface names, not just ifindex, even when -n isStuart Henderson
specified. Most people want -n to avoid reverse DNS lookups, and it's stupid not to print a useful interface name just for that. YES PLEASE! Ok claudio@
2009-07-23Only print unknown in RTM_IFINFO messages when the link is inClaudio Jeker
LINK_STATE_UNKOWN. In the other case use LINK_STATE_IS_UP() to print either "up" or "down". OK henning@, sthen@
2009-06-27Mark MPLS routes with T (tagged) in route output.Michele Marchetto
suggested by dlg@, ok claudio@, laurent@, blambert@
2009-06-25Add a missing RTM_VERSION check.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Document how to add static MPLS labels.Michele Marchetto
input jmc@, ok claudio@
2009-06-06Uninitialized variable causing havoc on flush. Found by rivo nurgesClaudio Jeker
2009-05-31Masking the priority with RTP_MASK is no longer needed in userland.Claudio Jeker
Kernel will do this now.
2009-05-30Make it possible to filter monitor output on AF or show only interfaceClaudio Jeker
specific changes. OK henning@
2009-05-30priority is a u_char not a u_short.Claudio Jeker
2009-05-30Make route flush more powerful by allowing -iface/-interface or -priorityClaudio Jeker
to be specified. So only routes matching these conditions will be flushed. This will help making dhclient less dumb when fiddeling with routes. OK henning@
2009-05-23missed rtm_hdrlen conversion in one placeChris Cappuccio
ok claudio@
2009-04-28Sync with kernel changes.Michele Marchetto
Add support to route(8) for a new dummy operation to allow packets coming in with a particular label to leave the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
2009-02-03Reflect MPLS kernel changes. Operations are stored now in rt_mpls field.Michele Marchetto
ok claudio@ laurent@
2009-01-29Introduce -mplslabel to allow ipv4/ipv6 packets enter MPLS clouds.Michele Marchetto
This is also consistent with mplslabel in ifconfig(8). OK claudio@ laurent@
2009-01-28Reflect MPLS kernel changes.Michele Marchetto
2009-01-26Mark multipath routes with P in the show command flags. Bummer that bothClaudio Jeker
M and m were already taken. OK henning@
2009-01-08Reflect MPLS kernel changes.Michele Marchetto
ok claudio@
2008-12-16Use macros from route.h when mapping route priorities to names; theStuart Henderson
hardcoded values used here before were incorrect. ok claudio@
2008-12-15Reflect kernel changes. Labels are no more per link uniqueMichele Marchetto
and operations are now stored in rt_flags. This also simplify a lot the syntax. ok claudio@ laurent@
2008-12-12Use the hdrlen to skip over the header and to the sockaddrs instead of theClaudio Jeker
implied sizeof(struct rt_msghdr). Makes code more robust when userland and kernel are out of sync.
2008-09-15Mask rtm->rtm_priority with RTP_MASK before printing so that the priority isClaudio Jeker
correctly shown even if the route is flagged RTP_DOWN. OK henning@
2008-05-25do not need sys/protosw.hTheo de Raadt
2008-05-09using the rtm_priority to translate priority number into nice name isHenning Brauer
working much better than using rtm_version for that
2008-05-09on route get, display the priority and a cleartext name (like, "bgp" for 48)Henning Brauer
claudio ok
2008-05-08spaceClaudio Jeker
2008-05-08Fix fallout from the route priority thing.Esben Norby
Don't display out label interface in the second column. ok claudio@
2008-05-08Don't display the outlabel and interface for POP operations.Esben Norby
ok claudio@
2008-05-07Document -priority. looks good norby@Claudio Jeker
2008-05-07Add support to show and modify rtm_priority.Claudio Jeker
2008-05-06Yet another missing RTM_VERSION check. Found by norby@. OK henning@Claudio Jeker
2008-05-06Add code to specify the mpls label switching operation. OK norby@Claudio Jeker
2008-05-06Labels in the sockaddr are stored like on the wire so shift and byte swapClaudio Jeker
them. This makes route lookups work again. OK norby@
2008-05-06regenClaudio Jeker
2008-05-06Add pop, push and swap options used by MPLS. OK norby@Claudio Jeker
2008-05-06Minor cleanup. OK norby@Claudio Jeker
2008-04-30Correct MPLS output of route -n show.Esben Norby
ok claudio@
2008-04-28It is now possible to enter static MPLS routes into the kernel.Esben Norby
It is still not possible to set the desired opration for an entry. ok claudio@ laurent@ dlg@
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-07-24Sync closer to netstat/show.c this removes also the unneeded variableClaudio Jeker
noticed by Igor Zinovik.
2007-07-21Check the rtm_version before trying to print an entry. If the rtmsg has aClaudio Jeker
different version skip it and don't try to print it. Solves a SIGSEGV I have triggered with one of my scarier diffs. OK henning@
2007-06-04remove IPX, agreed by manyHenning Brauer
libc and kernel side awaiting a libc major bump to piggyback to
2007-05-31convert to new .Dd format;Jason McIntyre
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 -F to SYNOPSIS;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@