From d88003ff0288e4bd86ad79467676253952473326 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 19 Oct 2019 22:02:47 +0200 Subject: [PATCH] test: add tests for 802.3BT additions --- src/lib/atoms/dot3.c | 6 ++--- tests/integration/data/8023bt.pcap | Bin 0 -> 448 bytes tests/integration/test_pcap.py | 42 +++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 tests/integration/data/8023bt.pcap diff --git a/src/lib/atoms/dot3.c b/src/lib/atoms/dot3.c index 97a959dd..a9e456df 100644 --- a/src/lib/atoms/dot3.c +++ b/src/lib/atoms/dot3.c @@ -183,9 +183,9 @@ static struct atom_map port_dot3_power_type_ext_map = { static struct atom_map port_dot3_power_pd_load_map = { .key = lldpctl_k_dot3_power_pd_load, .map = { - { 0, "PD is single- or dual-signature and power on the modes is not " - "electrically isolated." }, - { 1, "PD is dual-signature and power on the modes is electrically " + { 0, "PD is single- or dual-signature and power is not " + "electrically isolated" }, + { 1, "PD is dual-signature and power is electrically " "isolated" }, }, }; diff --git a/tests/integration/data/8023bt.pcap b/tests/integration/data/8023bt.pcap new file mode 100644 index 0000000000000000000000000000000000000000..932b593f0266a78881beffc5e633d072a990847f GIT binary patch literal 448 zc-lpg%Syvg5QgW(#7hw?>QV*W5yQhe zZ$+*z+~}x)HCMQPFBZ77h|W;+59VssW_kNqiVy630ryxG^Pq#)ieZ%utAM-qj$L(Z zbQ&AY{pzlbxl_87&omkJI-I&bI^8e~B2ht4h_GUsNs<`D2@M*wO(D7XkI2-5uov+& zPhgJb(JHU4=%u1n##RsiHgM#OtQ{9{vqKGuw?po;6Kr-FE*ABzuCGhlDp#!4fu>Ev zh>g$H`I+0|!WJHjI!p}jG^N5EsMC`gdAcWLM4oyX(oyI?6CmjX%w)+(A7CM!m#LB^ b+N|