[PATCH 03/12] hwsim: write services needed for pyrad

Andrei Otcheretianski andrei.otcheretianski at intel.com
Mon Dec 25 02:21:00 PST 2023


From: Benjamin Berg <benjamin.berg at intel.com>

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 at intel.com>
---
 tests/hwsim/vm/inside.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index d813cf065f..38c5284d9c 100755
--- a/tests/hwsim/vm/inside.sh
+++ b/tests/hwsim/vm/inside.sh
@@ -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/
-- 
2.43.0




More information about the Hostap mailing list