ARPING and OpenWRT: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Ever wondered why people do the things they do, like creating a utility named arping that only does what ping does? Well forget about it, we'll never know the answer to why many stupid things are done. Let's just solve it. | Ever wondered why people do the things they do, like creating a utility named arping that only does what ping does? Well forget about it, we'll never know the answer to why many stupid things are done. Let's just solve it. Keep in mind the below is a work in progress and isn't finished yet. | ||
== Thomas Habets ARPing on OpenWrt 25.12.5 / WRT32X == | == Thomas Habets ARPing on OpenWrt 25.12.5 / WRT32X == | ||
| Line 31: | Line 29: | ||
Use '''-r''' for raw output when scripting. | Use '''-r''' for raw output when scripting. | ||
<syntaxhighlight lang="text">cd /tmp | |||
apk update | |||
apk add libpcap1 libnet-1.2.x wget-ssl | |||
wget -O arping-2.21-r0.apk \ | |||
https://dl-cdn.alpinelinux.org/alpine/v3.12/community/armv7/arping-2.21-r0.apk | |||
rm -rf /tmp/arping-install | |||
mkdir -p /tmp/arping-install | |||
tar -xzf arping-2.21-r0.apk -C /tmp/arping-install | |||
cp /tmp/arping-install/usr/sbin/arping /usr/sbin/arping | |||
chmod 755 /usr/sbin/arping | |||
ln -sf /usr/lib/libnet.so.9 /usr/lib/libnet.so.1 | |||
echo '===== VERIFY =====' | |||
ldd /usr/sbin/arping | |||
/usr/sbin/arping --help</syntaxhighlight> | |||