summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2023-02-27Remove 1.17 CIChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27Require Go 1.18Chris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Tests for option deserialization & gettersChris Koch
Tests that for the correct option code, the correct deserialization is applied. Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Simplify option parsingChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19dhcpv6: convert every Parse function to FromBytesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Option 4RD: switch to FromBytesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Improve NTP server option parsingChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Pin lz4 to v4.1.14 due to bugChris Koch
https://github.com/pierrec/lz4/issues/203 Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-20Merge pull request #489 from hugelgupf/update-dependenciesPablo Mazzini
Update dependencies
2023-02-19Update dependenciesChris Koch
In particular, uio Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19dhcpv6 DUID: re-add Equal functionChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19dhcpv6: proper DUID typesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18dhcpv6: turn everythingmessage into a testChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Recursive pretty-printing with indentationChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Consistent short string messagesChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Remove superfluous print from testChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Normalize String functionsChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Example to pretty print every optionChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-184RD: API like every other Options wrapper typeChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-19Merge pull request #486 from hugelgupf/workflow-fixPablo Mazzini
GH workflows: Go support up to 1.20 and fix badge
2023-02-18Upgrade GH actionsChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Support Go 1.17-1.20Chris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18README: fix GH actions badgeChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-18Add support for Go up to 1.20Chris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2022-12-14go.mod: bump uio dep to move to unified native endian packageBrad Fitzpatrick
To pick up this change: https://github.com/u-root/uio/commit/c3537552635f86c59cf805d1755fa656a2073922 Updates golang/go#57237 Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-11-28Merge pull request #483 from abrender/patch-1Pablo Mazzini
Return error from RequestNetbootv4
2022-11-10Return error from RequestNetbootv4Avi B
The current behavior of `RequestNetbootv4` is potentially dangerous because when it reaches the max number of retries, it returns `conversation, nil` (line 91) back to the caller, even if `client.Exchange()` (line 77) returned an `err`. This leads to a situation where the caller will see `err == nil` but incorrect data returned via the other parameter. This changes the behavior to match the behavior of `RequestNetbootv6`. If this change isn't allowed because it's not backwards compatible then we should at least consider returning `nil, nil` instead of `conversation, nil` on the final retry. Signed-off-by: Avi <avibrender@gmail.com>
2022-10-01Merge pull request #481 from twelho/newinform-formatting-consistencyPablo Mazzini
dhcpv4: make NewInform() formatting consistent with neighbors
2022-10-01Merge branch 'master' into newinform-formatting-consistencyPablo Mazzini
2022-10-01Merge pull request #480 from twelho/newinform-modifier-testPablo Mazzini
dhcpv4: add test for NewInform() with modifiers
2022-10-01Merge branch 'master' into newinform-modifier-testPablo Mazzini
2022-10-01Merge pull request #479 from twelho/fix-not-nil-checksPablo Mazzini
dhcpv4: fix require.NotNil() usage in tests
2022-10-01Merge branch 'master' into fix-not-nil-checksPablo Mazzini
2022-10-01Merge pull request #478 from twelho/renew-return-new-leasePablo Mazzini
dhcpv4: return a new lease from Renew()
2022-10-01dhcpv4: add test for NewInform() with modifiersDennis Marttinen
`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>
2022-10-01dhcpv4: make NewInform() formatting consistent with neighborsDennis Marttinen
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>
2022-10-01dhcpv4: fix require.NotNil() usage in testsDennis Marttinen
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>
2022-10-01dhcpv4: return a new lease from Renew()Dennis Marttinen
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
2022-09-15Merge pull request #467 from rtpt-erikgeiser/fix_labelPablo Mazzini
Add Support for Labels Containing Partial Domain Names (RFC 4704 Section 4.2)
2022-09-15Merge branch 'master' into fix_labelPablo Mazzini
2022-09-15Remove superfluous return statementErik Geiser
Signed-off-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
2022-09-13Merge pull request #475 from pmazzini/lintPablo Mazzini
[dhcpv4][client] fix lint
2022-09-10Merge branch 'master' into fix_labelPablo Mazzini
2022-09-10Merge branch 'master' into lintPablo Mazzini
2022-09-10Merge pull request #469 from twelho/fix-nil-optionsPablo Mazzini
dhcpv4: support RENEW requests and option deletion
2022-09-10Merge branch 'master' into fix-nil-optionsPablo Mazzini
2022-09-10Merge branch 'master' into lintPablo Mazzini
2022-09-10Merge pull request #476 from jacobweinstock/patch-1Pablo Mazzini
Update conn_unix.go
2022-09-07Update conn_unix.goJacob Weinstock
Add `SO_REUSEPORT` to aid in debugging and testing. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
2022-08-22Merge branch 'master' into lintPablo Mazzini