termux-packages/packages/net-tools/arp.c.patch

22 lines
1.1 KiB
Diff

diff -uNr net-tools-2.10/arp.c net-tools-2.10.mod/arp.c
--- net-tools-2.10/arp.c 2021-01-07 01:22:35.000000000 +0200
+++ net-tools-2.10.mod/arp.c 2021-01-07 15:51:51.966445312 +0200
@@ -645,7 +645,7 @@
fprintf(fp, _(" -i, --device specify network interface (e.g. eth0)\n"));
fprintf(fp, _(" -D, --use-device read <hwaddr> from given device\n"));
fprintf(fp, _(" -A, -p, --protocol specify protocol family\n"));
- fprintf(fp, _(" -f, --file read new entries from file or from /etc/ethers\n\n"));
+ fprintf(fp, _(" -f, --file read new entries from file or from @TERMUX_PREFIX@/etc/ethers\n\n"));
fprintf(fp, _(" <HW>=Use '-H <hw>' to specify hardware address type. Default: %s\n"), DFLT_HW);
fprintf(fp, _(" List of possible hardware types (which support ARP):\n"));
@@ -793,7 +793,7 @@
break;
case 2: /* process an EtherFile */
- what = arp_file(argv[optind] ? argv[optind] : "/etc/ethers");
+ what = arp_file(argv[optind] ? argv[optind] : "@TERMUX_PREFIX@/etc/ethers");
break;
case 3: /* delete an ARP entry from the cache */