Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-03-05 | v6: Status getter for message options | Chris Koch | |
Status Code is one of the few options used across many Option types. Signed-off-by: Chris Koch <chrisko@google.com> | |||
2020-03-05 | v6: add IANA Getter | Chris Koch | |
Signed-off-by: Chris Koch <chrisko@google.com> | |||
2020-03-05 | v6: add ServerID getter | Chris Koch | |
Signed-off-by: Chris Koch <chrisko@google.com> | |||
2020-03-05 | v6: add ClientID getter | Chris Koch | |
Signed-off-by: Chris Koch <chrisko@google.com> | |||
2020-03-05 | dhcpv6: intro Getters for Options | Chris 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-02 | [dhcpv6] Handle SOLICIT with rapid commit in NewReplyFromMessage | Andrea Barberio | |
NewReplyFromMessage creates a reply from a message. With this patch it can handle Solicit messages with rapid-commit. RFC3315 states that: ``` If the client has included a Rapid Commit option in its Solicit message, the client terminates the waiting process as soon as a Reply message with a Rapid Commit option is received. ``` Signed-off-by: Andrea Barberio <insomniac@slackware.it> | |||
2019-04-24 | [dhcpv6] Solicit messages derive default IAID from MAC address | Andrea 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-04-23 | Revert "[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 address | Andrea 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-04-04 | client6: new async DHCPv6 client like #250. | Christopher Koch | |
- Race-condition-averse. - Supports multiple concurrent requests. - Tested. - Requires a fully compatible net.PacketConn. Signed-off-by: Christopher Koch <chrisko@google.com> | |||
2019-04-03 | Use cancellable crypto RNG from u-root | Andrea Barberio | |
Fixes #246 Signed-off-by: Andrea Barberio <insomniac@slackware.it> | |||
2019-03-11 | dhcpv6: standardize GetInnerMessage | Christopher Koch | |
2019-03-11 | dhcpv6: remove setters and getters. | Christopher Koch | |
- Make members directly accessible. | |||
2019-03-11 | dhcpv6: rename stuttering types. | Christopher Koch | |
dhcpv6.DHCPv6Message -> dhcpv6.Message dhcpv6.DHCPv6Relay -> dhcpv6.RelayMessage | |||
2019-01-26 | dhcpv6: remove unnecessary Length function | Christopher Koch | |
2019-01-26 | dhcpv6: move option code and length marshaling to Options.ToBytes. | Christopher Koch | |
2019-01-26 | dhcpv6: use uio buffer in DHCPv6 message parsing | Christopher Koch | |
2019-01-26 | dhcpv6: introduce TransactionID type | Christopher Koch | |
2019-01-26 | dhcpv6: introduce options type. | Christopher Koch | |
2019-01-14 | iana: rename HwTypeType to HWType, add package comment. | Christopher Koch | |
2018-12-08 | Added netconf v4 tests and required modifiers | Andrea Barberio | |
2018-11-27 | Test TransactionID generation | Mikołaj Walczak | |
2018-11-26 | Add missing error check in GenerateTransactionID | Mikołaj Walczak | |
2018-10-15 | Added String methods for types (#175) | Pablo Mazzini | |
2018-09-12 | NewReplyFromDHCPv6Message: reply to information request | Pablo Mazzini | |
2018-08-21 | Remove depracated function calls from the library (#145) | Mikołaj Walczak | |
2018-08-12 | IsOptionRequested method of DHCPv6Message | Pablo Mazzini | |
2018-07-30 | DHCPv6: Rename Option constants to CamelCase | Sean Karlage | |
To appease linters | |||
2018-07-29 | DHCPv6: Fix message type constants | Sean Karlage | |
Renames DHCPv6 constants for message types to CamelCase | |||
2018-07-11 | NewSolicitWithCID for DHCPv6 (#76) | Mikołaj Walczak | |
2018-07-08 | add NewReplyFromDHCPv6Message (#78) | Pablo Mazzini | |
Add a more generic NewReplyFromMessage to avoid code duplication. This is one step closer towards fixing issue #73. Leave NewReplyFromRequest, NewReplyFromRenew and NewReplyFromRebind for backwards compatibility. | |||
2018-06-11 | add NewReplyFromRenew and NewReplyFromRebind (#72) | Pablo Mazzini | |
2018-05-20 | OptIANA and OptElapsedTime now have public fields | Andrea Barberio | |
2018-05-02 | UpdateOption now adds the option if missing (#55) | insomniac | |
2018-05-02 | ClientID and ServerID are now public, with no setter/getter (#52) | insomniac | |
2018-04-30 | add NewReplyFromRequest (#51) | Pablo Mazzini | |
2018-04-30 | add NewAdvertiseFromSolicit (#50) | Pablo Mazzini | |
add NewAdvertiseFromSolicit | |||
2018-04-20 | dhcpv6: added modifiers (#41) | insomniac | |
dhcpv6: added modifiers Added support for packet modifiers, i.e. functions that can arbitrarily manipulate a DHCPv6 packet. These modifiers are used by NewMessage, NewSolicitForInterface, NewRequestForAdvertise, and can be used by other packet creation functions. A bunch of sample modifiers have been added under modifiers.go , too. With the introduction of modifiers I also removed some options that should not necessarily be in a standard DHCPv6 message. | |||
2018-04-19 | OptArchType: made field public | Andrea Barberio | |
2018-04-17 | dhcpv6: added DHCPv6Message.UpdateOption | Andrea Barberio | |
2017-12-13 | Added option NII | Andrea Barberio | |
2017-12-11 | Changed fixed IAID value | Andrea Barberio | |
2017-12-11 | Readded missing comment | Andrea Barberio | |
2017-12-11 | Added OptClientArchType | Andrea Barberio | |
2017-12-11 | Refactored REQUEST code into NewRequestFromAdvertise | Andrea Barberio | |
2017-12-10 | Added GetOption, GetOneOption and IsRelay methods to DHCPv6 interface | Andrea Barberio | |
2017-12-10 | Added DHCPv6.Option() to interface, and implemented where missing | Andrea Barberio | |
2017-12-08 | Added DHCPv6.Length() and improved relay msg parsing | Andrea Barberio | |
2017-12-07 | Refactored options into the dhcpv6 package to resolve circular imports. Sadly. | Andrea Barberio | |
2017-12-07 | Relay message options instead of a raw byte sequence | Andrea Barberio | |