From 4ddd05e566105742df7c109ebf3af307b344441c Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Thu, 9 May 2019 10:49:15 +0100 Subject: NewReplyFromRequest: copy gw ip --- dhcpv4/dhcpv4_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'dhcpv4') diff --git a/dhcpv4/dhcpv4_test.go b/dhcpv4/dhcpv4_test.go index 63c00d0..106e4c4 100644 --- a/dhcpv4/dhcpv4_test.go +++ b/dhcpv4/dhcpv4_test.go @@ -256,6 +256,7 @@ func TestNewReplyFromRequest(t *testing.T) { reply, err := NewReplyFromRequest(discover) require.NoError(t, err) require.Equal(t, discover.TransactionID, reply.TransactionID) + require.Equal(t, discover.GatewayIPAddr, reply.GatewayIPAddr) } func TestNewReplyFromRequestWithModifier(t *testing.T) { -- cgit v1.2.3