From 03e9ac918544b248cd2d660195934d7c943cb4d7 Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Mon, 29 Apr 2019 13:52:22 +0100 Subject: [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 --- dhcpv6/nclient6/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcpv6/nclient6/client_test.go') 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) } -- cgit v1.2.3