summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-04-10 01:42:44 +0000
committerbrian <brian@FreeBSD.org>2002-04-10 01:42:44 +0000
commitc321804c50290463e606adfa0ddc83596b6f2490 (patch)
tree88e11fce22e85a1d55d65a4220be1c8a9811082d /sys/netinet
parent2eb3cb5ccab133455558a344fae48af5a2bac852 (diff)
downloadFreeBSD-src-c321804c50290463e606adfa0ddc83596b6f2490.zip
FreeBSD-src-c321804c50290463e606adfa0ddc83596b6f2490.tar.gz
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
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index f4b9bff..d27eec9 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -743,10 +743,6 @@ in_ifinit(ifp, ia, sin, scrub)
ia->ia_flags |= IFA_ROUTE;
}
- /* XXX check if the subnet route points to the same interface */
- if (error == EEXIST)
- error = 0;
-
/*
* If the interface supports multicast, join the "all hosts"
* multicast group on that interface.
OpenPOWER on IntegriCloud