| Summary: | ip flush fails on bridge with multiple addresses | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Andrew Tonner <rakslice> |
| Component: | Networking | Assignee: | unassigned |
| Status: | NEW --- | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
# 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 |
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