Commit Graph

35 Commits

Author SHA1 Message Date
itojun f816cfa0ca don't make "-prefixlen 64" a default in -inet6 case. the past behavior
was not compatible with past practice ("route get" did not work right).

sync with recent KAME.
1999-12-03 05:43:00 +00:00
sommerfeld a5e1bf5368 Display local address associated with route (if any) in "route get". 1999-11-01 13:32:38 +00:00
itojun 65b4964f1e fix alignment issue in routing socket data, on 64bit arch (i.e. alpha).
sockaddrs are packed with ROUNDUP() in sys/net/rtsock.c so userland
programs needs to follow that.

PR: 8179
1999-09-03 03:47:39 +00:00
mjacob dd514ad75e Incorrect integration. ctime takes a time_t value, not a long. 1999-07-06 23:15:48 +00:00
itojun d211125175 IPv6-ready route command (-inet6 and -prefixlen are added) 1999-07-02 15:29:02 +00:00
lukem a9db50e608 * implement -f; flush all routes before executing command
* reset af to 0 in flushroutes() and newroute()
* cleanup -DSMALL:
-   `flush' and AF_APPLETALK is supported (the latter had partial support)
-   AF_NS, AF_ISO, and AF_CCITT are not supported at all (rather than being
-   partially unsupported).
1998-10-23 05:36:42 +00:00
mycroft 0db548a927 const poisoning. 1998-07-26 14:57:56 +00:00
kleink 7dac38df65 Need <time.h> for time() prototype. 1998-04-01 15:14:25 +00:00
ross a7c69aab3f 64-bit sweep, "route -v show" was spinning forever. 1998-02-05 21:09:46 +00:00
christos e65e7d8dd2 Use {warn,err}{,x}(3) instead of printf's 1997-11-16 17:03:11 +00:00
enami 2481ddf882 Don't declare optind. 1997-10-01 02:22:54 +00:00
lukem 5e45f6e836 resolve conflicts from lite-2 import 1997-09-16 07:04:17 +00:00
lukem c9d9a2a11e * cleanup for WARNS=1
* use .Nm correctly
* deprecate register
* getopt returns -1 not EOF
1997-09-15 09:15:26 +00:00
thorpej 1f0fddb7d1 Fix uninitialized pointer botch when attempting to flush an already
empty routing table.  From Matthias Scheler <tron@lyssa.owl.de>, in
PR #4074.
1997-09-02 00:30:49 +00:00
thorpej 186a8bd2e4 Don't SEGV if a qualifier is passed without an argument. From
Geoff Wing <mason@primenet.com.au>, fixes PR #2700.
1997-04-27 16:58:22 +00:00
mrg 0ebc8c3756 KNF. be safe with buffers. 1997-04-21 11:40:13 +00:00
christos d9349e61e1 - Add netatalk bits
- Add prototypes
- Fix printf formats
1997-04-03 02:35:46 +00:00
carrel 533cb559da Remove uid checks since the kernel now handles this and route(1) is no
longer setuid.
Document the "Permission denied" msg in the man page since this is
_slightly_ less clear than route(1)'s old error msg.
1997-02-22 21:22:24 +00:00
gwr a54521537f As discussed some time ago, add a "show" sub-command.
Also allow compilation with -DSMALL to ommit support for
non-essential protocols (i.e. when built into a ramdisk).
Use a less hack-ish way to generate keywords.[ch] and just
check in the result (helps ../../distrib/utils/x_route).
1996-11-15 18:01:36 +00:00
cgd 4d54b9c567 check returns of inet_addr() and inet_network() against INADDR_NONE,
not -1, per the manual page.  on 64-bit systems like the alpha, -1 will
never equal (unsigned long)INADDR_NONE.
1996-04-15 18:27:05 +00:00
pk d7fa0b22af Produce less output on -q as promised by the man page (John Hawkinson; PR#998). 1996-01-07 00:07:23 +00:00
mycroft 6f98502ae2 Interface-specific routes can be static. 1995-04-20 20:52:46 +00:00
mycroft 22ecc6ab1a Implement the document `-llinfo' flag. 1995-04-20 17:39:17 +00:00
mycroft 5b613aff01 Remove extra `break;'. 1995-04-18 03:14:18 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
cgd b35dc8dfe1 kill some extraneous equal signs. 1994-12-24 11:07:28 +00:00
mycroft 4922d725cf Remove some more uses of obsolete functions. 1994-09-23 23:48:10 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft 4c8599d370 Clean up import. 1994-05-13 08:02:16 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 2c35f5c582 Compile X.25, OSI, and NS code. 1993-04-25 07:26:40 +00:00
mycroft db1e3ba015 Cleanup for GCC 2. 1993-04-18 19:02:31 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00