]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Write services needed for pyrad
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 25 Dec 2023 10:21:00 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 17:48:44 +0000 (19:48 +0200)
pyrad does an internal call to getaddrinfo with the service "www".
Make sure this service is known by writing an appropriate
/etc/services file.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
tests/hwsim/vm/inside.sh

index d813cf065f7483a1eb83b89956ecefa27bef0ab5..38c5284d9c2e2a0facf459cdf221e4f7d4159d68 100755 (executable)
@@ -93,6 +93,11 @@ tcp     6       TCP
 udp     17      UDP
 ipv6-icmp 58   IPv6-ICMP
 EOF
+# for pyrad
+cat > /etc/services <<EOF
+http            80/tcp          www www-http
+http            80/udp          www www-http
+EOF
 
 # we may need /etc/alternatives, at least on Debian-based systems
 ln -s /tmp/etc/alternatives /etc/