summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2019-05-09 10:49:15 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2019-05-09 11:05:53 +0100
commit4ddd05e566105742df7c109ebf3af307b344441c (patch)
tree7eff0a40ab46d554a21d3078509fa6fc5d50adf6 /dhcpv4
parent03d4490e455095ffc8d8800b5e56ee11f4cbbde7 (diff)
NewReplyFromRequest: copy gw ip
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/dhcpv4_test.go1
1 files changed, 1 insertions, 0 deletions
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) {