Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-19 | dhcpv4: build more packets with modifiers | Christopher Koch | |
Also drop unnecessary return value of Modifier. | |||
2019-01-15 | dhcpv4: conform to RFC 2131 with respect to options. | Christopher Koch | |
Removes AddOption and GetOption. RFC 2131 specifies that options may only appear once (Section 4.1). If an option does appear more than once, its byte values must be concatenated. RFC 3396 further specifies that to send options longer than 255 bytes, one option may be split into multiple option codes, which must be concatenated back together by the receiver. Both of these are concerned with the byte representation of options. Fact is, based on both RFCs one can say that an option may only appear once, but may be composed of multiple values. Because an option may appear only once logically in any case, we remove the AddOption and GetOption functions and leave only UpdateOption and GetOneOption. Also remove all additions & checks of the End option - the marshaling and unmarshaling code is exclusively responsible for that now. | |||
2019-01-14 | iana: rename HwTypeType to HWType, add package comment. | 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: remote OptionGetter interface in favor of Options type. | Christopher Koch | |
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: export packet members; remove setters and getters. | Christopher Koch | |
2019-01-09 | dhcpv4: simplify host name and boot file handling. | Christopher Koch | |
2019-01-09 | dhcpv4: simplify handling of client MAC. | Christopher Koch | |
2019-01-09 | dhcpv4: nicer (un-)marshaling of DHCP messages. | Christopher Koch | |
2019-01-09 | dhcpv4: introduce TransactionID type. | Christopher Koch | |
2018-12-08 | Added netconf v4 tests and required modifiers | Andrea Barberio | |
2018-11-06 | [WIP] Added DHCPv4 server (#178) | insomniac | |
* Added DHCPv4 server * Added more modifiers * Fixed some bugs | |||
2018-10-15 | Added String methods for types (#175) | Pablo Mazzini | |
2018-08-19 | Added String methods for types (#140) | insomniac | |
* Added String methods for types * Reverted change on bsdp.OptionCode | |||
2018-08-15 | revert breaking changes so this can be merged without issues | Sean Karlage | |
2018-08-15 | Merge branch 'master' into dhcpv4-moar-tests | Sean Karlage | |
2018-08-13 | add IsOptionRequested (#122) | insomniac | |
2018-08-12 | IsOptionRequested method of DHCPv6Message | Pablo Mazzini | |
2018-08-11 | Merge branch 'master' into dhcpv4-moar-tests | Sean Karlage | |
2018-08-10 | rename IsRequested to IsRequestedOption | Pablo Mazzini | |
2018-08-10 | rename RequestFromOffer to NewRequestFromOffer | Pablo Mazzini | |
2018-08-01 | Add support for modifiers to dhcpv4 (#102) | insomniac | |
2018-07-29 | Add some helper tools for tests | Sean Karlage | |
Adds new `OptionGetter` interface that helps when asserting that certain packets/vendor-specific opts contain specific options. | |||
2018-07-29 | Add modifier support to NewReplyFromRequest | Owen Mooney | |
2018-07-29 | DHCPv4: Refactor methods for easier testing | Sean Karlage | |
This refactors the input parameters for construction DISCOVER/INFORM* packets so that it's easier to write unit tests for DHCPv4 and BSDP methods. It also adds a bunch of unit tests for both packages and rounds out their test coverage. | |||
2018-07-29 | Add support for modifiers to dhcpv4 | Owen Mooney | |
2018-07-29 | add OptSubnetMask | Pablo Mazzini | |
2018-07-29 | add NewReplyFromRequest (#100) | Pablo Mazzini | |
2018-07-27 | [DHCPv4] BroadcastSendReceive now can wait for specific reply types (#95) | insomniac | |
2018-05-11 | add dhcpv4.GetOption and dhcpv4.GetSingleOption methods (#63) | Brandon Bennett | |
GetOption and GetOneOption are convenience methods for getting a DHCPv4 option from its Option Code. GetOption returns a list of options that match since the DHCP RFC allows for an option to be present multiple times with its values appended together. (Note: I am not sure I've ever seen this done and it's not clear if how option parsing would work for more complex values. Is appending done at the byte level? ) GetOneOption will return the first found option that matches a code. | |||
2018-03-26 | Add some more specific bsdp options + vendor specific implementation (#21) | Sean Karlage | |
Add some more specific options + vendor specific implementation | |||
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 | Fixed types in dhcpv4 and dhcpv6 | Andrea Barberio | |
2018-03-05 | Move bsdp functionality to its own subpackage. Bring in ↵ | Sean Karlage | |
stretchr/testify/assert for nicer asserts | |||
2018-03-03 | Add better formatting for vendor opts | Sean Karlage | |
2018-03-03 | Add BSDP support | Sean 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 | |||
2018-02-02 | More comments | Andrea Barberio | |
2018-02-02 | More comments | Andrea Barberio | |
2018-02-02 | Improved comments | Andrea Barberio | |
2018-02-02 | Changed API from NewDiscovery to NewDiscoveryForInterface | Andrea Barberio | |
2018-02-02 | Removed wrong char | Andrea Barberio | |
2018-02-02 | Replaced ugly code for generating MAC string | Andrea Barberio | |
2017-12-05 | Initial commit | Andrea Barberio | |