2021-01-07 14:55:35 +01:00
|
|
|
diff -uNr net-tools-2.10/nameif.c net-tools-2.10.mod/nameif.c
|
|
|
|
--- net-tools-2.10/nameif.c 2021-01-07 01:22:35.000000000 +0200
|
|
|
|
+++ net-tools-2.10.mod/nameif.c 2021-01-07 15:52:58.378961050 +0200
|
2017-04-09 22:02:35 +02:00
|
|
|
@@ -10,7 +10,7 @@
|
|
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
-#include <sys/syslog.h>
|
|
|
|
+#include <syslog.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
2021-01-07 14:55:35 +01:00
|
|
|
@@ -28,7 +28,7 @@
|
|
|
|
/* Current limitation of Linux network device ioctl(2) interface */
|
|
|
|
#define MAC_ADDRESS_MAX_LENGTH (sizeof(((struct ifreq *)0)->ifr_hwaddr.sa_data))
|
2019-03-02 13:52:50 +01:00
|
|
|
|
2021-01-07 14:55:35 +01:00
|
|
|
-static const char default_conf[] = "/etc/mactab";
|
|
|
|
+static const char default_conf[] = "@TERMUX_PREFIX@/etc/mactab";
|
|
|
|
static const char *fname = default_conf;
|
|
|
|
static int use_syslog;
|
|
|
|
static int ctl_sk = -1;
|