]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
lldp: set correct state for processing 443/head
authorSusant Sahani <susant@redhat.com>
Thu, 2 Jul 2015 03:30:02 +0000 (09:00 +0530)
committerSusant Sahani <susant@redhat.com>
Thu, 2 Jul 2015 03:32:11 +0000 (09:02 +0530)
ldp_receive_frame after correct processing of the packet the state
should be LLDP_AGENT_RX_WAIT_FOR_FRAME not LLDP_AGENT_RX_UPDATE_INFO.

src/libsystemd-network/sd-lldp.c

index fddda97f52c236c35ae5f089864cd4f29a08a4f8..6a2c05185dbf277c2517c2b0d8ac61c3d4febb7d 100644 (file)
@@ -133,8 +133,6 @@ static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) {
 
         lldp->statistics.stats_frames_in_total ++;
 
-        return 0;
-
  out:
         if (r < 0)
                 log_lldp("Receive frame failed: %s", strerror(-r));