Closes #18.
.Nd control LLDP daemon
.Sh SYNOPSIS
.Nm
-.Op Fl d
-.Op Fl a
+.Op Fl adv
.Op Fl L Ar location
.Op Fl P Ar policy
.Op Fl O Ar poe
.Bl -tag -width Ds
.It Fl d
Enable more debugging information.
+.It Fl v
+Show
+.Nm
+version.
.It Fl a
Display all remote ports, including those hidden by the smart filter.
.It Fl f Ar format
.Nd LLDP daemon
.Sh SYNOPSIS
.Nm
-.Op Fl dxcseiklr
+.Op Fl dxcseiklrv
.Op Fl S Ar description
.Op Fl P Ar platform
.Op Fl X Ar socket
Filter neighbors. See section
.Sx FILTERING NEIGHBORS
for details.
+.It Fl v
+Show
+.Nm
+version.
.El
.Sh FILTERING NEIGHBORS
In a heterogeneous network, you may see several different hosts on the
# define __progname "lldpctl"
#endif
-#define LLDPCTL_ARGS "hdaf:L:P:O:o:"
+#define LLDPCTL_ARGS "hdvaf:L:P:O:o:"
static void
usage(void)
case 'd':
debug++;
break;
+ case 'v':
+ fprintf(stdout, "%s\n", PACKAGE_VERSION);
+ exit(0);
+ break;
case 'a':
hidden = 1;
break;
char *cidp = NULL;
char *interfaces = NULL;
char *popt, opts[] =
- "H:hkrdxX:m:4:6:I:C:p:M:P:S:i@ ";
+ "H:vhkrdxX:m:4:6:I:C:p:M:P:S:i@ ";
int i, found, advertise_version = 1;
#ifdef ENABLE_LLDPMED
int lldpmed = 0, noinventory = 0;
case 'h':
usage();
break;
+ case 'v':
+ fprintf(stdout, "%s\n", PACKAGE_VERSION);
+ exit(0);
+ break;
case 'd':
debug++;
break;