Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692982 - net-misc/iputils - arping: wrong return code in duplicate address detection mode
Summary: net-misc/iputils - arping: wrong return code in duplicate address detection mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-08-27 19:23 UTC by Pavel Volkovitskiy
Modified: 2020-06-30 19:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Volkovitskiy 2019-08-27 19:23:08 UTC
arping -V
arping from iputils s20190709

arping -f -D -c 2 -I eth0 192.168.2.1; echo $?
ARPING 192.168.2.1 from 0.0.0.0 eth0
Unicast reply from 192.168.2.1 [0E:4D:E9:6A:45:64]  0.827ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
1

arping -f -D -c 2 -I eth0 192.168.2.3; echo $?
ARPING 192.168.2.3 from 0.0.0.0 eth0
Sent 2 probes (2 broadcast(s))
Received 0 response(s)
1

It should return 0 in the second case (no responses)

Upstream fix: https://github.com/iputils/iputils/commit/18f14be80466ddc8fb17a400be82764a779c8dcd
Comment 1 Pavel Volkovitskiy 2019-08-27 19:27:39 UTC
Unfortunately, that return codes used in initramfs scripts to detect duplicate address and breaks remote unlock with dracut-crypt-ssh
Comment 2 Larry the Git Cow gentoo-dev 2020-04-07 18:09:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23a95c6869f3abe76afd4197e4b7f92d25048861

commit 23a95c6869f3abe76afd4197e4b7f92d25048861
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-04-07 18:04:59 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-04-07 18:09:23 +0000

    net-misc/iputils: fix arping
    
    Closes: https://bugs.gentoo.org/692982
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 ...rt-partially-fix-sent-vs-received-package.patch |  34 ++++
 net-misc/iputils/iputils-20190709-r1.ebuild        | 201 +++++++++++++++++++++
 2 files changed, 235 insertions(+)
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-06-30 19:20:14 UTC
*** Bug 730154 has been marked as a duplicate of this bug. ***