summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/options.go
AgeCommit message (Collapse)Author
2023-02-27New tests for ClientID & ServerIDChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Simplify option parsingChris 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-19Improve NTP server option parsingChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Recursive pretty-printing with indentationChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Normalize String functionsChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2021-08-27dhcpv6: Implement RelayPort optionAnatole Denis
This is a simple 1-value option used in relay messages for RFC8357, specifying the UDP port on which messages should be sent to the relay Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2021-08-13Added OptNTPServerAndrea Barberio
Signed-off-by: Andrea Barberio <insomniac@slackware.it>
2021-05-28Break circular dependency on u-rootChris Koch
u-root -> dhcp -> u-root is the circular dependency. Which is fine, except we messed up modules in u-root big time. We need to break the circular dep for now. Signed-off-by: Chris Koch <chrisko@google.com>
2020-08-13Added structure, parsing and convenience fuctions for ↵Tom McPhail
OptInformationRefreshTime (32) https://tools.ietf.org/html/rfc8415#section-21.23 Signed-off-by: Tom McPhail <tom.mcphail@icloud.com>
2020-08-06dhcpv6: Handle IA_TA optionsAnatole Denis
This creates support for IA_TA options, based on and reusing the blocks from IA_NA, to which it is extremely similar Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2020-06-01Add Client Link-Layer Address option for RFC 6939 support.Tom McPhail
Signed-off-by: Tom McPhail <tom.mcphail@icloud.com>
2020-03-11v6: rename IAPD option to be shorterChris Koch
Also removes superfluous GetOne/Del proxy functions. Signed-off-by: Chris Koch <chrisko@google.com>
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: add DHCPv4-over-DHCPv6 supportMikael Magnusson
Add message types, options, and modifier for handling DHCPv4-over-DHCPv6. Refer to RFC 7341 Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2020-03-05v6: DomainSearchList getterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: add BootFileParam getterChris 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 BootFileURL getterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: add DNS getter (and rename DNSRecursiveNameServer to DNS)Chris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: RequestedOptions getterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: clean up option NIIChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2020-03-05v6: add ServerID 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>
2020-02-06hcpv6 fqdn: implements OptionFQDN optionXuehao (David) Hu
per https://tools.ietf.org/rfc/rfc4704.txt Signed-off-by: Xuehao (David) Hu <xuehaohu@google.com>
2019-12-12[dhcpv6] Add option BootfileParam to DHCPv6 clientDmitrii Okunev
Added support of option OptBootFileParam. See RFC5970 section 3.2. Signed-off-by: Dmitrii Okunev <xaionaro@fb.com>
2019-11-03dhcpv6: Add support for 4RD optionsAnatole Denis
IPv4 Residual Deployment (4RD) is a strategy for providing IPv4 connectivity in IPv6-only networks. The standard includes autoconfiguration via DHCPv6, as described in RFC7600. This adds support for the 3 options defined in that RFC Signed-off-by: Anatole Denis <natolumin@unverle.fr>
2019-01-26dhcpv6: remove unnecessary Length functionChristopher Koch
2019-01-26dhcpv6: move option code and length marshaling to Options.ToBytes.Christopher Koch
2019-01-26dhcpv6: easier option parsingChristopher Koch
- move option parsing to uio buffer library. - move option code and length reading into FromBytes rather than implementing it in each OptionParser.
2019-01-26dhcpv6: move option code types; add Stringer.Christopher Koch
2019-01-26dhcpv6: introduce options type.Christopher Koch
2018-11-07Adding module for DHCPv6 Vendor Options (Opt 17) (#130)Chris Gorham
2018-08-22add OptVendorClass (#148)Pablo Mazzini
2018-07-30DHCPv6: Rename Option constants to CamelCaseSean Karlage
To appease linters
2018-05-21Tests for DUID, OptIAAddress and several fixes (#66)insomniac
2018-04-18Fixed user class and status code optionsAndrea Barberio
2018-04-18Added missing field to user class, and added to ParseOptionAndrea Barberio
2018-03-16dhcpv4: Added OptionDomainNameAndrea Barberio
2017-12-21Added OptBootFileURLAndrea Barberio
2017-12-13Added option NIIAndrea Barberio
2017-12-11Added OptClientArchTypeAndrea Barberio
2017-12-09Added OptInterfaceIdAndrea Barberio
2017-12-09Added OptRemoteIdAndrea Barberio
2017-12-08Fixed DHCPv6Relay.Length() and added testAndrea Barberio
2017-12-08Added DHCPv6.Length() and improved relay msg parsingAndrea Barberio
2017-12-08Printing option code when erroring on lengthAndrea Barberio