Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-24 | dhcpv4: nicer API for option parsing. | Christopher Koch | |
From: r := d.GetOneOption(OptionRouter).(*OptRouter).Routers d.UpdateOption(&OptRouter{Routers: []net.IP{net.IP{192, 168, 0, 1}}}) To: r := GetRouter(d.Options) d.UpdateOption(OptRouter(net.IP{192, 168, 0, 1}, ...)) | |||
2019-01-14 | dhcpv4: change OptionCode to an interface for humanization. | Christopher Koch | |
Interface'd OptionCodes can print the correct human string. It sucks because option codes are just a byte, but depending on where you use them, they are interpreted differently. BSDP option codes != DHCP option codes. | |||
2019-01-11 | dhcpv4: remove unused Option.Length function. | Christopher Koch | |
2019-01-11 | dhcpv4: simplify marshaling options to binary. | Christopher Koch | |
- Consolidate writing the option code and length to Options.Marshal rather than doing it in each individual option. - Use uio in marshaling code. | |||
2019-01-10 | dhcpv4: simplify option parsing. | Christopher Koch | |
option's codes and lengths were being parsed twice: once in ParseOption and once in each option type's Parse implementation. Consolidate such that it only happens once. Additionally, only pass data to options that they should parse -- we know the length before the Parse function is called, so the option only gets to see the data it needs to see. Also, use uio.Lexer to simplify parsing code in general. Easier to read and reason about. | |||
2019-01-09 | dhcpv4: nicer (un-)marshaling of DHCP messages. | Christopher Koch | |
2018-11-11 | OptRelayAgentInformation: increase coverage | Pablo Mazzini | |
2018-11-11 | OptRelayAgentInformation: increase coverage | Pablo Mazzini | |
2018-11-11 | OptRelayAgentInformation: increase coverage | Pablo Mazzini | |
2018-11-11 | OptRelayAgentInformation: increase coverage | Pablo Mazzini | |
2018-10-03 | dhcpv4: Add OptRootPath (#163) | Sean Karlage | |
* dhcpv4: Add OptRootPath Adds a root path option that supports DHCPv4 option 17 * Add root path parsing to giant option parsing switch | |||
2018-08-15 | stop parsing after end (#132) | Pablo Mazzini | |
2018-08-02 | OptClientArchType: increase coverage | Pablo Mazzini | |
2018-08-02 | OptClientArchType: increase coverage | Pablo Mazzini | |
2018-08-02 | OptClientArchType: increase coverage | Pablo Mazzini | |
2018-08-02 | OptClientArchType: increase coverage | Pablo Mazzini | |
2018-08-02 | OptClientArchType: increase coverage | Pablo Mazzini | |
2018-08-02 | OptClientArchType | Pablo Mazzini | |
2018-08-02 | add OptClientArchType | Pablo Mazzini | |
2018-07-29 | add OptRouter | Pablo Mazzini | |
2018-07-29 | OptSubnetMask: add options test | Pablo Mazzini | |
2018-07-25 | Added additional ParseOption tests (#93) | Owen Mooney | |
2018-03-16 | Add more specific dhcpv4 options (#17) | Sean Karlage | |
Added several DHCPv4 options | |||
2018-03-13 | Add OptionGeneric, comment out other code so tests compile/pass | Sean Karlage | |
2018-03-06 | Refactor tests to use stretchr/testify/require | Sean Karlage | |
2017-12-05 | Initial commit | Andrea Barberio | |