summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/route.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
2019-04-28Fix reading route entries via kvm(3).Martin Pieuchot
2016-09-15dont #define _KERNEL around some #includesDavid Gwynne
2016-08-27Pull in <sys/select.h> for howmany() and NBBY, used by various net*/*.hPhilip Guenther
2015-12-03Print the interface index, we no longer have a pointer to the interface.Martin Pieuchot
2015-02-12Switch the printing of open sockets from ugly KVM internals to useClaudio Jeker
2015-02-06Remove route/netstat -f encap in favor of ipsecctl -s flow.Reyk Floeter
2015-01-19First step of hiding many kernel-only parts of <netinet/ip_ipsp.h>Theo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-12-26not necessary to define INET anymoreTed Unangst
2013-11-25netstat -Ar leaked some kernel pointers to unprivileged users. UseAlexander Bluhm
2013-11-21split kernel parts of the if.h into a separate header file if_var.hMike Belopuhov
2013-09-29Prepare netstat for printing 64 bit route expire time.Alexander Bluhm
2013-03-20As non-root, whenever netstat is about to print out a kernel pointer...Theo de Raadt
2013-01-16sys/mbuf.h not neededTheo de Raadt
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
2009-08-04fix some warnings. there are others, but nobody wants to look at them.Ted Unangst
2009-05-31There is no need to mask priority with RTP_MASK because it is already doneClaudio Jeker
2009-05-07Make the kvm routing table code grok multiple routing tables and do notClaudio Jeker
2009-01-28Make the -A a bit more readable by adding a newline between the route andClaudio Jeker
2008-11-09the extra kget() macro just befuddles the things we need to replace with a sy...Theo de Raadt
2008-09-15Similar to route(8) change mask rtm->rtm_priority with RTP_MASK to showClaudio Jeker
2008-06-13Include some additional pointers, etc that I really need for debuggingClaudio Jeker
2008-06-13remove a rather silly comment.Claudio Jeker
2008-06-13Let the kvm output of netstat grok rt priorities like the "normal" show code.Claudio Jeker
2007-12-19Remove the kvm code in rt_stats() and use the sysctl code all the time.Claudio Jeker
2007-12-19delete rcsid crudTheo de Raadt
2007-12-14remove 21 nlist variables, and instead use sysctl to query the kernelTheo de Raadt
2007-09-05Correct the format strings after the recent rt_metrics changes.Claudio Jeker
2006-11-17change semantics of ff01::/16 to interface local multicastJun-ichiro itojun Hagino
2006-08-29Fix KVM snooping code of netstat that got broken by the multiple tableClaudio Jeker
2006-05-27Moving netstat from kvm snooping to retrieving the routing tables viaClaudio Jeker
2006-04-12use "/bypass" instead of "/permit" when showing bypass flowsHans-Joerg Hoexer
2005-06-08bye bye, Xerox NS protocolsHenning Brauer
2005-06-07remove tiny AF_CCITT traceHenning Brauer
2005-03-30kill -S; ok henningJared Yanovich
2005-03-25kill unneeded (char *) casts. ok millert, ottoJared Yanovich
2004-11-17remove NI_WITHSCOPEID (which is not standard)Jun-ichiro itojun Hagino
2004-10-15the default route is exactly 0.0.0.0/0, and nothing else. stop ignoringHenning Brauer
2004-06-06Add new '-S' flag to display the source selector part of the routing tableCedric Berger
2004-05-04The tcp specific routing metrics are almost never used so reduce the routingClaudio Jeker
2004-03-13some NULL vs 0 and knf; parts from nimadeus@pandora.beTheo de Raadt
2004-01-13Fix printf formats and add missing include.Otto Moerbeek
2003-10-07missing free(). Andrey Matveev via deraadt@. ok deraadt@Ted Unangst
2003-10-04oopsTheo de Raadt
2003-10-04tweaks from andrushock@korovino.netTheo de Raadt
2003-10-03deal with KAME embedded scope-id for PF_KEY (Encap) route dump. deraadt okJun-ichiro itojun Hagino
2003-08-27RNF_IGNORE can corrupt the radix tree when an interface is down, itHenric Jungheim
2003-08-26mark cloned route with RTF_CLONED. remove RTF_CLONED route when clone parentJun-ichiro itojun Hagino