The NetBSD Project

CVS log for src/sbin/route/route.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / route

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.169 / (download) - annotate - [select for diffs], Sun Apr 10 09:50:45 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored)

fix various typos in comments and output/log messages.

Revision 1.159.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:22 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.159.2.2: +6 -3 lines
Diff to previous 1.159.2.2 (colored) to branchpoint 1.159 (colored) next main 1.160 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.159.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:20 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.159.2.1: +29 -6 lines
Diff to previous 1.159.2.1 (colored) to branchpoint 1.159 (colored)

Merge changes from current as of 20200406

Revision 1.168 / (download) - annotate - [select for diffs], Thu Apr 2 18:32:31 2020 UTC (2 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored)

Add a prog_setsockopt (thanks kre@)

Revision 1.167 / (download) - annotate - [select for diffs], Sat Mar 14 22:26:39 2020 UTC (2 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.166: +9 -3 lines
Diff to previous 1.166 (colored)

route: Enable receive error reporting on the routing socket

Revision 1.166 / (download) - annotate - [select for diffs], Sat Feb 22 00:42:15 2020 UTC (2 years, 11 months ago) by kamil
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Avoid undefined behavior

route.c:1523:20, left shift of 1073741824 by 1 places cannot be represented
in type 'int'

Revision 1.160.2.4 / (download) - annotate - [select for diffs], Fri Jan 24 20:13:45 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.160.2.3: +21 -4 lines
Diff to previous 1.160.2.3 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored)

