mirror of https://github.com/mirror/busybox.git
dumpleases: better help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_17_stable
parent
406bd14416
commit
c8a2ab1023
|
@ -1003,14 +1003,14 @@
|
||||||
"Display DHCP leases granted by udhcpd\n" \
|
"Display DHCP leases granted by udhcpd\n" \
|
||||||
"\nOptions:" \
|
"\nOptions:" \
|
||||||
IF_LONG_OPTS( \
|
IF_LONG_OPTS( \
|
||||||
"\n -f,--file=FILE Leases file to load" \
|
"\n -f,--file=FILE Lease file" \
|
||||||
"\n -r,--remaining Interpret lease times as time remaining" \
|
"\n -r,--remaining Show remaining time" \
|
||||||
"\n -a,--absolute Interpret lease times as expire time" \
|
"\n -a,--absolute Show expiration time" \
|
||||||
) \
|
) \
|
||||||
IF_NOT_LONG_OPTS( \
|
IF_NOT_LONG_OPTS( \
|
||||||
"\n -f FILE Leases file to load" \
|
"\n -f FILE Lease file" \
|
||||||
"\n -r Interpret lease times as time remaining" \
|
"\n -r Show remaining time" \
|
||||||
"\n -a Interpret lease times as expire time" \
|
"\n -a Show expiration time" \
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1042,8 +1042,8 @@
|
||||||
IF_FEATURE_FANCY_ECHO( "\n" \
|
IF_FEATURE_FANCY_ECHO( "\n" \
|
||||||
"\nOptions:" \
|
"\nOptions:" \
|
||||||
"\n -n Suppress trailing newline" \
|
"\n -n Suppress trailing newline" \
|
||||||
"\n -e Interpret backslash-escaped characters (i.e., \\t=tab)" \
|
"\n -e Interpret backslash escapes (i.e., \\t=tab)" \
|
||||||
"\n -E Disable interpretation of backslash-escaped characters" \
|
"\n -E Don't interpret backslash escapes (default)" \
|
||||||
)
|
)
|
||||||
#define echo_example_usage \
|
#define echo_example_usage \
|
||||||
"$ echo \"Erik is cool\"\n" \
|
"$ echo \"Erik is cool\"\n" \
|
||||||
|
|
|
@ -71,11 +71,11 @@ typedef uint32_t leasetime_t;
|
||||||
typedef int32_t signed_leasetime_t;
|
typedef int32_t signed_leasetime_t;
|
||||||
|
|
||||||
struct dyn_lease {
|
struct dyn_lease {
|
||||||
/* "nip": IP in network order */
|
|
||||||
/* Unix time when lease expires. Kept in memory in host order.
|
/* Unix time when lease expires. Kept in memory in host order.
|
||||||
* When written to file, converted to network order
|
* When written to file, converted to network order
|
||||||
* and adjusted (current time subtracted) */
|
* and adjusted (current time subtracted) */
|
||||||
leasetime_t expires;
|
leasetime_t expires;
|
||||||
|
/* "nip": IP in network order */
|
||||||
uint32_t lease_nip;
|
uint32_t lease_nip;
|
||||||
/* We use lease_mac[6], since e.g. ARP probing uses
|
/* We use lease_mac[6], since e.g. ARP probing uses
|
||||||
* only 6 first bytes anyway. We check received dhcp packets
|
* only 6 first bytes anyway. We check received dhcp packets
|
||||||
|
|
Loading…
Reference in New Issue