From: Vincent Bernat Date: Fri, 23 Apr 2010 22:01:01 +0000 (+0200) Subject: Add an entry to the manual page for -S option. X-Git-Tag: 0.5.1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0765b92dd3573d2ce97068b375331264e60be2b9;p=thirdparty%2Flldpd.git Add an entry to the manual page for -S option. --- diff --git a/man/lldpd.8 b/man/lldpd.8 index a4c5fc35..71ca806b 100644 --- a/man/lldpd.8 +++ b/man/lldpd.8 @@ -22,6 +22,7 @@ .Sh SYNOPSIS .Nm .Op Fl dvxcseikl +.Op Fl S Ar description .Op Fl X Ar socket .Op Fl m Ar management .Op Fl M Ar class @@ -65,6 +66,12 @@ option, do not set it. Disable advertising of kernel release, version and machine. Kernel name (ie: Linux) will still be shared, and Inventory software version will be set to 'Unknown'. +.It Fl S Ar description +Override system description with the provided description. The default +description is the kernel name, the node name, the kernel version, the +build date and the architecture (except if you use the +.Fl k +flag described above). .It Fl x Enable SNMP subagent. With this option, diff --git a/src/lldpd.c b/src/lldpd.c index 8db63ea3..cc0d18cd 100644 --- a/src/lldpd.c +++ b/src/lldpd.c @@ -106,6 +106,7 @@ usage(void) fprintf(stderr, "-d Do not daemonize.\n"); fprintf(stderr, "-i Disable LLDP-MED inventory TLV transmission.\n"); fprintf(stderr, "-k Disable advertising of kernel release, version, machine.\n"); + fprintf(stderr, "-S descr Override the default system description.\n:"); fprintf(stderr, "-m IP Specify the management address of this system.\n"); #ifdef ENABLE_LLDPMED fprintf(stderr, "-M class Enable emission of LLDP-MED frame. 'class' should be one of:\n");