summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-port.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-09-24 23:08:22 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2015-10-02 17:39:22 +0200
commit0037c2dc54ca5bc5a3ec428619ff136066467565 (patch)
treeb285ff69d6dec75d3e9ebe18b4dee35f119a3286 /src/libsystemd-network/lldp-port.c
parent564cabd46c7c1532ad4d562bf8332eaed49ac201 (diff)
lldp: move lldp_receive_packet() to lldp-internal.c
In order to implement tests for the LLDP state machine, we need to mock lldp_network_bind_raw_socket(). Move the other function lldp_receive_packet() to another file so that we can replace the first function with a custom one and keep the second one.
Diffstat (limited to 'src/libsystemd-network/lldp-port.c')
-rw-r--r--src/libsystemd-network/lldp-port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/lldp-port.c b/src/libsystemd-network/lldp-port.c
index 97fe7c1dd3..7486b4c38f 100644
--- a/src/libsystemd-network/lldp-port.c
+++ b/src/libsystemd-network/lldp-port.c
@@ -23,6 +23,7 @@
#include "async.h"
#include "lldp-port.h"
#include "lldp-network.h"
+#include "lldp-internal.h"
int lldp_port_start(lldp_port *p) {
int r;