summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_temporaryaddress.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_temporaryaddress.go')
-rw-r--r--dhcpv6/option_temporaryaddress.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv6/option_temporaryaddress.go b/dhcpv6/option_temporaryaddress.go
index 624b4f9..4a79bac 100644
--- a/dhcpv6/option_temporaryaddress.go
+++ b/dhcpv6/option_temporaryaddress.go
@@ -33,6 +33,11 @@ func (op *OptIATA) String() string {
return fmt.Sprintf("%s: {IAID=%#x, Options=%v}", op.Code(), op.IaId, op.Options)
}
+// LongString returns a multi-line string representation of IATA data.
+func (op *OptIATA) LongString(indentSpace int) string {
+ return fmt.Sprintf("%s: IAID=%#x Options=%v", op.Code(), op.IaId, op.Options.LongString(indentSpace))
+}
+
// ParseOptIATA builds an OptIATA structure from a sequence of bytes. The
// input data does not include option code and length bytes.
func ParseOptIATA(data []byte) (*OptIATA, error) {