Bug 119076 - [patch] [rc.d] /etc/rc.d/netif tries to remove alias addresses two times from interfaces
Summary: [patch] [rc.d] /etc/rc.d/netif tries to remove alias addresses two times from...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 7.0-BETA4
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 20:30 UTC by Jaakko Heinonen
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
file.diff (457 bytes, patch)
2007-12-27 20:30 UTC, Jaakko Heinonen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Heinonen 2007-12-27 20:30:00 UTC
/etc/rc.d/netif runs first "ifconfig interface inet x.x.x.x delete" and then "ifconfig interface inet x.x.x.x -alias" for network interface aliases defined in /etc/rc.conf with ifconfig_<int>_aliasX syntax. The second attempt to remove an address results an error.

Fix: Patch attached with submission follows:
How-To-Repeat: /etc/rc.conf:
ifconfig_vr0="inet 10.0.0.3 netmask 255.0.0.0"
ifconfig_vr0_alias0="inet 10.0.0.4"

# /etc/rc.d/netif stop vr0
Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address vr0.

(after applying the attached patch)
# /etc/rc.d/netif stop vr0
Stopping network: vr0.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2008-01-27 23:10:10 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to rc mailing list
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:22 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped