lldp: move lldp_receive_packet() to lldp-internal.c
authorBeniamino Galvani <bgalvani@redhat.com>
Thu, 24 Sep 2015 21:08:22 +0000 (23:08 +0200)
committerBeniamino Galvani <bgalvani@redhat.com>
Fri, 2 Oct 2015 15:39:22 +0000 (17:39 +0200)
commit0037c2dc54ca5bc5a3ec428619ff136066467565
treeb285ff69d6dec75d3e9ebe18b4dee35f119a3286
parent564cabd46c7c1532ad4d562bf8332eaed49ac201
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.
src/libsystemd-network/lldp-internal.c
src/libsystemd-network/lldp-internal.h
src/libsystemd-network/lldp-network.c
src/libsystemd-network/lldp-network.h
src/libsystemd-network/lldp-port.c