]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
List MDI/PSE and MDI/PD as an available LLDP-MED capability for the chassis.
authorVincent Bernat <bernat@luffy.cx>
Sat, 27 Mar 2010 00:06:33 +0000 (01:06 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 3 Apr 2010 21:10:24 +0000 (23:10 +0200)
Add Network Policy as well which was left behind.

src/lldpd.c

index 72f2994e27c2d666c204539f5633d2894d016240..03bfb7a8e488e3ebc61e5dd4803d26316266661d 100644 (file)
@@ -967,7 +967,8 @@ lldpd_main(int argc, char *argv[])
                        lchassis->c_cap_available |= LLDP_CAP_TELEPHONE;
                lchassis->c_med_type = lldpmed;
                lchassis->c_med_cap_available = LLDPMED_CAP_CAP |
-                   LLDPMED_CAP_IV | LLDPMED_CAP_LOCATION;
+                   LLDPMED_CAP_IV | LLDPMED_CAP_LOCATION |
+                   LLDPMED_CAP_POLICY | LLDPMED_CAP_MDI_PSE | LLDPMED_CAP_MDI_PD;
                cfg->g_noinventory = noinventory;
        } else
                cfg->g_noinventory = 1;