summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_relaymsg.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/option_relaymsg.go')
-rw-r--r--dhcpv6/option_relaymsg.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv6/option_relaymsg.go b/dhcpv6/option_relaymsg.go
index 5e1d902..216f53b 100644
--- a/dhcpv6/option_relaymsg.go
+++ b/dhcpv6/option_relaymsg.go
@@ -28,6 +28,11 @@ func (op *optRelayMsg) String() string {
return fmt.Sprintf("%s: %v", op.Code(), op.Msg)
}
+// LongString returns a multi-line string representation of the relay message data.
+func (op *optRelayMsg) LongString(indent int) string {
+ return fmt.Sprintf("%s: %v", op.Code(), op.Msg.LongString(indent))
+}
+
// build an optRelayMsg structure from a sequence of bytes.
// The input data does not include option code and length bytes.
func parseOptRelayMsg(data []byte) (*optRelayMsg, error) {