This is mostly useful for hacking, as a way to quickly determine from the command-line
how odhcpd has been built. But I also plan to use it in LuCI [1].
[1] https://github.com/openwrt/luci/blob/master/modules/luci-base/root/usr/share/rpcd/ucode/luci
Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/268
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
static void print_usage(const char *app)
{
printf("== %s Usage ==\n"
+ "Features: ra ndp dhcpv6"
+#ifdef DHCPV4_SUPPORT
+ " dhcpv4"
+#else
+ " no-dhcpv4"
+#endif /* DHCPV4_SUPPORT */
+#ifdef UBUS
+ " ubus"
+#else
+ " no-ubus"
+#endif /* UBUS */
+#ifdef EXT_CER_ID
+ " cer"
+#else
+ " no-cer"
+#endif /* EXT_CER_ID */
+ "\n"
"\n"
" -c <path> Use an alternative configuration file\n"
" -l <int> Specify log level 0..7 (default %d)\n"