Skip to content

Commit 3c08b27

Browse files
finikorgjukkar
authored andcommitted
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 <[email protected]>
1 parent a080154 commit 3c08b27

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Add hostname
2+
CONFIG_NET_HOSTNAME_ENABLE=y
3+
4+
# IPv4 autoconfiguration
5+
CONFIG_NET_IPV4_AUTO=y
6+
7+
# Remove static IP configuration
8+
CONFIG_NET_CONFIG_SETTINGS=n
9+
10+
# Add LLMNR responder
11+
CONFIG_LLMNR_RESPONDER=y

samples/net/sockets/dumb_http_server/sample.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ tests:
2121
harness: net
2222
extra_args: OVERLAY_CONFIG="overlay-netusb.conf"
2323
tags: usb
24+
sample.net.sockets.dumb_http_server.netusb_zeroconf:
25+
depends_on: usb_device
26+
harness: net
27+
extra_args: OVERLAY_CONFIG="overlay-netusb.conf;overlay-zeroconf.conf"
28+
tags: usb

0 commit comments

Comments
 (0)