diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2021-10-21 10:50:59 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2021-10-21 12:11:21 +0100 |
commit | 509557e9f7816c12f5f7ed4e674f542480ab4c07 (patch) | |
tree | 815ea6a9a44b53531f5b67cf5c849da74c36a622 /dhcpv6/dhcpv6relay_test.go | |
parent | 4cc310c391f640ff2ac15f6c56ccbba2d362a8aa (diff) |
Revert "[dhcpv6] don't copy the RemoteID"
This reverts commit 4cc310c391f640ff2ac15f6c56ccbba2d362a8aa.
Diffstat (limited to 'dhcpv6/dhcpv6relay_test.go')
-rw-r--r-- | dhcpv6/dhcpv6relay_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv6/dhcpv6relay_test.go b/dhcpv6/dhcpv6relay_test.go index 0b36f81..113842c 100644 --- a/dhcpv6/dhcpv6relay_test.go +++ b/dhcpv6/dhcpv6relay_test.go @@ -91,6 +91,7 @@ func TestNewRelayRepFromRelayForw(t *testing.T) { rf.PeerAddr = net.IPv6linklocalallrouters rf.LinkAddr = net.IPv6interfacelocalallnodes rf.AddOption(OptInterfaceID(nil)) + rf.AddOption(&OptRemoteID{}) // create the inner message s, err := NewMessage() @@ -108,6 +109,7 @@ func TestNewRelayRepFromRelayForw(t *testing.T) { require.Equal(t, relay.PeerAddr, rf.PeerAddr) require.Equal(t, relay.LinkAddr, rf.LinkAddr) require.NotNil(t, rr.GetOneOption(OptionInterfaceID)) + require.NotNil(t, rr.GetOneOption(OptionRemoteID)) m, err := relay.GetInnerMessage() require.NoError(t, err) require.Equal(t, m, a) |