summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/modifiers.go
diff options
context:
space:
mode:
authorTom McPhail <tom.mcphail@icloud.com>2020-06-01 23:17:56 +1000
committerTom McPhail <tom.mcphail@icloud.com>2020-06-01 23:40:22 +1000
commit09f6357e9117743012d95388156bc2f6ab606116 (patch)
tree573440499f10dff5dddf69b35ee6f8c5682eb84a /dhcpv6/modifiers.go
parented3125c2efe7026894d9ecf1c41d213d6c1f2010 (diff)
Add Client Link-Layer Address option for RFC 6939 support.
Signed-off-by: Tom McPhail <tom.mcphail@icloud.com>
Diffstat (limited to 'dhcpv6/modifiers.go')
-rw-r--r--dhcpv6/modifiers.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/dhcpv6/modifiers.go b/dhcpv6/modifiers.go
index 96fbf4b..8099795 100644
--- a/dhcpv6/modifiers.go
+++ b/dhcpv6/modifiers.go
@@ -152,3 +152,9 @@ func WithIAPD(iaid [4]byte, prefixes ...*OptIAPrefix) Modifier {
}
}
}
+
+// WithClientLinkLayerAddress adds or updates the ClientLinkLayerAddress
+// option with provided HWType and HWAddress on a DHCPv6 packet
+func WithClientLinkLayerAddress(ht iana.HWType, lla net.HardwareAddr) Modifier {
+ return WithOption(OptClientLinkLayerAddress(ht, lla))
+}