Pull up following revision(s) (requested by roy in ticket #646):

	sbin/route/route.c: revision 1.164
	sbin/route/route.c: revision 1.165

route: Decode the correct flags for interface address messages
route: address flags are more useful than interface flags for address msgs

Revision 1.165 / (download) - annotate - [select for diffs], Wed Jan 22 19:22:06 2020 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.164: +4 -4 lines
Diff to previous 1.164 (colored)

route: address flags are more useful than interface flags for address msgs

Revision 1.164 / (download) - annotate - [select for diffs], Wed Jan 22 17:55:41 2020 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.163: +20 -3 lines
Diff to previous 1.163 (colored)

route: Decode the correct flags for interface address messages

Revision 1.160.2.3 / (download) - annotate - [select for diffs], Thu Sep 5 08:43:42 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.160.2.2: +7 -6 lines
Diff to previous 1.160.2.2 (colored) to branchpoint 1.160 (colored)

Pull up following revision(s) (requested by roy in ticket #172):

	sbin/route/route.c: revision 1.163

route(8): Show addres for RTM_LOSING
While here, add /* FALLTHROUGH */.

Revision 1.163 / (download) - annotate - [select for diffs], Mon Sep 2 00:30:01 2019 UTC (3 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.162: +7 -6 lines
Diff to previous 1.162 (colored)

route(8): Show addres for RTM_LOSING

While here, add /* FALLTHROUGH */.

Revision 1.160.2.2 / (download) - annotate - [select for diffs], Sun Sep 1 14:13:46 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.160.2.1: +3 -2 lines
Diff to previous 1.160.2.1 (colored) to branchpoint 1.160 (colored)

Pull up following revision(s) (requested by roy in ticket #150):

	sbin/route/route.c: revision 1.162

route(8): show addrs for RTM_MISS

Revision 1.162 / (download) - annotate - [select for diffs], Sat Aug 31 18:20:08 2019 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.161: +3 -2 lines
Diff to previous 1.161 (colored)

route(8): show addrs for RTM_MISS

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Mon Aug 26 13:37:26 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
Changes since 1.160: +3 -2 lines
Diff to previous 1.160 (colored)

Pull up following revision(s) (requested by roy in ticket #108):

	sbin/route/route.c: revision 1.161

route(8): print RTM_CHANGE messages
XXX Pullup -9

Revision 1.161 / (download) - annotate - [select for diffs], Thu Aug 22 16:10:48 2019 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.160: +3 -2 lines
Diff to previous 1.160 (colored)

route(8): print RTM_CHANGE messages

XXX Pullup -9

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:36 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.159: +6 -3 lines
Diff to previous 1.159 (colored)

Sync with HEAD

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:21 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.158.2.1: +6 -3 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.155.4.4 / (download) - annotate - [select for diffs], Sat Aug 25 07:06:48 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.155.4.3: +6 -3 lines
Diff to previous 1.155.4.3 (colored) to branchpoint 1.155 (colored) next main 1.156 (colored)

Pull up following revision(s) (requested by roy in ticket #976):

	sbin/route/route.c: revision 1.160

Resolve every route(4) message type before printing anything more about it
other than the type and length.

This solves the issue where RTM_ONEWADDR is received and it tries to
parse route information from it.

Revision 1.160 / (download) - annotate - [select for diffs], Tue Aug 14 20:53:07 2018 UTC (4 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.159: +6 -3 lines
Diff to previous 1.159 (colored)

Resolve every route(4) message type before printing anything more about it
other than the type and length.

This solves the issue where RTM_ONEWADDR is received and it tries to
parse route information from it.

Revision 1.155.4.3 / (download) - annotate - [select for diffs], Mon Apr 9 13:34:11 2018 UTC (4 years, 9 months ago) by bouyer
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.155.4.2: +14 -5 lines
Diff to previous 1.155.4.2 (colored) to branchpoint 1.155 (colored)

Pull up following revision(s) (requested by roy in ticket #724):
	tests/net/icmp/t_ping.c: revision 1.19
	sys/netinet6/raw_ip6.c: revision 1.166
	sys/netinet6/ip6_input.c: revision 1.195
	sys/net/raw_usrreq.c: revision 1.59
	sys/sys/socketvar.h: revision 1.151
	sys/kern/uipc_socket2.c: revision 1.128
	tests/lib/libc/sys/t_recvmmsg.c: revision 1.2
	lib/libc/sys/recv.2: revision 1.38
	sys/net/rtsock.c: revision 1.239
	sys/netinet/udp_usrreq.c: revision 1.246
	sys/netinet6/icmp6.c: revision 1.224
	tests/net/icmp/t_ping.c: revision 1.20
	sys/netipsec/keysock.c: revision 1.63
	sys/netinet/raw_ip.c: revision 1.172
	sys/kern/uipc_socket.c: revision 1.260
	tests/net/icmp/t_ping.c: revision 1.22
	sys/kern/uipc_socket.c: revision 1.261
	tests/net/icmp/t_ping.c: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.155
	sbin/route/route.c: revision 1.159
	sys/netinet6/ip6_mroute.c: revision 1.123
	sys/netatalk/ddp_input.c: revision 1.31
	sys/netcan/can.c: revision 1.3
	sys/kern/uipc_usrreq.c: revision 1.184
	sys/netinet6/udp6_usrreq.c: revision 1.138
	tests/net/icmp/t_ping.c: revision 1.18
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().
This allows userland to detect route(4) overflows so it can re-sync
with the current state.
socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
rtsock: log dropped messages that we cannot report to userland
Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
Sprinkle more soroverflow().
Handle ENOBUFS in recv
Handle ENOBUFS in sendto
Note value received. Harden another sendto for ENOBUFS.
Handle the routing socket overflowing gracefully.
Allow a valid sendto .... duh
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:10 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.158: +14 -5 lines
Diff to previous 1.158 (colored)

Resolve conflicts between branch and HEAD

Revision 1.159 / (download) - annotate - [select for diffs], Fri Mar 23 11:57:33 2018 UTC (4 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330
Branch point for: phil-wifi
Changes since 1.158: +14 -5 lines
Diff to previous 1.158 (colored)

Handle the routing socket overflowing gracefully.

Revision 1.144.4.3 / (download) - annotate - [select for diffs], Wed Jan 3 21:21:16 2018 UTC (5 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.144.4.2: +3 -3 lines
Diff to previous 1.144.4.2 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored)

Pull up following revision(s) (requested by uwe in ticket #1542):
	sbin/route/route.c: revision 1.157
Fix typo in flag name.  We should probably just use IFFBITS string
that <net/if.h> defines.
PR bin/52815

Revision 1.155.4.2 / (download) - annotate - [select for diffs], Thu Dec 21 21:33:31 2017 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
Changes since 1.155.4.1: +3 -3 lines
Diff to previous 1.155.4.1 (colored) to branchpoint 1.155 (colored)

Pull up following revision(s) (requested by uwe in ticket #448):
	sbin/route/route.c: revision 1.157
Fix typo in flag name.  We should probably just use IFFBITS string
that <net/if.h> defines.
PR bin/52815

Revision 1.158 / (download) - annotate - [select for diffs], Wed Dec 13 17:42:44 2017 UTC (5 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.157: +10 -33 lines
Diff to previous 1.157 (colored)

Use the definitions from the standard header files and replace homebrew
snprintb with the libutil one.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Dec 13 11:31:42 2017 UTC (5 years, 1 month ago) by uwe
Branch: MAIN
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored)

Fix typo in flag name.  We should probably just use IFFBITS string
that <net/if.h> defines.

PR bin/52815

Revision 1.155.4.1 / (download) - annotate - [select for diffs], Fri Jul 7 13:57:26 2017 UTC (5 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.155: +24 -7 lines
Diff to previous 1.155 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #107):
	usr.sbin/arp/arp.c: revision 1.56
	sys/net/rtsock.c: revision 1.218
	sys/net/if_llatbl.c: revision 1.20
	usr.sbin/arp/arp.c: revision 1.57
	sys/net/rtsock.c: revision 1.219
	sys/net/if_llatbl.c: revision 1.21
	usr.sbin/arp/arp.c: revision 1.58
	tests/net/net_common.sh: revision 1.19
	sys/netinet6/nd6.h: revision 1.84
	sys/netinet6/nd6.h: revision 1.85
	tests/net/arp/t_arp.sh: revision 1.23
	sys/netinet6/in6.c: revision 1.246
	tests/net/arp/t_arp.sh: revision 1.24
	sys/netinet6/in6.c: revision 1.247
	tests/net/arp/t_arp.sh: revision 1.25
	sys/netinet6/in6.c: revision 1.248
	tests/net/arp/t_arp.sh: revision 1.26
	usr.sbin/ndp/ndp.c: revision 1.49
	tests/net/arp/t_arp.sh: revision 1.27
	tests/net/ndp/t_ndp.sh: revision 1.20
	tests/net/arp/t_arp.sh: revision 1.28
	tests/net/ndp/t_ndp.sh: revision 1.21
	tests/net/arp/t_arp.sh: revision 1.29
	tests/net/ndp/t_ndp.sh: revision 1.22
	tests/net/ndp/t_ndp.sh: revision 1.23
	tests/net/route/t_flags6.sh: revision 1.13
	tests/net/ndp/t_ndp.sh: revision 1.24
	tests/net/route/t_flags6.sh: revision 1.14
	tests/net/ndp/t_ndp.sh: revision 1.25
	tests/net/route/t_flags6.sh: revision 1.15
	tests/net/ndp/t_ndp.sh: revision 1.26
	sbin/route/rtutil.c: revision 1.9
	tests/net/ndp/t_ndp.sh: revision 1.27
	tests/net/ndp/t_ndp.sh: revision 1.28
	tests/net/net/t_ipv6address.sh: revision 1.14
	tests/net/ndp/t_ra.sh: revision 1.28
	tests/net/ndp/t_ndp.sh: revision 1.29
	sys/net/route.h: revision 1.113
	tests/net/ndp/t_ra.sh: revision 1.29
	sys/net/rtsock.c: revision 1.220
	sys/net/rtsock.c: revision 1.221
	sys/net/rtsock.c: revision 1.222
	sys/net/rtsock.c: revision 1.223
	tests/net/route/t_route.sh: revision 1.13
	sys/net/rtsock.c: revision 1.224
	sys/net/route.c: revision 1.196
	sys/net/if_llatbl.c: revision 1.19
	sys/net/route.c: revision 1.197
	sbin/route/route.c: revision 1.156
	tests/net/route/t_flags.sh: revision 1.16
	tests/net/route/t_flags.sh: revision 1.17
	usr.sbin/ndp/ndp.c: revision 1.50
	tests/net/route/t_flags.sh: revision 1.18
	sys/netinet/in.c: revision 1.204
	tests/net/route/t_flags.sh: revision 1.19
	sys/netinet/in.c: revision 1.205
	tests/net/arp/t_arp.sh: revision 1.30
	tests/net/arp/t_arp.sh: revision 1.31
	sys/net/if_llatbl.h: revision 1.11
	tests/net/arp/t_arp.sh: revision 1.32
	sys/net/if_llatbl.h: revision 1.12
	tests/net/arp/t_arp.sh: revision 1.33
	sys/netinet6/nd6.c: revision 1.233
	sys/netinet6/nd6.c: revision 1.234
	sys/netinet/if_arp.c: revision 1.251
	sys/netinet6/nd6.c: revision 1.235
	sys/netinet/if_arp.c: revision 1.252
	sbin/route/route.8: revision 1.57
	sys/net/rtsock.c: revision 1.214
	sys/net/rtsock.c: revision 1.215
	sys/net/rtsock.c: revision 1.216
	sys/net/rtsock.c: revision 1.217
whitespace police
Simplify
We can assume that rt_ifp is always non-NULL.
Sending a routing message (RTM_ADD) on adding an llentry
A message used to be sent on adding a cloned route. Restore the
behavior for backward compatibility.
Requested by ryo@
Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries
ARP/NDP entries aren't connected routes.
Reported by ryo@
Support -c <count> option for route monitor
route command exits if it receives <count> routing messages where
<count> is a value specified by -c.
The option is useful to get only particular message(s) in a test script.
Test routing messages emitted on operations of ARP/NDP entries
Do netstat -a for an appropriate protocol
Add missing declarations for cleanup
Set net.inet.arp.keep only if it's required
Don't create a permanent L2 cache entry on adding an address to an interface
It was created to copy FreeBSD, however actually the cache isn't
necessary. Remove it to simplify the code and reduce the cost to
maintain it (e.g., keep a consistency with a corresponding local
route).
Fix typo
Fix in_lltable_match_prefix
The function has not been used but will be used soon.
Remove unused function (nd6_rem_ifa_lle)
Allow in6_lltable_free_entry to be called without holding the afdata lock of ifp as well as in_lltable_free_entry
This behavior is a bit odd and should be fixed in the future...
Purge ARP/NDP entries on an interface when the interface is down
Fix PR kern/51179
Purge all related L2 caches on removing a route
The change addresses situations similar to PR 51179.
Purge L2 caches on changing an interface of a route
The change addresses situations similar to PR 51179.
Test implicit removals of ARP/NDP entries
One test case reproudces PR 51179.
Fix build of kernels without both INET and INET6
Tweak lltable_sysctl_dumparp
- Rename lltable_sysctl_dumparp to lltable_sysctl_dump
  because it's not only for ARP
- Enable it not only for INET but also for INET6
Fix usage of routing messages on arp -d and ndp -d
It didn't work as we expected; we should set RTA_GATEWAY not
RTA_IFP on RTM_GET to return an if_index and the kernel should
use it on RTM_DELETE.
Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry
A message originally included only DST and GATEWAY. Restore it.
Fix ifdef; care about a case w/ INET6 and w/o INET
Drop RTF_UP from a routing message of a deleted ARP/NDP entry
Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
Fix wrong comment
Drop RTF_LLINFO flag (now it's RTF_LLDATA) from local routes
They don't have llinfo anymore. And also the change fixes unexpected
behavior of ARP proxy.
Restore ARP/NDP entries to route show and netstat -r
Requested by dyoung@ some time ago
Enable to remove multiple ARP/NDP entries for one destination
The kernel can have multiple ARP/NDP entries which have an indentical
destination on different interfaces. This is normal and can be
reproduce easily by ping -I or ping6 -S. We should be able to remove
such entries.
arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries
and remove matched entries. So we can remove multiple entries
described above. This fetch all and selective removal behavior is
the same as arp <ip> and ndp <ip>; they also do fetch all entries
and show only matched entries.
Related to PR 51179
Check if ARP/NDP entries are purged when a related route is deleted

Revision 1.156 / (download) - annotate - [select for diffs], Fri Jun 16 04:40:16 2017 UTC (5 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.155: +24 -7 lines
Diff to previous 1.155 (colored)

Support -c <count> option for route monitor

route command exits if it receives <count> routing messages where
<count> is a value specified by -c.

The option is useful to get only particular message(s) in a test script.

Revision 1.154.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:15 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.154: +4 -3 lines
Diff to previous 1.154 (colored) next main 1.155 (colored)

Sync with HEAD

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:03 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.154: +4 -3 lines
Diff to previous 1.154 (colored) next main 1.155 (colored)

Sync with HEAD

Revision 1.155 / (download) - annotate - [select for diffs], Fri Mar 17 16:13:44 2017 UTC (5 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.154: +4 -3 lines
Diff to previous 1.154 (colored)

Report the PID for the process changing the address.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Apr 4 07:37:07 2016 UTC (6 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.153: +8 -22 lines
Diff to previous 1.153 (colored)

Separate nexthop caches from the routing table

By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html

Revision 1.153 / (download) - annotate - [select for diffs], Sat Jan 23 21:05:51 2016 UTC (7 years ago) by christos
Branch: MAIN
Changes since 1.152: +2 -3 lines
Diff to previous 1.152 (colored)

no need for <sys/mbuf.h>

Revision 1.152 / (download) - annotate - [select for diffs], Sun Jan 17 15:59:26 2016 UTC (7 years ago) by christos
Branch: MAIN
Changes since 1.151: +17 -17 lines
Diff to previous 1.151 (colored)

PR/50671: David Binderman: fix memory leak.

Revision 1.151 / (download) - annotate - [select for diffs], Mon Mar 23 18:33:17 2015 UTC (7 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored)

Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.

Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.

Revision 1.150 / (download) - annotate - [select for diffs], Thu Feb 26 09:56:11 2015 UTC (7 years, 11 months ago) by roy
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

Teach route(8) about RTF_LOCAL.

Revision 1.144.4.2 / (download) - annotate - [select for diffs], Thu Jan 8 11:01:01 2015 UTC (8 years ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.144.4.1: +46 -413 lines
Diff to previous 1.144.4.1 (colored) to branchpoint 1.144 (colored)

Pull up following revision(s) (requested by prlw1 in ticket #390):
	usr.bin/netstat/mroute.c: revision 1.25
	usr.bin/netstat/Makefile: revision 1.40
	sbin/route/prog_ops.h: revision 1.3
	sbin/route/rtutil.c: revision 1.1
	sbin/route/rtutil.h: revision 1.1
	usr.bin/netstat/mroute6.c: revision 1.15
	sbin/route/extern.h: revision 1.15
	usr.bin/netstat/show.c: file removal
	usr.bin/netstat/main.c: revision 1.93
	usr.bin/netstat/route.c: revision 1.83
	usr.bin/netstat/netstat.h: revision 1.51
	distrib/utils/x_route/Makefile: revision 1.18
	sbin/route/show.c: revision 1.46
	usr.bin/netstat/if.c: revision 1.80
	sbin/route/route.c: revision 1.145
	sbin/route/Makefile: revision 1.26
Factor out the netstat route printing code and use it here. There is no
point in having 2 different copies; fixes PR/49371

Revision 1.144.4.1 / (download) - annotate - [select for diffs], Mon Dec 29 17:27:28 2014 UTC (8 years, 1 month ago) by martin
Branch: netbsd-7
Changes since 1.144: +8 -4 lines
Diff to previous 1.144 (colored)

Pull up following revision(s) (requested by prlw1 in ticket #358):
	sbin/route/route.c: revision 1.149
	external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c: revision 1.7
	external/bsd/ipf/dist/lib/printhost.c: revision 1.3
	usr.sbin/lpr/common_source/common.c: revision 1.43
	usr.sbin/lpr/common_source/Makefile: revision 1.12
	external/bsd/ipf/dist/lib/printhostmask.c: revision 1.3
	external/bsd/ipf/dist/lib/save_v1trap.c: revision 1.2
	external/bsd/dhcpcd/dist/dhcpcd.c: revision 1.21
	external/bsd/tcpdump/bin/Makefile: revision 1.12
	external/bsd/ipf/dist/lib/save_v2trap.c: revision 1.2
	external/bsd/ipf/dist/tools/lexer.c: revision 1.2
	external/bsd/ppp/usr.sbin/pppd/sys-bsd.c: revision 1.3
	external/bsd/ipf/dist/lib/printipfexpr.c: revision 1.2
MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html

Revision 1.149 / (download) - annotate - [select for diffs], Sat Dec 20 13:15:48 2014 UTC (8 years, 1 month ago) by prlw1
Branch: MAIN
Changes since 1.148: +8 -4 lines
Diff to previous 1.148 (colored)

MKINET6=no build fixes

http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html

Revision 1.148 / (download) - annotate - [select for diffs], Wed Dec 17 10:56:09 2014 UTC (8 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored)

Note that RTM_CHANGE can also change the gateway

Revision 1.147 / (download) - annotate - [select for diffs], Wed Nov 12 03:34:08 2014 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.146: +10 -6 lines
Diff to previous 1.146 (colored)

PR/47704: Takahiro HAYASHI: Add -L flag

Revision 1.146 / (download) - annotate - [select for diffs], Fri Nov 7 14:57:08 2014 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.145: +11 -8 lines
Diff to previous 1.145 (colored)

Now that the code can support tags and verbose route printing, enable them.
Also document previously undocumented flags.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Nov 6 21:29:32 2014 UTC (8 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.144: +46 -413 lines
Diff to previous 1.144 (colored)

Factor out the netstat route printing code and use it here. There is no
point in having 2 different copies; fixes PR/49371

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:27 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.138.2.2: +6 -31 lines
Diff to previous 1.138.2.2 (colored) next main 1.139 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.133.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:31 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.133.2.2: +8 -79 lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.144 / (download) - annotate - [select for diffs], Sat Oct 19 15:59:15 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.143: +4 -4 lines
Diff to previous 1.143 (colored)

use correct function

Revision 1.143 / (download) - annotate - [select for diffs], Sat Oct 19 15:50:26 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.142: +8 -5 lines
Diff to previous 1.142 (colored)

use symbolic flags

Revision 1.142 / (download) - annotate - [select for diffs], Sat Oct 19 00:39:39 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.141: +5 -39 lines
Diff to previous 1.141 (colored)

use scopeid functions

Revision 1.141 / (download) - annotate - [select for diffs], Fri Oct 18 21:01:00 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.140: +14 -8 lines
Diff to previous 1.140 (colored)

avoid pointer gymnastics

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:52 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.138.2.1: +2 -48 lines
Diff to previous 1.138.2.1 (colored)

resync from head

Revision 1.140 / (download) - annotate - [select for diffs], Fri Mar 1 18:25:17 2013 UTC (9 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.139: +2 -48 lines
Diff to previous 1.139 (colored)

Retire OSI network stack. OK core@

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:49 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.138: +8 -8 lines
Diff to previous 1.138 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:32 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.133.2.1: +8 -12 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored)

sync with head

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:57:07 2012 UTC (10 years, 3 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.136: +8 -8 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

Pull up following revision(s) (requested by uwe in ticket #592):
	sbin/route/route.c: revision 1.139
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.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Oct 4 00:01:48 2012 UTC (10 years, 4 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.138: +8 -8 lines
Diff to previous 1.138 (colored)

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.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Aug 8 14:04:26 2012 UTC (10 years, 6 months ago) by christos
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.137: +2 -6 lines
Diff to previous 1.137 (colored)

remove useless rump headers.

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:42 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.133: +19 -6 lines
Diff to previous 1.133 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Sat Mar 17 02:13:44 2012 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.136: +6 -2 lines
Diff to previous 1.136 (colored)

PR/42179: Christoph Badura: Be a little friendlier about missing args.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Dec 26 00:20:43 2011 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6
Changes since 1.135: +4 -4 lines
Diff to previous 1.135 (colored)

Off by one and clarity improvement from Christian Biere

Revision 1.135 / (download) - annotate - [select for diffs], Sat Dec 24 23:48:17 2011 UTC (11 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.134: +12 -6 lines
Diff to previous 1.134 (colored)

PR/45661: Henning Petersen: Overlapping buffer in route.c.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Nov 11 15:09:32 2011 UTC (11 years, 2 months ago) by gdt
Branch: MAIN
Changes since 1.133: +5 -2 lines
Diff to previous 1.133 (colored)

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.

Revision 1.133 / (download) - annotate - [select for diffs], Fri Oct 7 09:56:15 2011 UTC (11 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.132: +3 -4 lines
Diff to previous 1.132 (colored)

Simplify.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Aug 29 14:35:03 2011 UTC (11 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

Use __dead

Revision 1.131 / (download) - annotate - [select for diffs], Fri Jul 1 02:54:51 2011 UTC (11 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored)

Fix memset usage.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Jun 22 04:57:28 2011 UTC (11 years, 7 months ago) by kefren
Branch: MAIN
Changes since 1.129: +4 -2 lines
Diff to previous 1.129 (colored)

don't compile tag functions if SMALL is defined. Should fix the build

Revision 1.129 / (download) - annotate - [select for diffs], Tue Jun 21 14:33:14 2011 UTC (11 years, 7 months ago) by kefren
Branch: MAIN
Changes since 1.128: +144 -52 lines
Diff to previous 1.128 (colored)

Alloc dynamically sockunions in sou.
Teach route(8) about multiple tags. E.G.: -tag 100,20,33
XXX: needs documentation

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:06 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.127: +44 -46 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Tue Feb 1 01:39:19 2011 UTC (12 years ago) by matt
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.127: +44 -46 lines
Diff to previous 1.127 (colored)

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.

Revision 1.127 / (download) - annotate - [select for diffs], Mon Dec 13 17:39:47 2010 UTC (12 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.126: +25 -23 lines
Diff to previous 1.126 (colored)

Convert from RUMP_ACTION to RUMPPRG.

Revision 1.126 / (download) - annotate - [select for diffs], Fri Nov 12 16:32:18 2010 UTC (12 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.125: +9 -4 lines
Diff to previous 1.125 (colored)

Support the new RTM_IFINFO and RTM_CHGADDR messages.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Nov 5 13:52:41 2010 UTC (12 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.124: +4 -5 lines
Diff to previous 1.124 (colored)

adapt to new rumpclient_init() signature

Revision 1.124 / (download) - annotate - [select for diffs], Thu Nov 4 23:38:18 2010 UTC (12 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.123: +4 -3 lines
Diff to previous 1.123 (colored)

#ifdef variable correctly

Revision 1.123 / (download) - annotate - [select for diffs], Thu Nov 4 23:37:27 2010 UTC (12 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.122: +6 -2 lines
Diff to previous 1.122 (colored)

be consistent in what to leave outside of SMALL

Revision 1.122 / (download) - annotate - [select for diffs], Thu Nov 4 23:36:10 2010 UTC (12 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.121: +14 -3 lines
Diff to previous 1.121 (colored)

Support RUMP_ACTION to compile a rump kernel client.

Revision 1.121 / (download) - annotate - [select for diffs], Sat Jun 26 14:29:36 2010 UTC (12 years, 7 months ago) by kefren
Branch: MAIN
Changes since 1.120: +66 -6 lines
Diff to previous 1.120 (colored)

add MPLS clue - mpls and tag keywords

Revision 1.120 / (download) - annotate - [select for diffs], Wed May 12 17:56:13 2010 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.119: +8 -2 lines
Diff to previous 1.119 (colored)

PR/40455: Mihai Chelaru: Add noreject noblackhole options

Revision 1.118.6.1 / (download) - annotate - [select for diffs], Tue May 11 21:02:43 2010 UTC (12 years, 8 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.118: +13 -13 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

Fixup for u_quad_t change for route interface.

Revision 1.106.12.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:48:53 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.106.12.1: +1 -1 lines
Diff to previous 1.106.12.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Dec 28 20:12:31 2008 UTC (14 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base, matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

parse unsigned long with strtoul not atoi

Revision 1.106.12.1 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:14 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.106: +195 -172 lines
Diff to previous 1.106 (colored)

Sync with HEAD.

Revision 1.106.16.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:35:51 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106.16.1: +193 -170 lines
Diff to previous 1.106.16.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.106.16.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:29 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Sep 10 01:56:22 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: matt-nb5-mips64
Changes since 1.117: +101 -93 lines
Diff to previous 1.117 (colored)

Get the socket addresses for dst/gateway/netmask/interface/ifaddr
out of the global namespace.

Revision 1.117 / (download) - annotate - [select for diffs], Wed Sep 10 01:14:59 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored)

Don't cast a sockunion * to sockaddr *.  Instead, reference the
sockaddr inside of the sockunion.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Sep 10 01:08:39 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

Delete superfluous casts to void *.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Sep 10 01:06:58 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.114: +7 -7 lines
Diff to previous 1.114 (colored)

Constify.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Sep 10 01:00:02 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.113: +4 -4 lines
Diff to previous 1.113 (colored)

Constify.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Sep 10 00:57:57 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.112: +18 -17 lines
Diff to previous 1.112 (colored)

Constify.

For clarity's sake, do not assign a new value to inet_makenetandmask()'s
argument, `inet'.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Sep 9 19:58:46 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.111: +24 -14 lines
Diff to previous 1.111 (colored)

Extract subroutine extract_addrs() for reuse, later.

Replace the anonymous constant, 0, with AF_UNSPEC.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Sep 9 16:55:28 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.110: +6 -6 lines
Diff to previous 1.110 (colored)

Constify.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Sep 9 16:50:52 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.109: +48 -47 lines
Diff to previous 1.109 (colored)

Shorten a staircase.  Remove superfluous parentheses from return
statements.  Constify.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Sep 9 16:23:33 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.108: +8 -5 lines
Diff to previous 1.108 (colored)

Use a union and sizeof() to avoid a cast and an anonymous constant
buffer length, respectively.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Sep 9 16:18:17 2008 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

Use bool.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:23 2008 UTC (14 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.106 / (download) - annotate - [select for diffs], Sun Feb 18 01:48:37 2007 UTC (15 years, 11 months ago) by hubertf
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa, mjf-devfs2
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

TSEL() is const char* now

Revision 1.105 / (download) - annotate - [select for diffs], Sat Nov 11 21:50:19 2006 UTC (16 years, 2 months ago) by apb
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.104: +4 -3 lines
Diff to previous 1.104 (colored)

Fix a bug that caused 0.0.0.0/0 to be treated like 0.0.0.0/32.

foo << 32 is undefined per section 6.5.7 of the C99 standard
if foo is (or is promoted to) a 32-bit type.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Sep 23 22:41:25 2006 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.103: +15 -42 lines
Diff to previous 1.103 (colored)

Let us qualify 'route flush' and 'route show' commands with -llinfo
and -host flags, which is useful for displaying/flushing ARP entries:

# route -n show -inet -llinfo -host
Routing table

Internet:
Destination        Gateway            Flags
169.254.1.119      link#1             UH
169.254.230.110    00:02:6f:21:e6:6e  UH
# route -n flush -inet -llinfo -host
169.254.1.119                             done
169.254.230.110      0.2.6f.21.e6.6e      done
169.254.237.70                            done
# route -n show -inet -llinfo -host
Routing table
#

This will help me address bin/11079, "dhclient may require arp and sed".

Extract common code from flushroutes() and show(), creating
parse_show_opts().

While I'm here, make small cosmetic changes to flushroutes().

Revision 1.103 / (download) - annotate - [select for diffs], Sat Sep 23 21:55:47 2006 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.102: +5 -7 lines
Diff to previous 1.102 (colored)

Move the #ifndef SMALL code together.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Sep 23 21:51:05 2006 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.101: +7 -7 lines
Diff to previous 1.101 (colored)

Use the symbol AF_UNSPEC instead of 0 as appropriate.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Sep 23 21:11:53 2006 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.100: +2 -19 lines
Diff to previous 1.100 (colored)

Remove dead code.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Aug 26 15:26:02 2006 UTC (16 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.99: +2 -110 lines
Diff to previous 1.99 (colored)

Remove XNS and CCITT/X25 bits.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Aug 6 17:47:17 2006 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.98: +27 -22 lines
Diff to previous 1.98 (colored)

KNF err(3), errx(3) usage, indentation, braces.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Aug 6 17:44:56 2006 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.97: +8 -2 lines
Diff to previous 1.97 (colored)

Add route keywords -nocloned, -nocloning.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Jan 29 22:11:10 2006 UTC (17 years ago) by wiz
Branch: MAIN
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored)

Use default option order (AaBbCc...).

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jan 26 11:35:09 2006 UTC (17 years ago) by is
Branch: MAIN
Changes since 1.95: +10 -4 lines
Diff to previous 1.95 (colored)

Print the INET netmask if it is non-contiguous.

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jan 25 16:29:10 2006 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.94: +8 -5 lines
Diff to previous 1.94 (colored)

PR/32632: Yves-Emmanuel JUTARD: Improvment suggestion in 'route' display.
Add a new -S flag that prints a space for missing flags.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jan 25 16:19:50 2006 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.93: +9 -8 lines
Diff to previous 1.93 (colored)

PR/32629: Yves-Emmanuel JUTARD: Type errors in sbin/route/route.c, another
u_char/char conflict.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Aug 31 02:58:30 2005 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.92: +7 -7 lines
Diff to previous 1.92 (colored)

Add full IPv6 syntax support when route is built with -DSMALL and -DINET6.
Fixes PR/23937.  Adapted from supplied patch.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Aug 30 19:01:25 2005 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.91: +32 -27 lines
Diff to previous 1.91 (colored)

Clean up some minor nits:
+ style (KNF).
  . don't cast NULL
  . white space clean up
+ use consistent format for error messages.
+ plug memory leaks and avoid malloc(0).
+ verbose message should display even when routing table is empty
  (flushroutes).

Revision 1.91 / (download) - annotate - [select for diffs], Mon Aug 15 19:28:08 2005 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.90: +52 -23 lines
Diff to previous 1.90 (colored)

Make sure that a netmask socket address value prints appropriately when the
family is unset.  Either the destination or interface address socket address
family value is used.  This change prevents the following sort of output:

RTM_NEWADDR: address being added to iface: len 60, metric 0, flags:<UP>
sockaddrs: <NETMASK,IFA,BRD>
 (0) 00.00.ff.00.00 127.0.0.1 127.0.0.1

With this change the last line becomes:

 255.0.0.0 127.0.0.1 127.0.0.1

Also make sure that when using a generated inet netmask the address family
is set.  With this change a generated netmask will print appropriately
when using the verbose (-v) option.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Aug 12 21:23:06 2005 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.89: +59 -59 lines
Diff to previous 1.89 (colored)

Make sure the get command always exits non-zero on error.  This makes things
like the following work as expected.

#!/bin/sh

if ! route -sn get default >/dev/null 2>&1; then
	echo default gateway not set
	exit 1
fi
echo default gateway set

Handle routing socket write(2) errors when they occur.  This produces
better diagnostics by allowing for handling of the special route errno
values ESRCH, EBUSY, and ENOBUFS even with the quiet (-q) option or
when doing a get command.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Aug 12 16:29:06 2005 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.88: +14 -6 lines
Diff to previous 1.88 (colored)

Trim the local domain name in routename() for INET6 lookups; similar to
INET lookups.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 10 11:48:17 2005 UTC (17 years, 6 months ago) by he
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Make this build for __GNUC__ <= 2 (i.e. for vax).  The cast to
caddr_t removes a const qualifier.  Instead, cast the first element
of the subtraction to "struct sockaddr *" to work around the problem.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Aug 9 21:25:42 2005 UTC (17 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.86: +6 -8 lines
Diff to previous 1.86 (colored)

Accept protocol flags, i.e. -inet, -inet6, with the show command.
[From OpenBSD via DragonFly BSD]

Revision 1.86 / (download) - annotate - [select for diffs], Tue Aug 9 20:33:06 2005 UTC (17 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.85: +5 -5 lines
Diff to previous 1.85 (colored)

Fix the default case in sodump().  Printing the address of the "which"
string isn't really that useful.  Instead print the string and the value
of sa_family.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Aug 9 19:43:24 2005 UTC (17 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.84: +55 -55 lines
Diff to previous 1.84 (colored)

More style nits (KNF); casts and sizeof's are not followed by a space.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 20 21:12:40 2005 UTC (17 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.83: +10 -10 lines
Diff to previous 1.83 (colored)

switch is not a function, so add a space; sort switch elements
alphabetically (KNF).

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jul 15 21:29:54 2005 UTC (17 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.82: +22 -23 lines
Diff to previous 1.82 (colored)

* Exit non-zero error code when flushroute() fails operating on the
  routing socket, e.g. running route flush as non-root.

* When quiet (-q) don't append error string to a non-existent
  diagnostic output (stdout).  The error diagnostic is still written
  to stderr.  [from FreeBSD]

* Use warn(3) in place of perror(3).

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jun 26 21:28:15 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.81: +23 -22 lines
Diff to previous 1.81 (colored)

const poisoning.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jun 25 06:38:35 2005 UTC (17 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.80: +81 -2 lines
Diff to previous 1.80 (colored)

Teach route(8) to print the messages generated by net80211.

Revision 1.80 / (download) - annotate - [select for diffs], Thu May 19 15:46:02 2005 UTC (17 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.79: +3 -4 lines
Diff to previous 1.79 (colored)

Convert prefixlen() to ANSI function declaration.  Missed by earlier
conversion.

Revision 1.79 / (download) - annotate - [select for diffs], Thu May 19 15:05:11 2005 UTC (17 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

Due to a limitation in inet_addr(3) it was not possible to specify a
netmask value of 0xffffffff (INADDR_NONE).  Fix by using inet_aton(3).
Note it was possible to specify the same mask as the dotted quad
255.255.255.255 because of a later call to gethostbyname(3).
[From FreeBSD]

Revision 1.78 / (download) - annotate - [select for diffs], Fri May 13 01:59:47 2005 UTC (17 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.77: +8 -8 lines
Diff to previous 1.77 (colored)

Fix botched prior commit.  Additional debugging error messages mistakenly
committed.

Revision 1.77 / (download) - annotate - [select for diffs], Thu May 12 21:10:49 2005 UTC (17 years, 8 months ago) by ginsbach
Branch: MAIN
Changes since 1.76: +26 -26 lines
Diff to previous 1.76 (colored)

* Honor -net when using CIDR (net/mask) notation.  This differs
  from the default CIDR (host/mask) interpretation.  As discussed on
  tech-net.

* Use errx() in place of fprintf() and exit().  Make the error message
  formats consistent.

Revision 1.76 / (download) - annotate - [select for diffs], Tue May 10 18:12:22 2005 UTC (17 years, 9 months ago) by ginsbach
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Fix macro NEXTADDR so that the names, like so_dst, are printed
rather than u.  The preprocessor doesn't do replacement within
strings, so the # string creation operator must be used.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Feb 5 14:05:23 2005 UTC (18 years ago) by xtraeme
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.74: +52 -93 lines
Diff to previous 1.74 (colored)

Kill __P(), use ANSI function declarations.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 16 05:59:32 2004 UTC (18 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.73: +2 -10 lines
Diff to previous 1.73 (colored)

NI_WITHSCOPEID was not picked up by IETF standardization process.

Revision 1.73 / (download) - annotate - [select for diffs], Sat May 15 14:13:36 2004 UTC (18 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

bump buffer size for any_ntoa(), for huge sa_len

Revision 1.72 / (download) - annotate - [select for diffs], Sat May 15 13:41:09 2004 UTC (18 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

2-byte read overrun for unknown sockaddr.  from openbsd
XXX out[64], is it safe?  what if sa_len > 23?

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:33 2004 UTC (19 years, 1 month ago) by jmmv
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Oct 1 06:24:19 2003 UTC (19 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.69: +6 -3 lines
Diff to previous 1.69 (colored)

print prefixlen on -show

Revision 1.69 / (download) - annotate - [select for diffs], Tue Sep 16 09:34:48 2003 UTC (19 years, 4 months ago) by cube
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Remove a comment that referred to a non-committed part of the patch I
submitted for bin/17613. Ok'd by mrg@.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:38 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.67: +3 -7 lines
Diff to previous 1.67 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Jul 19 01:36:47 2003 UTC (19 years, 6 months ago) by jrf
Branch: MAIN
Changes since 1.66: +11 -7 lines
Diff to previous 1.66 (colored)

This is an updated submitted patch originally written by Jim Rees
and sent in by Greg Hudson as seen in PR misc/3227. Basically what it
does is adds a flushall option which deletes all but localhost routes.
This is done by andoring in a flag called doall (1 means do all routes
including gateway, 0 means do a regular flush). I have seen some
platforms that do this. I tested it out on ipv4 only, it works as
advertised. Commit was approved by christos@.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jun 11 15:45:20 2003 UTC (19 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.65: +36 -16 lines
Diff to previous 1.65 (colored)

PR/21856: Robert Elz: Changes to route(8) to allow /n instead of -prefixlen
for INET6

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jun 3 04:41:42 2003 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.64: +13 -5 lines
Diff to previous 1.64 (colored)

permit foo/bar notation, like "route add 10.0.0.0/8 127.0.0.1".
originally by provos

Revision 1.64 / (download) - annotate - [select for diffs], Sat May 17 23:02:28 2003 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.63: +20 -28 lines
Diff to previous 1.63 (colored)

strlcpy [a few mistakes found]

Revision 1.63 / (download) - annotate - [select for diffs], Mon Apr 21 13:42:50 2003 UTC (19 years, 9 months ago) by jrf
Branch: MAIN
Changes since 1.62: +20 -9 lines
Diff to previous 1.62 (colored)

This addresses PR 17613 when certain methods of adding routes would
muck up the routing tables. The patch was submitted by Quentin Garnier
<netbsd@quatriemek.com> and tweaked a little after it was reviewed
by Christos Zoulas <christos@netbsd.org>. Final change/commit approved
by Christos.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Apr 3 02:39:50 2003 UTC (19 years, 10 months ago) by jrf
Branch: MAIN
Changes since 1.61: +9 -2 lines
Diff to previous 1.61 (colored)

Made a note in the code about the -d and -d options brought up in
PR 18674. Thanks to Chris Jones for pointing it out.

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Sun Jan 26 09:40:35 2003 UTC (20 years ago) by jmc
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.54.2.3: +22 -9 lines
Diff to previous 1.54.2.3 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Pullup revisions 1.57-1.58 (requested by fredb in ticket #1080)
 permit DNS names to address portion.  they will be considered as
 RTF_HOST if specified as destination (as there's no getnetbyname in
 IPv6).

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Mon Oct 21 01:52:31 2002 UTC (20 years, 3 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.54.2.2: +4 -3 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored)

Pull up revision 1.60 (requested by itojun in ticket #923):
Make prefixlen check to make sure its argument is present before deref
from openbsd

Revision 1.38.4.6 / (download) - annotate - [select for diffs], Fri Oct 18 00:30:11 2002 UTC (20 years, 3 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.38.4.5: +6 -11 lines
Diff to previous 1.38.4.5 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

sbin/route/route.c				1.60-1.61 via patch

  Correct prefixlen option handling.

(itojun)

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 18 00:21:23 2002 UTC (20 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.60: +4 -10 lines
Diff to previous 1.60 (colored)

correct prefixlen handling for IPv4.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Oct 18 00:16:25 2002 UTC (20 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

Make prefixlen check to make sure its argument is present before deref
from openbsd

Revision 1.59 / (download) - annotate - [select for diffs], Sat Jul 20 08:36:27 2002 UTC (20 years, 6 months ago) by grant
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

sweep of errx/warnx, remove unnecessary trailing \n

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jun 10 21:18:53 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.57: +22 -9 lines
Diff to previous 1.57 (colored)

permit DNS names to address portion.  they will be considered as RTF_HOST
if specified as destination (as there's no getnetbyname in IPv6).

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Thu Jun 6 08:41:51 2002 UTC (20 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Changes since 1.54.2.1: +8 -8 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored)

Pull up revisions 1.56-1.57 (requested by itojun in ticket #185):
1.56:
	more correct ion to RTF_HOST handling.
1.57:
	if we're unsure about prefixlen, don't say "128".

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jun 5 22:11:28 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.56: +2 -4 lines
Diff to previous 1.56 (colored)

if we're unsure about prefixlen, don't say "128".

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jun 5 22:10:44 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.55: +10 -8 lines
Diff to previous 1.55 (colored)

more correct ion to RTF_HOST handling.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Wed Jun 5 04:27:43 2002 UTC (20 years, 8 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.54: +2 -4 lines
Diff to previous 1.54 (colored)

Pull up revision 1.55 (requested by itojun in ticket #160):
do not have -prefixlen 128 on RTF_HOST.
From: Dawid Szymanski <dawszy@arhea.net>

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jun 4 22:20:00 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.54: +2 -4 lines
Diff to previous 1.54 (colored)

do not have -prefixlen 128 on RTF_HOST.
From: Dawid Szymanski <dawszy@arhea.net>

Revision 1.54 / (download) - annotate - [select for diffs], Mon May 20 23:01:32 2002 UTC (20 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.53: +10 -7 lines
Diff to previous 1.53 (colored)

raise RTF_HOST if destination is a host (/128).  from ume

Revision 1.53 / (download) - annotate - [select for diffs], Thu Feb 21 15:44:25 2002 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.52: +34 -4 lines
Diff to previous 1.52 (colored)

PR/15672: Love: route monitor missing info

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jan 14 14:41:31 2002 UTC (21 years ago) by he
Branch: netbsd-1-4
Changes since 1.30: +13 -13 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Pull up revision 1.46 (requested by bad):
  Fix problem where an output message would be stuck in stdio buffers
  until the next one arrived.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Nov 15 21:25:08 2001 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.51: +19 -19 lines
Diff to previous 1.51 (colored)

Make route exit with a non-zero error code when operations to the routing
socket fails. eg, running route add 1.2.3.4 5.6.7.8 as non root.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Nov 2 03:51:48 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.50: +42 -43 lines
Diff to previous 1.50 (colored)

fix -Wshadow warnings

Revision 1.50 / (download) - annotate - [select for diffs], Wed Oct 24 18:40:16 2001 UTC (21 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.49: +66 -31 lines
Diff to previous 1.49 (colored)

Provide a short output format for the get command that only prints the
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist.
Modify the exit value of route depending on this, so that one can do
stuff like:

#!/bin/sh
gw=`route -sn get default 2>/dev/null`
if [ -z "$gw" ]; then
	echo no default route
	exit 1
fi
ping -w1 -c1 $gw >/dev/null 2>&1
if ! route -sn get $gw >/dev/null; then
	echo default gateway not responding
	exit 1
fi
echo default gateway is at $gw

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 24 16:05:06 2001 UTC (21 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.48: +167 -22 lines
Diff to previous 1.48 (colored)

Print a R on reject routes to indicate that they're not normal routes,
and check netmask (or prefix) length as well as the destination
address when determining if a route is a "default" or not.  This means
that the output from 'route show' will no longer say:

	Internet6:
	Destination       Gateway            Flags
	default           localhost          UG
	default           localhost          UG

but instead

	Internet6:
	Destination       Gateway            Flags
	::/104            localhost          UGR
	::/96             localhost          UGR

which makes much more sense.

Revision 1.38.4.5 / (download) - annotate - [select for diffs], Sun Jul 29 19:47:03 2001 UTC (21 years, 6 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002
Changes since 1.38.4.4: +13 -13 lines
Diff to previous 1.38.4.4 (colored) to branchpoint 1.38 (colored)

Pull up revision 1.46 (requested by bad):
  Make sure decoded output from ``route monitor'' gets properly
  flushed.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jul 20 08:31:55 2001 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

off-by-one error in -prefixlen arg validation (do not permit 129 on IPv6)

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 20 08:28:25 2001 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.46: +40 -17 lines
Diff to previous 1.46 (colored)

make prefixlen work on IPv4 too

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jul 16 17:22:07 2001 UTC (21 years, 6 months ago) by bad
Branch: MAIN
Changes since 1.45: +13 -13 lines
Diff to previous 1.45 (colored)

The way pmsg_addrs() is used requires that it always prints a newline and
flushes stdout before returning.

Previously the decoded output for a message was stuck in stdio buffers until
the next arrived.

Revision 1.38.4.4 / (download) - annotate - [select for diffs], Thu Apr 5 12:41:51 2001 UTC (21 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH001
Changes since 1.38.4.3: +3 -3 lines
Diff to previous 1.38.4.3 (colored) to branchpoint 1.38 (colored)

Pull up revision 1.42 (requested by itojun):
  Mark cloned routes with RTF_CLONED.  Present it in ``netstat -r''
  output by ``c''.

Revision 1.38.4.3 / (download) - annotate - [select for diffs], Thu Apr 5 12:33:41 2001 UTC (21 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.38.4.2: +3 -3 lines
Diff to previous 1.38.4.2 (colored) to branchpoint 1.38 (colored)

Pull up revision 1.41 (requested by itojun):
  Support RTF_BLACKHOLE routes.

Revision 1.38.4.2 / (download) - annotate - [select for diffs], Thu Apr 5 12:23:12 2001 UTC (21 years, 10 months ago) by he
Branch: netbsd-1-5
Changes since 1.38.4.1: +3 -5 lines
Diff to previous 1.38.4.1 (colored) to branchpoint 1.38 (colored)

Pull up revision 1.40 (requested by itojun):
  Remove use of uninitialized route (struct ortentry).

Revision 1.45 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:22 2001 UTC (21 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.44: +5 -5 lines
Diff to previous 1.44 (colored)

convert to use getprogname()

Revision 1.44 / (download) - annotate - [select for diffs], Sun Feb 4 21:09:07 2001 UTC (22 years ago) by christos
Branch: MAIN
Changes since 1.43: +7 -6 lines
Diff to previous 1.43 (colored)

remove nested externs.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 27 04:53:14 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.42: +5 -2 lines
Diff to previous 1.42 (colored)

support -cloned command line flag.
i don't think anyone ever going to use it.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 27 04:49:34 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

mark cloned routes with RTF_CLONED.  present it with netstat -r by "c".

let static routes overwrite cloned routes, as cloned routes can come back again
if necessary.  behavior same as freebsd/bsdi, code partially from bsdi42.
(NRL rt->rt_parent was not added)
should fix PR 11916 and maybe some other PRs with ARP behavior.

recompilation of usr.sbin/route6d is suggested.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 27 04:26:49 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

support RTF_BLACKHOLE.

XXX route show is total duplicate of netstat -r, we need to either remove
route show, or share the same source code, otherwise maintenance cost
bites (and is biting) us

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 27 03:20:29 2001 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.39: +3 -5 lines
Diff to previous 1.39 (colored)

remove use of uninitialized route (struct ortentry).
it seems that the bug was born during 4.3reno -> 4.4Lite1 transition.

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Tue Oct 17 20:44:14 2000 UTC (22 years, 3 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.38: +26 -3 lines
Diff to previous 1.38 (colored)

Pullup 1.39 [itojun]:
on "route monitor", print RTM_IFANNOUNCE, RTM_IFINFO (new #), and others.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Oct 10 09:35:05 2000 UTC (22 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.38: +26 -3 lines
Diff to previous 1.38 (colored)

on "route monitor", print RTM_IFANNOUNCE, RTM_IFINFO (new #), and others.

Revision 1.38 / (download) - annotate - [select for diffs], Thu May 4 18:29:34 2000 UTC (22 years, 9 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Allow INET6 to be used with SMALL without undefined symbols

Revision 1.37 / (download) - annotate - [select for diffs], Thu Apr 20 12:25:08 2000 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.36: +8 -5 lines
Diff to previous 1.36 (colored)

use scoped notation for link-local multicast too.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Apr 20 12:08:50 2000 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.35: +115 -23 lines
Diff to previous 1.35 (colored)

support extended scoped address notation (fe80::1%de0).
it hides implementation detail (embedded ifid) from the users.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:32 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.33: +19 -14 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Pull up to last week's -current.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Dec 3 05:43:00 1999 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.34: +13 -13 lines
Diff to previous 1.34 (colored)

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.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Nov 1 13:32:38 1999 UTC (23 years, 3 months ago) by sommerfeld
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Changes since 1.33: +8 -3 lines
Diff to previous 1.33 (colored)

Display local address associated with route (if any) in "route get".

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 3 03:47:39 1999 UTC (23 years, 5 months ago) by itojun
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 6 23:15:48 1999 UTC (23 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Incorrect integration. ctime takes a time_t value, not a long.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 2 15:29:03 1999 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.30: +122 -7 lines
Diff to previous 1.30 (colored)

IPv6-ready route command (-inet6 and -prefixlen are added)

Revision 1.30 / (download) - annotate - [select for diffs], Fri Oct 23 05:36:42 1998 UTC (24 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.29: +41 -16 lines
Diff to previous 1.29 (colored)

* 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).

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 26 15:03:51 1998 UTC (24 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored)

const poisoning.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 1 15:14:25 1998 UTC (24 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Need <time.h> for time() prototype.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Feb 5 21:09:46 1998 UTC (25 years ago) by ross
Branch: MAIN
Changes since 1.26: +14 -14 lines
Diff to previous 1.26 (colored)

64-bit sweep, "route -v show" was spinning forever.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Nov 16 17:03:11 1997 UTC (25 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.25: +27 -49 lines
Diff to previous 1.25 (colored)

Use {warn,err}{,x}(3) instead of printf's

Revision 1.25 / (download) - annotate - [select for diffs], Wed Oct 1 02:22:54 1997 UTC (25 years, 4 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.24: +2 -3 lines
Diff to previous 1.24 (colored)

Don't declare optind.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Sep 16 07:04:19 1997 UTC (25 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

resolve conflicts from lite-2 import

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Tue Sep 16 06:50:34 1997 UTC (25 years, 4 months ago) by lukem
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +13 -13 lines
Diff to previous 1.1.1.2 (colored)

imported from lite-2

Revision 1.23 / (download) - annotate - [select for diffs], Mon Sep 15 09:15:28 1997 UTC (25 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.22: +40 -40 lines
Diff to previous 1.22 (colored)

* cleanup for WARNS=1
* use .Nm correctly
* deprecate register
* getopt returns -1 not EOF

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 2 00:30:49 1997 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Fix uninitialized pointer botch when attempting to flush an already
empty routing table.  From Matthias Scheler <tron@lyssa.owl.de>, in
PR #4074.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Apr 27 16:58:22 1997 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +16 -9 lines
Diff to previous 1.20 (colored)

Don't SEGV if a qualifier is passed without an argument.  From
Geoff Wing <mason@primenet.com.au>, fixes PR #2700.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 21 11:40:13 1997 UTC (25 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.19: +36 -31 lines
Diff to previous 1.19 (colored)

KNF.  be safe with buffers.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 3 02:35:51 1997 UTC (25 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.18: +113 -49 lines
Diff to previous 1.18 (colored)

- Add netatalk bits
- Add prototypes
- Fix printf formats

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 22 21:22:26 1997 UTC (25 years, 11 months ago) by carrel
Branch: MAIN
Changes since 1.17: +3 -16 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Nov 15 18:01:40 1996 UTC (26 years, 2 months ago) by gwr
Branch: MAIN
Changes since 1.16: +159 -98 lines
Diff to previous 1.16 (colored)

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).

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 15 18:27:05 1996 UTC (26 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

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.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 7 00:07:23 1996 UTC (27 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.14: +20 -15 lines
Diff to previous 1.14 (colored)

Produce less output on -q as promised by the man page (John Hawkinson; PR#998).

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 20 20:52:46 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

Interface-specific routes can be static.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Apr 20 17:39:20 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +5 -2 lines
Diff to previous 1.12 (colored)

Implement the document `-llinfo' flag.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 18 03:14:18 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

Remove extra `break;'.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 18 15:00:15 1995 UTC (27 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 24 11:07:28 1994 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

kill some extraneous equal signs.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 23 23:51:33 1994 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Remove some more uses of obsolete functions.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 23 14:28:02 1994 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +9 -9 lines
Diff to previous 1.7 (colored)

Eliminate uses of some obsolete functions.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Tue Jun 14 00:08:04 1994 UTC (28 years, 8 months ago) by mycroft
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +377 -224 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4-Lite version.

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 13 08:02:21 1994 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.6: +387 -193 lines
Diff to previous 1.6 (colored)

Clean up import.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 1 18:24:56 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Add RCS identifiers.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 25 07:26:40 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.4: +1 -43 lines
Diff to previous 1.4 (colored)

Compile X.25, OSI, and NS code.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 18 19:02:31 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +12 -12 lines
Diff to previous 1.3 (colored)

Cleanup for GCC 2.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:30:08 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>