samples: net: dumb_http_server: Add zero configuration

Adds zero configuration based on LLMNR. This should be working in
Windows out of the box, zephyr can be accessed with http://zephyr/.
Can be combined with netusb configuration (RNDIS is supported in
Windows).

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2019-10-03 15:46:39 +03:00 committed by Jukka Rissanen
commit 3c08b27ddf
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# Add hostname
CONFIG_NET_HOSTNAME_ENABLE=y
# IPv4 autoconfiguration
CONFIG_NET_IPV4_AUTO=y
# Remove static IP configuration
CONFIG_NET_CONFIG_SETTINGS=n
# Add LLMNR responder
CONFIG_LLMNR_RESPONDER=y

View file

@ -21,3 +21,8 @@ tests:
harness: net
extra_args: OVERLAY_CONFIG="overlay-netusb.conf"
tags: usb
sample.net.sockets.dumb_http_server.netusb_zeroconf:
depends_on: usb_device
harness: net
extra_args: OVERLAY_CONFIG="overlay-netusb.conf;overlay-zeroconf.conf"
tags: usb