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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Feb 12 02:56:33 PST 2016


Issue #2888 has been updated by sepherosa.


Fixed!  Thanks!

On Fri, Feb 12, 2016 at 4:14 AM,
<bugtracker-admin at leaf.dragonflybsd.org> wrote:
> 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



-- 
Tomorrow Will Never Die

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

* 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