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 Keywords: patch
Priority: Normal    
Version: 7.0-BETA4   
Hardware: Any   
OS: Any   
Attachments:
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 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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:40:38 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>