summaryrefslogtreecommitdiffstats
path: root/gnu
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 /gnu
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 'gnu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud