summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6relay.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6relay.go')
-rw-r--r--dhcpv6/dhcpv6relay.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go
index 337bda6..4a690b9 100644
--- a/dhcpv6/dhcpv6relay.go
+++ b/dhcpv6/dhcpv6relay.go
@@ -92,14 +92,6 @@ func (r *DHCPv6Relay) SetPeerAddr(peerAddr net.IP) {
r.peerAddr = peerAddr
}
-func (r *DHCPv6Relay) Length() int {
- mLen := RelayHeaderSize
- for _, opt := range r.options {
- mLen += opt.Length() + 4 // +4 for opt code and opt len
- }
- return mLen
-}
-
func (r *DHCPv6Relay) Options() []Option {
return r.options
}