summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJasper Verschueren <[email protected]>2018-10-10 09:40:03 +0200
committerDirk Ziegelmeier <[email protected]>2018-11-13 12:17:36 +0100
commit3043d9d023c96deeccaeb21a135c34e2a89a65ab (patch)
tree378bc9f6b8f32a686d08bc21d5f4068e79e2e9d6 /test
parent1a10a942f22c5d139573c5a4b68431a57ea47d30 (diff)
mDNS: move domain related functions and output related funtions
mDNS.c needed to become cleaner. Domain related functions are moved to the mdns_domain.c util module. The output related functions are split off (clear separation between defining the packet and generating the packet). The output functions can now be found in mdns_out.c. mDNS move probe question packet generation to mdns_send_outpacket The probe any questions were added to the pbuf in the send_probe routine. It is better if we move all pbuf generation to the output function so later on packets can be delayed etc. keep it all in one place. mDNS: move legacy question generation to mdns_send_outpacket It's better to do the pbuf generation in one place. Especially important for message delaying etc. mDNS take out domain related functionality and put in other file. The mDNS file is getting very big and a lot still needs to be added. For clarity reasons it's better to split these domain functions from the main mDNS file. mDNS split off output related functionality and put in other file A lot of functions are only needed for the generation of the pbuf, by separating them into another file we clean up the mdns file. We only need the mdns_send_outpacket function as interface. Packet definition is now completely separated from packet generation.
Diffstat (limited to 'test')
-rw-r--r--test/unit/mdns/test_mdns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/mdns/test_mdns.c b/test/unit/mdns/test_mdns.c
index 63851637..5a630f47 100644
--- a/test/unit/mdns/test_mdns.c
+++ b/test/unit/mdns/test_mdns.c
@@ -34,6 +34,7 @@
#include "lwip/pbuf.h"
#include "lwip/apps/mdns.h"
+#include "lwip/apps/mdns_domain.h"
#include "lwip/apps/mdns_priv.h"
START_TEST(readname_basic)