Bug #2888
closed
ifconfig command bug with IPv6 addresses
Added by ygrossel almost 9 years ago.
Updated almost 9 years ago.
Description
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
Fixed! Thanks!
On Fri, Feb 12, 2016 at 4:14 AM,
<bugtracker-admin@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
- Status changed from New to Resolved
sepherosa wrote:
Fixed! Thanks!
Thanks you sepherosa.
Regards,
Yann Grossel
Also available in: Atom
PDF