We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e288ebd commit 0bcb0c9Copy full SHA for 0bcb0c9
dhcpv6/option_generic_parse_failure.go
@@ -4,17 +4,20 @@ import (
4
"fmt"
5
)
6
7
+// OptionGenericParseFailure represents an option that failed to be parsed correctly
8
type OptionGenericParseFailure struct {
9
OptionCode OptionCode
10
OptionData []byte
11
Option Option
12
Error error
13
}
14
15
+// Code returns the option's code
16
func (og *OptionGenericParseFailure) Code() OptionCode {
17
return og.OptionCode
18
19
20
+// ToBytes serializes the option and returns it as a sequence of bytes
21
func (og *OptionGenericParseFailure) ToBytes() []byte {
22
return og.OptionData
23
0 commit comments