Age | Commit message (Collapse) | Author |
|
|
|
dhcpv4: return a new lease from Renew()
|
|
`NewInform()` exposes a consumer-facing interface that accepts modifiers, but
this functionality is never tested unlike with for example `NewRequest()` and
`NewRenew()`. To ensure that modifiers are correctly respected and any future
modifications won't break this support, add a modifier test for `NewInform()`.
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
This is just a minor readability improvement that makes `NewInform()`
consistent with the neighboring functions like `NewRequest()`, `NewReply()`,
`NewRelease()` etc. Having the prepended modifiers on the same line helps
with separating the modifiers that provided by the function from the modifiers
passed in by the consumer of the function.
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Any parameter passed to `require.NotNil()` after the first two will not be
tested but instead appended to the message that is printed if the test fails.
This means that `lease.ACK` was never tested to not be nil.
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Add Support for Labels Containing Partial Domain Names (RFC 4704 Section 4.2)
|
|
|
|
Signed-off-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
|
|
[dhcpv4][client] fix lint
|
|
|
|
|
|
dhcpv4: support RENEW requests and option deletion
|
|
|
|
|
|
Update conn_unix.go
|
|
Add `SO_REUSEPORT` to aid in debugging and testing.
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
|
|
|
|
Adding support for more circuit id format
|
|
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
|
|
Add Cisco ZTPv6 Support
|
|
Adding ZTPv6 Cisco support based on Option 17 Suboption 1 (Vendor Specific Information Option).
Signed-off-by: Hrvoje Cavrak <hrvoje@hrvoje.org>
|
|
|
|
Signed-off-by: Kristof Nagy <kristofn@protonmail.ch>
|
|
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
|
|
Signed-off-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
|
|
Signed-off-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
|
|
|
|
Signed-off-by: kayos@tcp.direct <kayos@tcp.direct>
|
|
Extending parse_circuit_id and adding support for Ciena
|
|
Adding support for DHCPv6 for Ciena
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
Adding support for DHCPv6 for Ciena
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
mdlayher/raw supports them, so why don't we support them, too.
Signed-off-by: Chris Koch <chrisko@google.com>
|
|
This should fix the panic we've seen with the malformed packets on the
wire. Remaining buffer size should be checked before trying to access
the data, otherwise Go might panic on out of bounds slice operation.
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
|
|
RFC 2131 Section 4.4.1 specifies that REQUEST messages should set
'siaddr' to 0.
Signed-off-by: Chris Koch <chrisko@google.com>
|
|
|
|
|
|
|
|
Fix payload buffer to end at actual payload end. UDP header length includes the 8 bytes of the header so we do not want the +8 at the end of the buffer.
Signed-off-by: noiz <noiz@users.noreply.github.com>
Co-authored-by: Pablo Mazzini <pmazzini@gmail.com>
|
|
Fix typo in MessageOptions.IATA(). Add iaid argument to WithIATA() to
allow it to be set easily in line with WithIAPD(). Add a test for
WithIATA(),
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Co-authored-by: Mikael Magnusson <mikma@users.sourceforge.net>
Co-authored-by: Pablo Mazzini <pmazzini@gmail.com>
|
|
* Adding support for Ciena DHCPv4
Signed-off-by: Emanuele Fia <name29@fb.com>
|
|
Signed-off-by: noiz <noiz@users.noreply.github.com>
|
|
This reverts commit 4cc310c391f640ff2ac15f6c56ccbba2d362a8aa.
|
|
|
|
empty (#444)
* Adding check for empty serial number in opt 61
|
|
This is a simple 1-value option used in relay messages for RFC8357, specifying
the UDP port on which messages should be sent to the relay
Signed-off-by: Anatole Denis <natolumin@unverle.fr>
|