]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Fix mixup between single and dual signature in strings. (#792)
authorKenneth Ekman <bk_ekman@hotmail.com>
Sat, 20 Jun 2026 11:48:44 +0000 (13:48 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jun 2026 11:48:44 +0000 (13:48 +0200)
* Fix mixup between single and dual signature in strings.

Change-Id: I9ac304342915bf144983b7bff59efdf85ba4f76a

* tests: fix failing pcap integration test

Change-Id: I28fe5ced8cd77dfa40ffb8109dcb9f651256210d

---------

Co-authored-by: Kenneth Ekman <kenneen@axis.com>
src/lib/atoms/dot3.c
tests/integration/test_pcap.py

index f3f490ae038af5fd2123c256c94682bb23f66758..dd0ef015d25ac89a28744924fdaff6233cb5f321 100644 (file)
@@ -77,8 +77,8 @@ static struct atom_map port_dot3_power_pse_status_map = {
        .map = {
                { 0, "unknown" },
                { 1, "2-pair powering" },
-               { 2, "4-pair powering dual-signature PD" },
-               { 3, "4-pair powering single-signature PD" },
+               { 2, "4-pair powering single-signature PD" },
+               { 3, "4-pair powering dual-signature PD" },
                { 0, NULL },
        },
 };
@@ -87,9 +87,9 @@ static struct atom_map port_dot3_power_pd_status_map = {
        .key = lldpctl_k_dot3_power_pd_status,
        .map = {
                { 0, "unknown" },
-               { 1, "2-pair powered PD" },
-               { 2, "4-pair powered dual-signature PD" },
-               { 3, "4-pair powered single-signature PD" },
+               { 1, "Powered single-signature PD" },
+               { 2, "2-pair powered dual-signature PD" },
+               { 3, "4-pair powered dual-signature PD" },
                { 0, NULL },
        },
 };
index ef8ff01cd7b3f06dbcf3b172e4cc712846de98cd..053dcc4887d66875c9f1fcf0140d5225dcf0641a 100644 (file)
@@ -75,7 +75,7 @@ def test_8023bt(lldpd1, lldpcli, namespaces):
             "lldp.eth0.port.power.requested-b": "35500",
             "lldp.eth0.port.power.allocated-a": "25500",
             "lldp.eth0.port.power.allocated-b": "25500",
-            "lldp.eth0.port.power.pse-powering-status": "4-pair powering single-signature PD",
+            "lldp.eth0.port.power.pse-powering-status": "4-pair powering dual-signature PD",
             "lldp.eth0.port.power.pd-powering-status": "unknown",
             "lldp.eth0.port.power.power-pairs-ext": "both alternatives",
             "lldp.eth0.port.power.power-class-ext-a": "class 4",