diff options
Diffstat (limited to 'dhcpv6/option_nontemporaryaddress.go')
-rw-r--r-- | dhcpv6/option_nontemporaryaddress.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv6/option_nontemporaryaddress.go b/dhcpv6/option_nontemporaryaddress.go index 9232bb5..76f6f4c 100644 --- a/dhcpv6/option_nontemporaryaddress.go +++ b/dhcpv6/option_nontemporaryaddress.go @@ -97,6 +97,11 @@ func (op *OptIANA) String() string { op.Code(), op.IaId, op.T1, op.T2, op.Options) } +// LongString returns a multi-line string representation of IANA data. +func (op *OptIANA) LongString(indentSpace int) string { + return fmt.Sprintf("%s: IAID=%#x T1=%s T2=%s Options=%s", op.Code(), op.IaId, op.T1, op.T2, op.Options.LongString(indentSpace)) +} + // ParseOptIANA builds an OptIANA structure from a sequence of bytes. The // input data does not include option code and length bytes. func ParseOptIANA(data []byte) (*OptIANA, error) { |