]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Do not try to set media type network policy since its usefulness is
authorVincent Bernat <bernat@luffy.cx>
Sat, 13 Dec 2008 18:34:05 +0000 (19:34 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 13 Dec 2008 18:34:05 +0000 (19:34 +0100)
near zero when not being able to set it differently on each port.
Those kind of information should be set through SNMP.

man/lldpd.8
src/lldpd.c

index d2cad2a767db93622a0d40038a42b90745e86953..32716e68cd21007c9e7c69d0d1d3963062e2bd8c 100644 (file)
@@ -26,7 +26,6 @@
 .Op Fl p Ar probe time
 .Op Fl M Ar class
 .Op Fl L Ar location
-.Op Fl P Ar policy
 .Sh DESCRIPTION
 .Nm
 is a daemon able to receive and send
@@ -209,6 +208,13 @@ where the first digit should be
 .Ar 3
 and the second argument is the ELIN number.
 .El
+.Pp
+Locations set using this option are set for all ports. There is
+currently no way to affect different locations to different
+ports. Using this TLV, network connectivity devices usually advertise
+the location of a class III device. Since it is unlikely that all
+devices are in the same location, the location TLV should be different
+for each port. This is not possible actually.
 .Sh FILES
 .Bl -tag -width "/var/run/lldpd.socketXX" -compact
 .It /var/run/lldpd.socket
index 2cc3bd6c74578bf24287b8fff78534c9228955e9..44d9b7267e10686a34bbcb51d1bdbc5ab8c64f3e 100644 (file)
@@ -1584,7 +1584,7 @@ main(int argc, char *argv[])
        int snmp = 0;
 #endif
        char *mgmtp = NULL;
-       char *popt, opts[] = "vdxm:p:M:iL:P:@                    ";
+       char *popt, opts[] = "vdxm:p:M:iL:@                    ";
        int probe = 0, i, found, vlan = 0;
 #ifdef ENABLE_LLDPMED
        int lldpmed = 0, noinventory = 0;
@@ -1624,7 +1624,6 @@ main(int argc, char *argv[])
                        noinventory = 1;
                        break;
                case 'L':
-               case 'P':
                        /* Handled later */
                        break;
 #else
@@ -1714,8 +1713,6 @@ main(int argc, char *argv[])
                        case 'L':
                                lldpd_parse_location(&cfg->g_lchassis, optarg);
                                break;
-                       case 'P':
-                               break;
                        }
                }
        }