summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4
diff options
context:
space:
mode:
authorChris K <chrisko@google.com>2019-03-29 13:45:43 -0700
committerChris K <c@chrisko.ch>2019-03-29 16:36:05 -0700
commit83151f88146676ea6a0e60d52521a0bc342af746 (patch)
treeba83fd721509161173b70d3f87eb932a63c643a3 /dhcpv4/server4
parentece7f80857548e7f82ff7cff9204e3a48b444373 (diff)
server4 test: pick ports > 32k
Diffstat (limited to 'dhcpv4/server4')
-rw-r--r--dhcpv4/server4/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go
index a6895d2..68d0cc3 100644
--- a/dhcpv4/server4/server_test.go
+++ b/dhcpv4/server4/server_test.go
@@ -26,7 +26,7 @@ func randPort() int {
// can't use port 0 with raw sockets, so until we implement
// a non-raw-sockets client for non-static ports, we have to
// deal with this "randomness"
- return 1024 + rand.Intn(65536-1024)
+ return 32*1024 + rand.Intn(65536-32*1024)
}
// DORAHandler is a server handler suitable for DORA transactions