diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2019-05-09 10:49:15 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-05-09 11:05:53 +0100 |
commit | 4ddd05e566105742df7c109ebf3af307b344441c (patch) | |
tree | 7eff0a40ab46d554a21d3078509fa6fc5d50adf6 /dhcpv4 | |
parent | 03d4490e455095ffc8d8800b5e56ee11f4cbbde7 (diff) |
NewReplyFromRequest: copy gw ip
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/dhcpv4_test.go | 1 |
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) { |