From 0765b92dd3573d2ce97068b375331264e60be2b9 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 24 Apr 2010 00:01:01 +0200 Subject: [PATCH] Add an entry to the manual page for -S option. --- man/lldpd.8 | 7 +++++++ src/lldpd.c | 1 + 2 files changed, 8 insertions(+) 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"); -- 2.39.5