summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/server6/server_test.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-02-28 14:48:54 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-03-11 21:54:10 -0700
commitafbaa1460f929a04c6e198b387174e70f0f9c903 (patch)
tree6f631e1afc4bd4be5db90cd7d34cb48a82ec6786 /dhcpv6/server6/server_test.go
parent38f805ad06e71972953004e9472e43c175ba299c (diff)
dhcpv6: remove setters and getters.
- Make members directly accessible.
Diffstat (limited to 'dhcpv6/server6/server_test.go')
-rw-r--r--dhcpv6/server6/server_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpv6/server6/server_test.go b/dhcpv6/server6/server_test.go
index 2365b96..3d2a365 100644
--- a/dhcpv6/server6/server_test.go
+++ b/dhcpv6/server6/server_test.go
@@ -58,7 +58,8 @@ func TestNewServer(t *testing.T) {
func TestServerActivateAndServe(t *testing.T) {
handler := func(conn net.PacketConn, peer net.Addr, m dhcpv6.DHCPv6) {
- adv, err := dhcpv6.NewAdvertiseFromSolicit(m)
+ msg := m.(*dhcpv6.Message)
+ adv, err := dhcpv6.NewAdvertiseFromSolicit(msg)
if err != nil {
log.Printf("NewAdvertiseFromSolicit failed: %v", err)
return