1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys
Brian Somers 6ce6e2be71 Remove the code that masks an EEXIST returned from rtinit() when
calling ioctl(SIOC[AS]IFADDR).

This allows the following:

  ifconfig xx0 inet 1.2.3.1 netmask 0xffffff00
  ifconfig xx0 inet 1.2.3.17 netmask 0xfffffff0 alias
  ifconfig xx0 inet 1.2.3.25 netmask 0xfffffff8 alias
  ifconfig xx0 inet 1.2.3.26 netmask 0xffffffff alias

but would (given the above) reject this:

  ifconfig xx0 inet 1.2.3.27 netmask 0xfffffff8 alias

due to the conflicting netmasks.  I would assert that it's wrong
to mask the EEXIST returned from rtinit() as in the above scenario, the
deletion of the 1.2.3.25 address will leave the 1.2.3.27 address
as unroutable as it was in the first place.

Offered for review on: -arch, -net
Discussed with: stephen macmanus <stephenm@bayarea.net>
MFC after: 3 weeks
2002-04-10 01:42:44 +00:00
..
alpha GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
amd64 GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
arm Guard against redefining __gnuc_va_list. 2002-03-24 11:25:46 +00:00
boot Upgrade FICL to 3.02. Forgot this one, sorry. 2002-04-09 20:59:34 +00:00
cam Fix 3 of the four problems with my last indentation fix. ("fixing" the 2002-04-01 05:41:33 +00:00
coda Moved signal handling and rescheduling from userret() to ast() so that 2002-04-04 17:49:48 +00:00
compat - Change fill_kinfo_proc() to require that the process is locked when it 2002-04-09 20:10:46 +00:00
conf Round 2 of munging the MI/MD split in NOTES. Put almost all the device 2002-04-09 18:26:58 +00:00
contrib We don't need ip_ipsec_pxy.c in userland. 2002-03-26 13:42:09 +00:00
crypto
ddb
dev Use the PCI port for pci cards, not just for PCIXR cards. 2002-04-10 01:15:23 +00:00
fs Remove 3 instances of vm_zone.h inclusion. 2002-04-08 08:12:46 +00:00
geom Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the start 2002-04-09 15:43:32 +00:00
gnu Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
i4b Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
i386 Round 2 of munging the MI/MD split in NOTES. Put almost all the device 2002-04-09 18:26:58 +00:00
ia64 GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
isa GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
isofs/cd9660 Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
kern Display the recursion count in the lock_instance in the show locks 2002-04-10 01:25:11 +00:00
libkern
modules First cut at breaking out the bus attachment from the bus independent 2002-04-02 02:38:35 +00:00
net Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netatalk Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netatm Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netgraph Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netinet Remove the code that masks an EEXIST returned from rtinit() when 2002-04-10 01:42:44 +00:00
netinet6 Use <net/fddi.h> rather than <netinet/if_fddi.h>. 2002-04-06 03:21:46 +00:00
netipx Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netkey
netnatm Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netncp Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
netns Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
netsmb Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
nfs
nfsclient Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
nfsserver Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
pc98 GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
pccard Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
pci Teach the rlphy driver how to do parallel link detection. If the link partner 2002-04-07 20:55:50 +00:00
posix4
powerpc GC various bits and pieces of USERCONFIG from all over the place. 2002-04-09 11:18:46 +00:00
rpc
security/lomac Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
sparc64 Forgot these files in previous commit to frame.h. Also add needed include 2002-04-09 01:43:07 +00:00
svr4
sys Change linker_reference_module() so that it's passed a struct 2002-04-10 01:13:57 +00:00
tools constify 2002-04-01 19:22:04 +00:00
ufs Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>. 2002-04-08 09:20:07 +00:00
vm Quiet witness warnings about acquiring several zone locks. In the case that 2002-04-08 21:08:17 +00:00
Makefile