]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report compiled in features in --version.
authorRoy Marples <roy@marples.name>
Tue, 27 Sep 2016 10:34:29 +0000 (10:34 +0000)
committerRoy Marples <roy@marples.name>
Tue, 27 Sep 2016 10:34:29 +0000 (10:34 +0000)
dhcpcd.c

index d9f3e13e7f5bcfa005cc383432fb62f70e08a9c1..8f1862b254418295494920baba0f2ef7da7aa6ed 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1455,6 +1455,23 @@ main(int argc, char **argv)
                        return EXIT_SUCCESS;
                } else if (strcmp(argv[1], "--version") == 0) {
                        printf(""PACKAGE" "VERSION"\n%s\n", dhcpcd_copyright);
+                       printf("Compiled in features:"
+#ifdef INET
+                       " INET"
+#endif
+#ifdef IPV4LL
+                       " IPv4LL"
+#endif
+#ifdef INET6
+                       " INET6"
+#endif
+#ifdef DHCP6
+                       " DHCPv6"
+#endif
+#ifdef AUTH
+                       " AUTH"
+#endif
+                       "\n");
                        return EXIT_SUCCESS;
                }
        }