]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: add a note about command-line options
authorVincent Bernat <vincent@bernat.im>
Wed, 9 Apr 2014 07:56:38 +0000 (09:56 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 9 Apr 2014 07:56:38 +0000 (09:56 +0200)
lldpcli should be preferred for new options.

src/daemon/lldpd.c

index 2fe8383d815b06a1103bad9f51acc08637357316..4276f4ee399332364e14a793ebda1f2b9208b707 100644 (file)
@@ -1273,6 +1273,9 @@ lldpd_main(int argc, char *argv[], char *envp[])
        char *mgmtp = NULL;
        char *cidp = NULL;
        char *interfaces = NULL;
+       /* We do not want more options here. Please add them in lldpcli instead
+        * unless there is a very good reason. Most command-line options will
+        * get deprecated at some point. */
        char *popt, opts[] =
                "H:vhkrdD:xX:m:u:4:6:I:C:p:M:P:S:iL:@                    ";
        int i, found, advertise_version = 1;