- remove last reminiscents of IN_BUSYBOX
This commit is contained in:
parent
4470b74e29
commit
5bd2a4b6ce
@ -43,11 +43,11 @@ APPLET_SRC-a+=$(UDHCP-a)
|
|||||||
|
|
||||||
UDHCP_INCLUDES:=$(srcdir)
|
UDHCP_INCLUDES:=$(srcdir)
|
||||||
|
|
||||||
APPLETS_DEFINE-y+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES)
|
APPLETS_DEFINE-y+= -I$(UDHCP_INCLUDES)
|
||||||
APPLETS_DEFINE-a+=-DIN_BUSYBOX -I$(UDHCP_INCLUDES)
|
APPLETS_DEFINE-a+= -I$(UDHCP_INCLUDES)
|
||||||
|
|
||||||
$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
|
$(UDHCP_DIR)$(UDHCP_AR): $(UDHCP_OBJS)
|
||||||
$(do_ar)
|
$(do_ar)
|
||||||
|
|
||||||
$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
|
$(UDHCP_OBJS): $(UDHCP_DIR)%.o : $(srcdir)/%.c
|
||||||
$(compile.c) -DIN_BUSYBOX
|
$(compile.c)
|
||||||
|
@ -44,11 +44,7 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
|
|||||||
|
|
||||||
|
|
||||||
if ((s = socket (PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP))) == -1) {
|
if ((s = socket (PF_PACKET, SOCK_PACKET, htons(ETH_P_ARP))) == -1) {
|
||||||
#ifdef IN_BUSYBOX
|
|
||||||
LOG(LOG_ERR, bb_msg_can_not_create_raw_socket);
|
LOG(LOG_ERR, bb_msg_can_not_create_raw_socket);
|
||||||
#else
|
|
||||||
LOG(LOG_ERR, "Could not open raw socket");
|
|
||||||
#endif
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,27 +23,7 @@
|
|||||||
#define REMAINING 0
|
#define REMAINING 0
|
||||||
#define ABSOLUTE 1
|
#define ABSOLUTE 1
|
||||||
|
|
||||||
|
|
||||||
#ifndef IN_BUSYBOX
|
|
||||||
static void ATTRIBUTE_NORETURN show_usage(void)
|
|
||||||
{
|
|
||||||
printf(
|
|
||||||
"Usage: dumpleases -f <file> -[r|a]\n\n"
|
|
||||||
" -f, --file=FILENAME Leases file to load\n"
|
|
||||||
" -r, --remaining Interepret lease times as time remaining\n"
|
|
||||||
" -a, --absolute Interepret lease times as expire time\n");
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#define show_usage bb_show_usage
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef IN_BUSYBOX
|
|
||||||
int dumpleases_main(int argc, char *argv[])
|
int dumpleases_main(int argc, char *argv[])
|
||||||
#else
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int i, c, mode = REMAINING;
|
int i, c, mode = REMAINING;
|
||||||
@ -71,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
file = optarg;
|
file = optarg;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
show_usage();
|
bb_show_usage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user