summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_relay_agent_information_test.go
AgeCommit message (Collapse)Author
2019-01-11dhcpv4: 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-10dhcpv4: remote OptionGetter interface in favor of Options type.Christopher Koch
2019-01-10dhcpv4: 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-11-12OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-12OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-12OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-12OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-12OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11OptRelayAgentInformation: remove extra linePablo Mazzini
2018-11-11OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11add OptRelayAgentInformationPablo Mazzini