Bug 15742 - ip flush fails on bridge with multiple addresses
Summary: ip flush fails on bridge with multiple addresses
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 21:49 UTC by Andrew Tonner
Modified: 2023-08-25 21:51 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Tonner 2023-08-25 21:49:40 UTC
On a system with a bridge with multiple addresses:
# busybox ip a s
... snip ...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000
    link/ether 08:00:27:fe:f5:38 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a00:27ff:fefe:f538/64 scope link
       valid_lft forever preferred_lft forever
43: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 08:00:27:fe:f5:38 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 scope global br0
       valid_lft forever preferred_lft forever
    inet 10.0.2.16/24 scope global secondary br0
       valid_lft forever preferred_lft forever
    inet 10.0.2.17/24 scope global secondary br0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fefe:f538/64 scope link
       valid_lft forever preferred_lft forever


Flushing the addresses exits with an error:
# busybox ip addr flush br0
ip: can't send flush request: Address not available


By contrast iproute2 would just ignore EADDRNOTAVAIL and succeed.

System info:
Alpine 3.18 x86_64
BusyBox v1.36.1 (2023-07-27 17:12:24 UTC) multi-call binary.
config is the one at https://gitlab.alpinelinux.org/alpine/aports/-/blob/6f6dd7120ded4f70ab3cc41384c170ca5cb6a3d0/main/busybox/busyboxconfig
Comment 1 Andrew Tonner 2023-08-25 21:51:42 UTC
# uname -a
Linux iptest 6.1.47-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 10:24:14 +0000 x86_64 Linux