Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-03-13 | [dhcpv4] simplify userclass handling (#249) | Pablo Mazzini | |
2019-01-24 | dhcpv4: getters instead of getters | Christopher Koch | |
From: r := GetRouter(d.Options) To: r := d.Router() | |||
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: thoroughly fix type docs. Refer to RFCs. | Christopher Koch | |
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. | |||
2018-08-02 | OptUserClass: use only the flag as authoritative | Pablo Mazzini | |
2018-08-02 | OptUserClass: fix short length | Pablo Mazzini | |
2018-08-02 | fix OptUserClass | Pablo Mazzini | |
2018-08-01 | Parse non-RFC compliant user class (#114) | Owen Mooney | |
2018-07-29 | Add support for modifiers to dhcpv4 | Owen Mooney | |
2018-07-24 | . | Owen Mooney | |
2018-07-24 | Spelling | Owen Mooney | |
2018-07-24 | Return error on empty User Class | Owen Mooney | |
2018-07-24 | Don't parse past length | Owen Mooney | |
2018-07-24 | Added UserClass option to DHCPv4 | Owen Mooney | |