]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: accepts `-u` option to specify control socket
authorVincent Bernat <vincent.bernat@dailymotion.com>
Fri, 8 Nov 2013 13:23:39 +0000 (14:23 +0100)
committerVincent Bernat <vincent.bernat@dailymotion.com>
Fri, 8 Nov 2013 13:23:39 +0000 (14:23 +0100)
Fix: #48.

src/client/lldpcli.c

index c29853b49eb9d41d994cd13f9bbfd657c65f12fc..8d96fd067e87f8df26364b6d1bb2017c99e7f81e 100644 (file)
@@ -411,7 +411,7 @@ main(int argc, char *argv[])
        int ch, debug = 1, rc = EXIT_FAILURE;
        const char *fmt = "plain";
        lldpctl_conn_t *conn = NULL;
-       const char *options = is_lldpctl(argv[0])?"hdvf:":"hdsvf:c:";
+       const char *options = is_lldpctl(argv[0])?"hdvf:":"hdsvf:c:u:";
 
        const char *ctlname = lldpctl_get_default_transport();
        int gotinputs = 0;