diff options
author | Chris Koch <chrisko@google.com> | 2023-02-18 13:59:40 -0800 |
---|---|---|
committer | Chris K <c@chrisko.ch> | 2023-02-18 23:57:24 -0800 |
commit | 10146be7d8494d72e98d40df63cc0d65501e169f (patch) | |
tree | b6e43a11ae6ae60149af06af11d615c4ad7c2055 /dhcpv6/option_iaaddress.go | |
parent | a5c8a4bf9480a9c8cd16ab84914f7d646f3c0130 (diff) |
Normalize String functions
Signed-off-by: Chris Koch <chrisko@google.com>
Diffstat (limited to 'dhcpv6/option_iaaddress.go')
-rw-r--r-- | dhcpv6/option_iaaddress.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/option_iaaddress.go b/dhcpv6/option_iaaddress.go index a701f8d..c107b83 100644 --- a/dhcpv6/option_iaaddress.go +++ b/dhcpv6/option_iaaddress.go @@ -59,8 +59,8 @@ func (op *OptIAAddress) ToBytes() []byte { } func (op *OptIAAddress) String() string { - return fmt.Sprintf("IAAddress: IP=%v PreferredLifetime=%v ValidLifetime=%v Options=%v", - op.IPv6Addr, op.PreferredLifetime, op.ValidLifetime, op.Options) + return fmt.Sprintf("%s: {IP=%v PreferredLifetime=%v ValidLifetime=%v Options=%v}", + op.Code(), op.IPv6Addr, op.PreferredLifetime, op.ValidLifetime, op.Options) } // ParseOptIAAddress builds an OptIAAddress structure from a sequence |