From: Alan T. DeKok Date: Tue, 11 Jul 2023 16:28:53 +0000 (-0400) Subject: process tests don't need to listen on the network X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0942ad98563fe114f8a34850ada8977b08b9d1a;p=thirdparty%2Ffreeradius-server.git process tests don't need to listen on the network --- diff --git a/src/tests/process/dhcpv4/server.conf b/src/tests/process/dhcpv4/server.conf index 4020d5e66a9..99802497f0e 100644 --- a/src/tests/process/dhcpv4/server.conf +++ b/src/tests/process/dhcpv4/server.conf @@ -36,31 +36,14 @@ policy { } modules { - dhcpv4 { - ipaddr = 127.0.0.1 - # port = 68 - # interface = eth0 - # max_packet_size = 576 - # send_buff = 1048576 - } } -# -# This virtual server is chosen for processing requests when using: -# -# radiusd -Xd src/tests/ -i 127.0.0.1 -p 12340 -n test -# server dhcpv4 { namespace = dhcpv4 + listen { type = Discover type = Request - transport = udp - udp { - ipaddr = 127.0.0.1 - port = 67 - broadcast = no - } } recv Discover { diff --git a/src/tests/process/dhcpv6/server.conf b/src/tests/process/dhcpv6/server.conf index 175b3e95a42..e812b45ab6a 100644 --- a/src/tests/process/dhcpv6/server.conf +++ b/src/tests/process/dhcpv6/server.conf @@ -35,30 +35,13 @@ policy { $INCLUDE ${raddb}/policy.d/control } -# -# This virtual server is chosen for processing requests when using: -# -# radiusd -Xd src/tests/ -i 127.0.0.1 -p 12340 -n test -# server dhcpv6 { namespace = dhcpv6 - all_dhcp_servers_and_relays = FF02::1:2 - interface = eth0 - port = 547 - listen local_network { type = Request type = Solicit type = Information-Request - - transport = udp - - udp { - ipaddr = 2001:db8:: - port = ${...port} - interface = ${...interface} - } } dhcpv6 {