diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-20 18:06:23 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-20 18:06:23 +0100 |
| commit | 87fa216e1e388c537cda2cff126eea816a4135ac (patch) | |
| tree | bfbf5781bd9b33525029c162d59902ac438ea2a4 /include | |
| parent | 0f62c4d065bc7fa9d3de52a8482bf48ecfd18ecf (diff) | |
| download | busybox-w32-87fa216e1e388c537cda2cff126eea816a4135ac.tar.gz busybox-w32-87fa216e1e388c537cda2cff126eea816a4135ac.tar.bz2 busybox-w32-87fa216e1e388c537cda2cff126eea816a4135ac.zip | |
udhcpc: make it possible to disable vendor id; improve help text
function old new delta
init_packet 135 139 +4
packed_usage 26789 26786 -3
alloc_dhcp_option 67 63 -4
udhcpc_main 2467 2447 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-27) Total: -23 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.h | 80 |
1 files changed, 41 insertions, 39 deletions
diff --git a/include/usage.h b/include/usage.h index 093efc8c4..a7855cdf4 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -4810,66 +4810,68 @@ | |||
| 4810 | "Adjust filesystem options on ext[23] filesystems" | 4810 | "Adjust filesystem options on ext[23] filesystems" |
| 4811 | 4811 | ||
| 4812 | #define udhcpc_trivial_usage \ | 4812 | #define udhcpc_trivial_usage \ |
| 4813 | "[-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \ | 4813 | "[-fbnqvoCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]\n" \ |
| 4814 | " [-p pidfile] [-r IP] [-s script] [-O dhcp-option]..." IF_FEATURE_UDHCP_PORT(" [-P N]") | 4814 | " [-H HOSTNAME] [-c CID] [-V VENDOR] [-O DHCP_OPT]..." IF_FEATURE_UDHCP_PORT(" [-P N]") |
| 4815 | #define udhcpc_full_usage "\n\n" \ | 4815 | #define udhcpc_full_usage "\n" \ |
| 4816 | IF_LONG_OPTS( \ | 4816 | IF_LONG_OPTS( \ |
| 4817 | " -V,--vendorclass=CLASSID Vendor class identifier" \ | 4817 | "\n -i,--interface IFACE Interface to use (default eth0)" \ |
| 4818 | "\n -i,--interface=INTERFACE Interface to use (default eth0)" \ | 4818 | "\n -p,--pidfile FILE Create pidfile" \ |
| 4819 | "\n -H,-h,--hostname=HOSTNAME Client hostname" \ | 4819 | "\n -r,--request IP IP address to request" \ |
| 4820 | "\n -c,--clientid=CLIENTID Client identifier" \ | 4820 | "\n -s,--script PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ |
| 4821 | "\n -C,--clientid-none Suppress default client identifier" \ | 4821 | "\n -t,--retries N Send up to N discover packets" \ |
| 4822 | "\n -p,--pidfile=FILE Create pidfile" \ | 4822 | "\n -T,--timeout N Pause between packets (default 3 seconds)" \ |
| 4823 | "\n -r,--request=IP IP address to request" \ | 4823 | "\n -A,--tryagain N Wait N seconds (default 20) after failure" \ |
| 4824 | "\n -s,--script=FILE Run FILE at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ | 4824 | "\n -O,--request-option OPT Request DHCP option OPT (cumulative)" \ |
| 4825 | "\n -t,--retries=N Send up to N discover packets" \ | 4825 | "\n -o,--no-default-options Don't request any options (unless -O is given)" \ |
| 4826 | "\n -T,--timeout=N Pause between packets (default 3 seconds)" \ | 4826 | "\n -f,--foreground Run in foreground" \ |
| 4827 | "\n -A,--tryagain=N Wait N seconds (default 20) after failure" \ | ||
| 4828 | "\n -O,--request-option=OPT Request DHCP option OPT (cumulative)" \ | ||
| 4829 | "\n -o,--no-default-options Don't request any options (unless -O is also given)" \ | ||
| 4830 | "\n -f,--foreground Run in foreground" \ | ||
| 4831 | USE_FOR_MMU( \ | 4827 | USE_FOR_MMU( \ |
| 4832 | "\n -b,--background Background if lease is not immediately obtained" \ | 4828 | "\n -b,--background Background if lease is not obtained" \ |
| 4833 | ) \ | 4829 | ) \ |
| 4834 | "\n -S,--syslog Log to syslog too" \ | 4830 | "\n -S,--syslog Log to syslog too" \ |
| 4835 | "\n -n,--now Exit with failure if lease is not immediately obtained" \ | 4831 | "\n -n,--now Exit if lease is not obtained" \ |
| 4836 | "\n -q,--quit Quit after obtaining lease" \ | 4832 | "\n -q,--quit Exit after obtaining lease" \ |
| 4837 | "\n -R,--release Release IP on quit" \ | 4833 | "\n -R,--release Release IP on exit" \ |
| 4838 | IF_FEATURE_UDHCP_PORT( \ | 4834 | IF_FEATURE_UDHCP_PORT( \ |
| 4839 | "\n -P,--client-port N Use port N instead of default 68" \ | 4835 | "\n -P,--client-port N Use port N (default 68)" \ |
| 4840 | ) \ | 4836 | ) \ |
| 4841 | IF_FEATURE_UDHCPC_ARPING( \ | 4837 | IF_FEATURE_UDHCPC_ARPING( \ |
| 4842 | "\n -a,--arping Use arping to validate offered address" \ | 4838 | "\n -a,--arping Use arping to validate offered address" \ |
| 4843 | ) \ | 4839 | ) \ |
| 4840 | "\n -F,--fqdn NAME Ask server to update DNS mapping for NAME" \ | ||
| 4841 | "\n -H,-h,--hostname NAME Send NAME as client hostname (default none)" \ | ||
| 4842 | "\n -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')" \ | ||
| 4843 | "\n -c,--clientid CLIENTID Client identifier (default own MAC)" \ | ||
| 4844 | "\n -C,--clientid-none Don't send client identifier" \ | ||
| 4844 | ) \ | 4845 | ) \ |
| 4845 | IF_NOT_LONG_OPTS( \ | 4846 | IF_NOT_LONG_OPTS( \ |
| 4846 | " -V CLASSID Vendor class identifier" \ | 4847 | "\n -i IFACE Interface to use (default eth0)" \ |
| 4847 | "\n -i INTERFACE Interface to use (default: eth0)" \ | ||
| 4848 | "\n -H,-h HOSTNAME Client hostname" \ | ||
| 4849 | "\n -c CLIENTID Client identifier" \ | ||
| 4850 | "\n -C Suppress default client identifier" \ | ||
| 4851 | "\n -p FILE Create pidfile" \ | 4848 | "\n -p FILE Create pidfile" \ |
| 4852 | "\n -r IP IP address to request" \ | 4849 | "\n -r IP IP address to request" \ |
| 4853 | "\n -s FILE Run FILE at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ | 4850 | "\n -s PROG Run PROG at DHCP events (default "CONFIG_UDHCPC_DEFAULT_SCRIPT")" \ |
| 4854 | "\n -t N Send up to N request packets" \ | 4851 | "\n -t N Send up to N discover packets" \ |
| 4855 | "\n -T N Try to get a lease for N seconds (default 3)" \ | 4852 | "\n -T N Pause between packets (default 3 seconds)" \ |
| 4856 | "\n -A N Wait N seconds (default 20) after failure" \ | 4853 | "\n -A N Wait N seconds (default 20) after failure" \ |
| 4857 | "\n -O OPT Request DHCP option OPT (cumulative)" \ | 4854 | "\n -O OPT Request DHCP option OPT (cumulative)" \ |
| 4858 | "\n -o Don't request any options (unless -O is also given)" \ | 4855 | "\n -o Don't request any options (unless -O is given)" \ |
| 4859 | "\n -f Run in foreground" \ | 4856 | "\n -f Run in foreground" \ |
| 4860 | USE_FOR_MMU( \ | 4857 | USE_FOR_MMU( \ |
| 4861 | "\n -b Background if lease is not immediately obtained" \ | 4858 | "\n -b Background if lease is not obtained" \ |
| 4862 | ) \ | 4859 | ) \ |
| 4863 | "\n -S Log to syslog too" \ | 4860 | "\n -S Log to syslog too" \ |
| 4864 | "\n -n Exit with failure if lease is not immediately obtained" \ | 4861 | "\n -n Exit if lease is not obtained" \ |
| 4865 | "\n -q Quit after obtaining lease" \ | 4862 | "\n -q Exit after obtaining lease" \ |
| 4866 | "\n -R Release IP on quit" \ | 4863 | "\n -R Release IP on exit" \ |
| 4867 | IF_FEATURE_UDHCP_PORT( \ | 4864 | IF_FEATURE_UDHCP_PORT( \ |
| 4868 | "\n -P N Use port N instead of default 68" \ | 4865 | "\n -P N Use port N (default 68)" \ |
| 4869 | ) \ | 4866 | ) \ |
| 4870 | IF_FEATURE_UDHCPC_ARPING( \ | 4867 | IF_FEATURE_UDHCPC_ARPING( \ |
| 4871 | "\n -a Use arping to validate offered address" \ | 4868 | "\n -a Use arping to validate offered address" \ |
| 4872 | ) \ | 4869 | ) \ |
| 4870 | "\n -F NAME Ask server to update DNS mapping for NAME" \ | ||
| 4871 | "\n -H,-h NAME Send NAME as client hostname (default none)" \ | ||
| 4872 | "\n -V VENDOR Vendor identifier (default 'udhcp VERSION')" \ | ||
| 4873 | "\n -c CLIENTID Client identifier (default own MAC)" \ | ||
| 4874 | "\n -C Don't send client identifier" \ | ||
| 4873 | ) | 4875 | ) |
| 4874 | 4876 | ||
| 4875 | #define udhcpd_trivial_usage \ | 4877 | #define udhcpd_trivial_usage \ |
| @@ -4880,7 +4882,7 @@ | |||
| 4880 | "\n -f Run in foreground" \ | 4882 | "\n -f Run in foreground" \ |
| 4881 | "\n -S Log to syslog too" \ | 4883 | "\n -S Log to syslog too" \ |
| 4882 | IF_FEATURE_UDHCP_PORT( \ | 4884 | IF_FEATURE_UDHCP_PORT( \ |
| 4883 | "\n -P N Use port N instead of default 67" \ | 4885 | "\n -P N Use port N (default 67)" \ |
| 4884 | ) | 4886 | ) |
| 4885 | 4887 | ||
| 4886 | #define umount_trivial_usage \ | 4888 | #define umount_trivial_usage \ |
