/* main.c - mDNS responder */ /* * Copyright (c) 2017 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include LOG_MODULE_REGISTER(net_mdns_responder_sample, LOG_LEVEL_DBG); #include #include #include "net_sample_common.h" extern void service(void); /* * Note that mDNS support requires no application interaction with zephyr, * beyond optional runtime hostname configuration calls and setting * CONFIG_MDNS_RESPONDER=y. * * The service() function provides an echo server to make it possible to * verify that the IP address resolved by mDNS is the system that this * code is running upon. */ int main(void) { init_vlan(); wait_for_network(); LOG_INF("Waiting mDNS queries..."); service(); return 0; }