[DragonFlyBSD - Bug #2888] (New) ifconfig command bug with IPv6 addresses

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Feb 11 12:14:02 PST 2016


Issue #2888 has been reported by ygrossel.

----------------------------------------
Bug #2888: ifconfig command bug with IPv6 addresses
http://bugs.dragonflybsd.org/issues/2888

* Author: ygrossel
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
Hello,

I think there is a bug in the ifconfig command regarding IPv6 addresses. Any attempt to remove a IPv6 address from an interface using ifconfig fails with the message:
    ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address

How to reproduce:

- add an IPv6 address to some interface using ifconfig alias
- then try to remove that address using ifconfig -alias
- it fails with the error message.

For example:

# ifconfig vke0 | grep inet6
        inet6 fe80::2be:dfff:fedf:804%vke0 prefixlen 64 scopeid 0x1

# ifconfig vke0 inet6 alias 2001:db8::1/64

# ifconfig vke0 | grep inet6
        inet6 fe80::2be:dfff:fedf:804%vke0 prefixlen 64 scopeid 0x1
        inet6 2001:db8::1 prefixlen 64

# ifconfig vke0 inet6 -alias 2001:db8::1
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address

# ifconfig vke0 | grep inet6
        inet6 fe80::2be:dfff:fedf:804%vke0 prefixlen 64 scopeid 0x1
        inet6 2001:db8::1 prefixlen 64

The attached patch fixes the bug.

Regards,

Yann


---Files--------------------------------
ifconfig.patch (402 Bytes)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list