freebsd-dev/sbin
Ruslan Ermilov 86cd74127c Fixed the -iface breakage introduced with the latest KAME merge
in revision 1.48.  It is pretty valid and often feasible to use
a non-point-to-point interface as the gateway.  One might, for
example, use this to route some hosts through an ARP on a local
interface, without having to assign an additional IP address:

Script started on Tue Jun 12 16:16:09 2001
# ifconfig rl0 inet
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1197
# route add -net 192.168.100 -iface rl0
add net 192.168.100: gateway rl0
# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=0.551 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=0.268 ms
^C
--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.268/0.410/0.551/0.142 ms
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1165
192.168.100        link#1             UCSc        1        0     rl0 =>
192.168.100.1      0:d0:b7:16:9c:c6   UHLW        1        4     rl0   1192

Script done on Tue Jun 12 16:17:12 2001
2001-06-12 13:23:43 +00:00
..
adjkerntz - VFS_SET(msdos) -> VFS_SET(msdosfs) 2001-06-01 10:57:26 +00:00
atacontrol Fix bogon introduce by last commit. 2001-05-18 11:38:58 +00:00
atm - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
badsect - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
bsdlabel mdoc(7) police: fix markup in revision 1.27. 2001-05-15 16:03:59 +00:00
camcontrol Rewrite of the CAM error recovery code. 2001-03-27 05:45:52 +00:00
ccdconfig Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
clri - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
comcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
cxconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dhclient beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
disklabel mdoc(7) police: fix markup in revision 1.27. 2001-05-15 16:03:59 +00:00
dmesg - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dump Since we use getopt (in rev. 1.12), there's no need for the case's for 2001-06-09 04:32:46 +00:00
dumpfs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
dumpon - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
fdisk wd0 -> ad0 2001-04-08 18:41:22 +00:00
fdisk_pc98 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ffsinfo cleanup to get rid of most warnings on alpha 2001-06-07 20:43:00 +00:00
fsck Update usage message with new options. 2001-04-30 05:36:32 +00:00
fsck_ffs Ignore the new superblock fields fs_pendingblocks and fs_pendinginodes 2001-05-29 20:45:08 +00:00
fsck_ifs Add support for -F flag (trivial as background check is never possible). 2001-04-25 19:05:23 +00:00
fsdb In fsdb, call sblock_init() which is now necessary to initialise 2001-04-23 21:39:14 +00:00
fsirand - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
growfs cleanup to get rid of most warnings on alpha 2001-06-07 20:43:00 +00:00
i386 wd0 -> ad0 2001-04-08 18:41:22 +00:00
ifconfig Sync with recent KAME. 2001-06-11 12:39:29 +00:00
init Use new backup feature of install(1). 2001-05-28 16:58:35 +00:00
ip6fw Update comment to match ipfw/ipfw.c,v 1.95. 2001-04-13 06:49:47 +00:00
ipf Backout previous change (removal of -I${.CURDIR}/../../sys/netinet). 2001-06-11 17:41:58 +00:00
ipfstat Backout previous change (removal of -I${.CURDIR}/../../sys/netinet). 2001-06-11 17:41:58 +00:00
ipfw Mention Alexandre Peixoto's share/examples/ipfw/change_rules.sh in the 2001-06-06 20:56:56 +00:00
ipmon Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ipnat Backout previous change (removal of -I${.CURDIR}/../../sys/netinet). 2001-06-11 17:41:58 +00:00
kget mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
kldload Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
kldstat Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
kldunload Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ldconfig Fix a "this sentence no verb" grammar bogon. 2001-06-08 21:20:14 +00:00
md5 Fix argument processing. 2001-05-22 10:33:43 +00:00
mdconfig - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mknod - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount - VFS_SET(msdos) -> VFS_SET(msdosfs) 2001-06-01 10:57:26 +00:00
mount_cd9660 Added missing no's to the -o options list. 2001-04-26 12:05:23 +00:00
mount_ext2fs - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
mount_hpfs Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
mount_ifs Removed unused copy of ../mount/getmtopts.3. 2001-01-17 04:10:06 +00:00
mount_msdosfs - VFS_SET(msdos) -> VFS_SET(msdosfs) 2001-06-01 10:57:26 +00:00
mount_nfs - Split out the {family,socktype}->netid conversion into a separate 2001-05-13 00:07:03 +00:00
mount_ntfs - sys/n[tw]fs moved to sys/fs/n[tw]fs 2001-05-26 11:57:45 +00:00
mount_nullfs Rename (after a repo-copy) some mount(8) programs: 2001-05-23 14:58:19 +00:00
mount_nwfs - sys/n[tw]fs moved to sys/fs/n[tw]fs 2001-05-26 11:57:45 +00:00
mount_portalfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
mount_std Rename (after a repo-copy) some mount(8) programs: 2001-05-23 14:58:19 +00:00
mount_umapfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
mount_unionfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
mountd Correct cross-reference: 2001-06-07 16:59:19 +00:00
natd mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
newfs Don't link ${BINDIR}/newfs to nowhere. 2001-05-30 09:31:24 +00:00
newfs_msdos - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nextboot - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nfsd - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
nfsiod Correct cross-reference: 2001-06-07 16:59:19 +00:00
nologin beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
nos-tun Allow specification of which source address to use for encapsulation. 2001-03-28 17:30:26 +00:00
pc98 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
ping Add a -A option to ping which beeps when packets are lost. 2001-05-24 09:17:52 +00:00
ping6 Sync with recent KAME. 2001-06-11 12:39:29 +00:00
quotacheck - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
reboot Remove the "undocumented" comment in re lflag. 2001-05-24 09:28:59 +00:00
restore Add 'SKIP' as an action so that verification works for multivolume restores. 2001-06-11 01:44:06 +00:00
route Fixed the -iface breakage introduced with the latest KAME merge 2001-06-12 13:23:43 +00:00
routed Fix a byteorder problem in a diagnostic message. 2001-06-06 20:52:30 +00:00
rtsol Sync with recent KAME. 2001-06-11 12:39:29 +00:00
savecore dumpmag is 'u_long dumpmag' in the kernel, not 'int'. If this worked on 2001-06-09 01:41:03 +00:00
setkey Sync with recent KAME. 2001-06-11 12:39:29 +00:00
shutdown - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
slattach - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
spppcontrol - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
startslip - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
swapon vnconfig(8) -> mdconfig(8). 2001-04-10 16:29:41 +00:00
sysctl Normalize the use of sizeof according to style(9). 2001-06-09 03:56:16 +00:00
tunefs Do not allow the soft updates flag to be set if the filesystem is dirty. 2001-04-13 23:54:49 +00:00
umount Remove vestiges of MFS. 2001-06-01 10:07:28 +00:00
vinum Correct typo. 2001-06-11 00:43:26 +00:00
Makefile - VFS_SET(msdos) -> VFS_SET(msdosfs) 2001-06-01 10:57:26 +00:00
Makefile.inc - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00