Skip to content

Commit 0bcb0c9

Browse files
committed
Add comments for stickler-ci
1 parent e288ebd commit 0bcb0c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dhcpv6/option_generic_parse_failure.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ import (
44
"fmt"
55
)
66

7+
// OptionGenericParseFailure represents an option that failed to be parsed correctly
78
type OptionGenericParseFailure struct {
89
OptionCode OptionCode
910
OptionData []byte
1011
Option Option
1112
Error error
1213
}
1314

15+
// Code returns the option's code
1416
func (og *OptionGenericParseFailure) Code() OptionCode {
1517
return og.OptionCode
1618
}
1719

20+
// ToBytes serializes the option and returns it as a sequence of bytes
1821
func (og *OptionGenericParseFailure) ToBytes() []byte {
1922
return og.OptionData
2023
}

0 commit comments

Comments
 (0)