Leonid Plyushch
6 years ago
6 changed files with 70 additions and 3 deletions
@ -0,0 +1,21 @@ |
|||
diff -uNr net-tools/arp.c net-tools.mod/arp.c
|
|||
--- net-tools/arp.c 2017-02-21 20:24:32.000000000 +0200
|
|||
+++ net-tools.mod/arp.c 2019-03-01 19:05:20.555355036 +0200
|
|||
@@ -644,7 +644,7 @@
|
|||
fprintf(stderr, _(" -i, --device specify network interface (e.g. eth0)\n")); |
|||
fprintf(stderr, _(" -D, --use-device read <hwaddr> from given device\n")); |
|||
fprintf(stderr, _(" -A, -p, --protocol specify protocol family\n")); |
|||
- fprintf(stderr, _(" -f, --file read new entries from file or from /etc/ethers\n\n"));
|
|||
+ fprintf(stderr, _(" -f, --file read new entries from file or from $PREFIX/etc/ethers\n\n"));
|
|||
|
|||
fprintf(stderr, _(" <HW>=Use '-H <hw>' to specify hardware address type. Default: %s\n"), DFLT_HW); |
|||
fprintf(stderr, _(" List of possible hardware types (which support ARP):\n")); |
|||
@@ -791,7 +791,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 */ |
@ -0,0 +1,12 @@ |
|||
diff -uNr net-tools/lib/pathnames.h net-tools.mod/lib/pathnames.h
|
|||
--- net-tools/lib/pathnames.h 2017-02-21 20:24:32.000000000 +0200
|
|||
+++ net-tools.mod/lib/pathnames.h 2019-03-01 19:05:45.935478227 +0200
|
|||
@@ -47,7 +47,7 @@
|
|||
#define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" |
|||
#define _PATH_PROCNET_DEV "/proc/net/dev" |
|||
#define _PATH_PROCNET_RARP "/proc/net/rarp" |
|||
-#define _PATH_ETHERS "/etc/ethers"
|
|||
+#define _PATH_ETHERS "@TERMUX_PREFIX@/etc/ethers"
|
|||
#define _PATH_PROCNET_ROSE "/proc/net/rose" |
|||
#define _PATH_PROCNET_ROSE_NEIGH "/proc/net/rose_neigh" |
|||
#define _PATH_PROCNET_ROSE_NODES "/proc/net/rose_nodes" |
@ -0,0 +1,12 @@ |
|||
diff -uNr net-tools/rarp.c net-tools.mod/rarp.c
|
|||
--- net-tools/rarp.c 2017-02-21 20:24:32.000000000 +0200
|
|||
+++ net-tools.mod/rarp.c 2019-03-01 19:06:09.028923071 +0200
|
|||
@@ -178,7 +178,7 @@
|
|||
fprintf(stderr, _("Usage: rarp -a list entries in cache.\n")); |
|||
fprintf(stderr, _(" rarp -d <hostname> delete entry from cache.\n")); |
|||
fprintf(stderr, _(" rarp [<HW>] -s <hostname> <hwaddr> add entry to cache.\n")); |
|||
- fprintf(stderr, _(" rarp -f add entries from /etc/ethers.\n"));
|
|||
+ fprintf(stderr, _(" rarp -f add entries from $PREFIX/etc/ethers.\n"));
|
|||
fprintf(stderr, _(" rarp -V display program version.\n\n")); |
|||
|
|||
fprintf(stderr, _(" <HW>=Use '-H <hw>' to specify hardware address type. Default: %s\n"), DFLT_HW); |
@ -0,0 +1,12 @@ |
|||
diff -uNr net-tools/slattach.c net-tools.mod/slattach.c
|
|||
--- net-tools/slattach.c 2017-02-21 20:24:32.000000000 +0200
|
|||
+++ net-tools.mod/slattach.c 2019-03-01 21:54:06.558251056 +0200
|
|||
@@ -55,7 +55,7 @@
|
|||
#include "util.h" |
|||
|
|||
#ifndef _PATH_LOCKD |
|||
-#define _PATH_LOCKD "/var/lock" /* lock files */
|
|||
+#define _PATH_LOCKD "@TERMUX_PREFIX@/var/lock" /* lock files */
|
|||
#endif |
|||
#ifndef _UID_UUCP |
|||
#define _UID_UUCP "uucp" /* owns locks */ |
Loading…
Reference in new issue