#977460 iputils-arping: flag "-s src_ip" not works with -U/-A

Package:
iputils-arping
Source:
iputils
Description:
Tool to send ICMP echo requests to an ARP address
Submitter:
Evgeniy Berdnikov
Date:
2020-12-15 10:54:04 UTC
Severity:
minor
#977460#5
Date:
2020-12-15 10:49:30 UTC
From:
To:
Dear Maintainer,

if options "-s src_ip" is combined with -U or -A, is does not work.
Arping always send frames with main ip for a given interface.

Example: my test node has lxcbr0 bridge with ipv4 addresses
192.168.16.23, 192.168.16.123 and 192.168.16.124:

# ip -4 a l dev lxcbr0
6: lxcbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 192.168.16.23/20 brd 192.168.31.255 scope global lxcbr0
       valid_lft forever preferred_lft forever
    inet 192.168.16.123/32 scope global lxcbr0
       valid_lft forever preferred_lft forever
    inet 192.168.16.124/32 scope global lxcbr0
       valid_lft forever preferred_lft forever

# arping -I lxcbr0 -s 192.168.16.124 -U 192.168.16.1
ARPING 192.168.16.1 from 192.168.16.23 lxcbr0
Unicast reply from 192.168.16.1 [00:BE:4D:00:16:40]  0.956ms
...

Tcpdump shows that frames come to 192.168.16.1 with src_ip=192.168.16.23,
not 192.168.16.124. The same happens for -A and for real interfaces.