summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6relay_test.go
AgeCommit message (Collapse)Author
2023-02-19dhcpv6: proper DUID typesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2021-10-21Revert "[dhcpv6] don't copy the RemoteID"Pablo Mazzini
This reverts commit 4cc310c391f640ff2ac15f6c56ccbba2d362a8aa.
2021-10-20[dhcpv6] don't copy the RemoteIDPablo Mazzini
2020-03-09v6: add RemoteID getter to RelayOptionsChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-09v6: getter for InterfaceID on RelayOptionsChris 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-06dhcpv6: always write 16-byte IPsChris 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-05v6: add ClientID 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-05-08Addressed various linter warningsAndrea Barberio
Mostly for dead code and potentially wrong comparisons. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2019-04-23Revert "[dhcpv6] Solicit messages derive default IAID from MAC address"Andrea Barberio
This reverts commit b071bdc86a58037f6c745647c97fca202f3caef9. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2019-04-23[dhcpv6] Solicit messages derive default IAID from MAC addressAndrea Barberio
IAID must be set by the client. This patch generates the IAID from the MAC address of the interface. To do so, a new WithIAID modifier is added, the interface of NewSolicitWithCID now requires a hwaddr parameter, and NewAdvertiseFromSolicit copies the IA_NA option from the solicit if present. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
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
2018-08-21Remove depracated function calls from the library (#145)MikoĊ‚aj Walczak
2018-08-15NewRelayReplFromRelayForwPablo Mazzini
2018-08-15NewRelayReplFromRelayForw: increase test coveragePablo Mazzini
2018-07-29DHCPv6: Fix message type constantsSean Karlage
Renames DHCPv6 constants for message types to CamelCase
2018-05-26Add NewRelayReplFromRelayForw (#69)Pablo Mazzini
2018-05-20OptIANA and OptElapsedTime now have public fieldsAndrea Barberio
2018-04-04fix DHCPv6Relay ToBytes (#28)Pablo Mazzini
fix DHCPv6Relay ToBytes
2017-12-23Fixed OptRelayMsg.ToBytes and added testsAndrea Barberio
2017-12-23Added setters and getter testing for DHCPv6RelayAndrea Barberio
2017-12-23Added setters and getters for DHCPv6Relay and basic testingAndrea Barberio