Skip to content

arping version 2.23 or 24 returns RC 1 with unsolicited arps, 2.19 does not #56

@bahbarnett

Description

@bahbarnett

I use arping in a variety of scripts, and I have a variety of upstream routers I must hit. Some require unsolicited arps, others not.

In the case of unsolicited, I recently upgraded arping to a newer version. A move from 2.19 to 2.23. With 2.19, even though it was simply an unsolicited packet being sent, arping (I presume) simply posted the time to send, and thus stated success.

However, with 2.23 it now does a 'timeout', even though I don't think the router should be responding to a 'reply'.

In both cases the ARP 'reply' is sent fine, as per tcpdump. In both cases, I see no response from the router.

However, a RC of 1 happens with the timeouts in 2.23, which means my scripts cannot tell the difference between 'borked command' and 'normal arping operation'.

Is it me that's borked, or arping's -P?

Thanks

# ./arping.2.24 -w3 -c2 -P -U -I NIC:11 x.x.x.x
ARPING x.x.x.x
Timeout
Timeout

--- x.x.x.x statistics ---
2 packets transmitted, 0 packets received, 100% unanswered (0 extra)


# arping.2.23 -w3 -c2 -P -U -I NIC:11 x.x.x.x
ARPING x.x.x.x
Timeout
Timeout

--- x.x.x.x statistics ---
2 packets transmitted, 0 packets received, 100% unanswered (0 extra)


# arping.2.19 -w3 -c2 -P -U -I NIC:11 x.x.x.x
ARPING x.x.x.x
58 bytes from ff:ff:ff:ff:ff:ff (x.x.x.x): index=0 time=7.852 usec
58 bytes from ff:ff:ff:ff:ff:ff (x.x.x.x): index=1 time=7.400 usec

--- x.x.x.x statistics ---
2 packets transmitted, 2 packets received,   0% unanswered (0 extra)
rtt min/avg/max/std-dev = 0.007/0.008/0.008/0.000 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions