]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: when Dot3 feature is disabled, MFS is not transmitted
authorVincent Bernat <bernat@luffy.cx>
Tue, 3 Apr 2012 11:37:49 +0000 (13:37 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 3 Apr 2012 12:26:25 +0000 (14:26 +0200)
tests/check_lldp.c

index 0316960e36b767853eacda762976e596dc398277..fd3a0211bfc3bcf94eaeb8fe1e6b823bda6fc210 100644 (file)
@@ -19,7 +19,9 @@ check_received_port(
        fail_unless(memcmp(rport->p_id, sport->p_id,
                           rport->p_id_len) == 0);
        ck_assert_str_eq(rport->p_descr, sport->p_descr);
+#ifdef ENABLE_DOT3
        ck_assert_int_eq(rport->p_mfs, sport->p_mfs);
+#endif
        return;
 }