summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/nclient6/client_test.go
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2019-04-29 13:52:22 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2019-04-29 15:44:25 +0100
commit03e9ac918544b248cd2d660195934d7c943cb4d7 (patch)
treea9b43d893419db1d567934dc56f23b2eaaf16e0d /dhcpv6/nclient6/client_test.go
parent5c6ea15a40cc06ac0af833fa3ef883de3f32037b (diff)
[server6] Server should join multicast address
The previous logic was wrong - there's no "listening" on multicast address, the server should listen on the given address, and join the multicast group. This PR fixes it. Also moved the multicast addresses to a common package. Tested with unit/integ tests, and with coredhcp. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv6/nclient6/client_test.go')
-rw-r--r--dhcpv6/nclient6/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/nclient6/client_test.go b/dhcpv6/nclient6/client_test.go
index 49b914e..902c7c5 100644
--- a/dhcpv6/nclient6/client_test.go
+++ b/dhcpv6/nclient6/client_test.go
@@ -65,7 +65,7 @@ func serveAndClient(ctx context.Context, responses [][]*dhcpv6.Message, opt ...C
h := &handler{
responses: responses,
}
- s, err := server6.NewServer(nil, h.handle, server6.WithConn(serverRawConn))
+ s, err := server6.NewServer("", nil, h.handle, server6.WithConn(serverRawConn))
if err != nil {
panic(err)
}