Commit Graph

219 Commits

Author SHA1 Message Date
roy 43800a7e73 Teach route(8) about RTF_LOCAL. 2015-02-26 09:56:11 +00:00
christos 20d9dd5566 make netname4 match the netname6 signature avoiding a NULL pointer. 2015-01-07 22:38:32 +00:00
prlw1 f44489f8dc MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
2014-12-20 13:15:48 +00:00
roy 62cbe5902e Note that RTM_CHANGE can also change the gateway 2014-12-17 10:56:09 +00:00
christos 27fad02cd4 Complete the routing argument table by including the ID's used in the routing
display.
2014-12-01 20:30:27 +00:00
christos 2bd97efc9a PR/47704: Takahiro HAYASHI: Add -L flag 2014-11-12 03:34:08 +00:00
christos 521e0d5bd2 give a little more space 2014-11-08 00:47:32 +00:00
christos 74d147444a Now that the code can support tags and verbose route printing, enable them.
Also document previously undocumented flags.
2014-11-07 14:57:08 +00:00
christos 30f4c8e6f6 Factor out the netstat route printing code and use it here. There is no
point in having 2 different copies; fixes PR/49371
2014-11-06 21:29:32 +00:00
kefren beafc35b81 Remove esis reference 2013-11-05 07:42:48 +00:00
christos 740c6aa538 use correct function 2013-10-19 15:59:15 +00:00
christos 730b60ec52 use symbolic flags 2013-10-19 15:50:26 +00:00
christos f304780793 use scopeid functions 2013-10-19 00:39:39 +00:00
christos 77f96119f9 avoid pointer gymnastics 2013-10-18 21:01:00 +00:00
dholland af9796645f english usage patrol 2013-10-07 05:06:45 +00:00
kefren 708985b712 Add -tag description as suggested in PR/45071 2013-07-24 06:28:10 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
uwe a855fb9e85 Fix fallout from 1.129 that converted sou::so_foo from unions to
pointers but missed (char *)&soup->so_foo => (char *)soup->so_foo in
mask_addr().  It worked by luck - unless it didn't: due to pointer
numerology on amd64 route add -net ClassC without explicit /24 prefix
length specification would result into /16 destination instead of /24.
2012-10-04 00:01:48 +00:00
christos 1e5d8920de remove useless rump headers. 2012-08-08 14:04:26 +00:00
christos e101c08658 PR/42179: Christoph Badura: Be a little friendlier about missing args. 2012-03-17 02:13:44 +00:00
christos 76898fae15 Off by one and clarity improvement from Christian Biere 2011-12-26 00:20:43 +00:00
christos 9feffc5f5a PR/45661: Henning Petersen: Overlapping buffer in route.c. 2011-12-24 23:48:17 +00:00
gdt c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00
joerg f843de8680 Simplify. 2011-10-07 09:56:15 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
dholland 99f3bafa7f prune stray commas 2011-07-17 23:46:53 +00:00
wiz 3fa42aac82 Whitespace nit. 2011-07-03 09:15:20 +00:00
kefren 008758606b Mention -mpls and -tag and xref mpls(4)
bin/45071
2011-07-03 07:20:37 +00:00
joerg 017dd250ef Fix memset usage. 2011-07-01 02:46:24 +00:00
kefren 2715676450 don't compile tag functions if SMALL is defined. Should fix the build 2011-06-22 04:57:28 +00:00
kefren 0c463ade62 Alloc dynamically sockunions in sou.
Teach route(8) about multiple tags. E.G.: -tag 100,20,33
XXX: needs documentation
2011-06-21 14:33:14 +00:00
yamt 26f4e9f9b1 xref link_addr for -link. 2011-06-16 23:35:35 +00:00
martin 82fe9809af Use RT_ROUNDUP() and friends from sys/route.h instead of homegrown
variants.
2011-02-04 14:31:23 +00:00
matt 4d5d6d9aa5 Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket
interface (and its associated sysctls) act identically for both 32 and 64 bit
programs.  The old unclean one remains for backward compatibility.
2011-02-01 01:39:19 +00:00
pooka e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
pooka e3d9b779d8 Convert from RUMP_ACTION to RUMPPRG. 2010-12-13 17:39:47 +00:00
roy 50de1251a3 Support the new RTM_IFINFO and RTM_CHGADDR messages. 2010-11-12 16:32:18 +00:00
pooka 7d1c54af24 adapt to new rumpclient_init() signature 2010-11-05 13:52:41 +00:00
pooka b10965b180 #ifdef variable correctly 2010-11-04 23:38:18 +00:00
pooka 243f716534 be consistent in what to leave outside of SMALL 2010-11-04 23:37:27 +00:00
pooka ddce2e059a Support RUMP_ACTION to compile a rump kernel client. 2010-11-04 23:36:10 +00:00
kefren a7449c28c6 add MPLS clue - mpls and tag keywords 2010-06-26 14:29:36 +00:00
kefren c890d3f5e0 Update also keywords.{c,h} generator in order to reflect latest changes. 2010-05-12 19:26:33 +00:00
christos c69676936c PR/40455: Mihai Chelaru: Add noreject noblackhole options 2010-05-12 17:56:13 +00:00
is 000fbf6b41 Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
snj 550147bd6a Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
lukem be0c43535f fix sign-compare issues 2009-03-17 00:52:47 +00:00
christos b09dc428f4 parse unsigned long with strtoul not atoi 2008-12-28 20:12:31 +00:00
dyoung 6a9236b124 Get the socket addresses for dst/gateway/netmask/interface/ifaddr
out of the global namespace.
2008-09-10 01:56:22 +00:00
dyoung 5e93382467 Don't cast a sockunion * to sockaddr *. Instead, reference the
sockaddr inside of the sockunion.
2008-09-10 01:14:59 +00:00