summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_relaymsg_test.go
AgeCommit message (Collapse)Author
2023-02-27RelayMessage option: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19dhcpv6: convert every Parse function to FromBytesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Normalize String functionsChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-09v6: add RelayOptions with RelayMsgChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: add ElapsedTime getterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05dhcpv6: intro Getters for OptionsChris Koch
Allow the Options type to have getters for each specific options, in order to avoid users having to cast options to their specific type. This commit introduces a getter for exactly one option: the ClientArchType. i.e. users can replace archTypes := msg.GetOneOption(OptionClientArchType).(*OptClientArchType) with archTypes := msg.Options.ArchTypes() Because a few message types and options embed options (normal message, relay message, IANA/IATA option) and each have a restricted set of options that can be used inside them, we'll introduce at least 3 or more Options subtypes: - MessageOptions - RelayOptions - IdentityOptions Perhaps others will join at a later time, such as VendorOptions or AddressOptions for the IAAddress options field. Signed-off-by: Chris Koch <chrisko@google.com>
2019-03-11dhcpv6: remove setters and getters.Christopher Koch
- Make members directly accessible.
2019-03-11dhcpv6: rename stuttering types.Christopher Koch
dhcpv6.DHCPv6Message -> dhcpv6.Message dhcpv6.DHCPv6Relay -> dhcpv6.RelayMessage
2019-01-26dhcpv6: introduce TransactionID typeChristopher Koch
2019-01-26dhcpv6: introduce options type.Christopher Koch
2018-10-11Add some more DHCPv6 option tests. (#171)David Barr
* Add some more DHCPv6 option tests. * Remove AddRequestedOption() duplicate detection test due to failing on Go 1.9
2018-07-30DHCPv6: Rename Option constants to CamelCaseSean Karlage
To appease linters
2018-07-29DHCPv6: Fix message type constantsSean Karlage
Renames DHCPv6 constants for message types to CamelCase
2018-05-20OptIANA and OptElapsedTime now have public fieldsAndrea Barberio
2018-03-08Fixed use of t.FatalfAndrea Barberio
2017-12-08Fixed DHCPv6Relay.Length() and added testAndrea Barberio
2017-12-08Added test for encapsulated DHCPv6 messageAndrea Barberio
2017-12-08Added DHCPv6.Length() and improved relay msg parsingAndrea Barberio