Bug 119076

Summary: [patch] [rc.d] /etc/rc.d/netif tries to remove alias addresses two times from interfaces
Product: Base System Reporter: Jaakko Heinonen <jh>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.0-BETA4   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

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 netmask"

# /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