summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/options.go
AgeCommit message (Collapse)Author
2019-01-11dhcpv4: remove unused Option.Length function.Christopher Koch
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.
2019-01-09dhcpv4: nicer (un-)marshaling of DHCP messages.Christopher Koch
2018-11-11OptRelayAgentInformation: increase coveragePablo Mazzini
2018-11-11add OptRelayAgentInformationPablo Mazzini
2018-10-03dhcpv4: 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-15stop parsing after end (#132)Pablo Mazzini
2018-08-02add OptClientArchTypePablo Mazzini
2018-08-01add OptDomainSearch (#111)insomniac
2018-08-01add OptNTPServers (#115)Pablo Mazzini
2018-07-31fix OptHostNamePablo Mazzini
2018-07-31add OptHostNamePablo Mazzini
2018-07-31OptDomainSearchPablo Mazzini
2018-07-30add OptIPAddressLeaseTimePablo Mazzini
2018-07-29add OptRouterPablo Mazzini
2018-07-29parse OptSubnetMaskPablo Mazzini
2018-07-25Add TFTP server name option (#92)Owen Mooney
2018-06-28Added OptDomainNameServer for DHCPv4 (#74)insomniac
2018-03-27Add parsing for Option 124: Vendor-Identifying Vendor Class (#26)Brandon Bennett
Add support for parsing option 124 which is Vendor-Identifying Vendor Class which is defined in https://tools.ietf.org/html/rfc3925.
2018-03-17Added OptionBroadcastAddressAndrea Barberio
2018-03-16dhcpv4: Added OptionDomainNameAndrea Barberio
2018-03-16Add more specific dhcpv4 options (#17)Sean Karlage
Added several DHCPv4 options
2018-03-13Add OptionGeneric, comment out other code so tests compile/passSean Karlage
2018-03-05Move bsdp functionality to its own subpackage. Bring in ↵Sean Karlage
stretchr/testify/assert for nicer asserts
2018-03-03Add better formatting for vendor optsSean Karlage
2018-03-03Add BSDP supportSean Karlage
Adds support for constructing INFORM/ACK messages from Apple's Boot Service Discovery Protocol for netbooting (pxebooting) Apple hardware. The canonical reference for BSDP is: http://opensource.apple.com/source/bootp/bootp-198.1/Documentation/BSDP.doc
2017-12-05Initial commitAndrea Barberio