projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138879c
)
lldp: set correct state for processing
author
Susant Sahani
<susant@redhat.com>
Thu, 2 Jul 2015 03:30:02 +0000
(09:00 +0530)
committer
Susant 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
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/sd-lldp.c
b/src/libsystemd-network/sd-lldp.c
index fddda97f52c236c35ae5f089864cd4f29a08a4f8..6a2c05185dbf277c2517c2b0d8ac61c3d4febb7d 100644
(file)
--- a/
src/libsystemd-network/sd-lldp.c
+++ b/
src/libsystemd-network/sd-lldp.c
@@
-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));