freebsd-dev/sbin
Ruslan Ermilov 1d36c8992d When changing an indirect route, kernel routing code allocates
a route to the gateway and caches it in the route structure.
It may happen (if the routing table is screwed) that the gateway
route is the same route as the one being modified, in which case
a kernel reports EDQUOT.  Be more verbose about this:

# route add -net 10 192.168.4.65
add net 10: gateway 192.168.4.65
# netstat -rn -finet
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            192.168.4.65       UGSc        1        7      rl0
10                 192.168.4.65       UGSc        0        0      rl0
127.0.0.1          127.0.0.1          UH          0      178      lo0
192.168.4          link#1             UC          2        0      rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        2        0      rl0   1123

Before:

# route change -net 10 10.0.0.1
route: writing to routing socket: Disc quota exceeded
change net 10: gateway 10.0.0.1: Disc quota exceeded

After:

# ./route change -net 10 10.0.0.1
route: writing to routing socket: Disc quota exceeded
change net 10: gateway 10.0.0.1: gateway uses the same route

PR:		bin/1093, misc/26833
2001-06-08 12:44:25 +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 Fix bogon with the nodump flag. 2001-04-19 01:39:27 +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 ARP works on networks other than Ethernet. 2001-06-02 04:09:53 +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 Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ipfstat Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +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 Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +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 * include/elf.h has been repo copied to include/elf-hints.h, and it no 2001-05-02 23:56:21 +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 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +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 - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
route When changing an indirect route, kernel routing code allocates 2001-06-08 12:44:25 +00:00
routed Fix a byteorder problem in a diagnostic message. 2001-06-06 20:52:30 +00:00
rtsol Correct style bugs in previous commit 2000-07-06 01:55:21 +00:00
savecore 'int dumpsize; /* memory size in bytes */' is not good for machines 2001-06-08 03:06:24 +00:00
setkey Allow `ip4'' as an `upperspec'' value, and update the man 2001-05-17 15:30:49 +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 Remove xref to blackhole(4). sysctl has nothing to do with 2001-06-08 03:12:32 +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 *sigh* We can't remove VINUMDEBUG entirely, since we include kernel 2001-05-23 23:27:08 +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