Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
* [ztpv4] make it consistent with ztpv6
|
|
|
|
|
|
|
|
ztpv6 (#208)
|
|
|
|
|
|
|
|
Signed-off-by: Nikolas Sepos <nikolas.sepos@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Removed unreachable code
* Addressed misspelling errors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Uniformed DHCPv6 and DHCPv4 servers
* Reverted main goroutine
* Reverted example code too
* Added conn fix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|