summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2023-02-27VendorOpts: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27UserClasses: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27BootFileParam: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27BootFileURL: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27DomainSearchList: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27changes bla bla new uioChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27DNS: tests for FromBytes, ToBytes, and DNS GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27ORO: tests for FromBytes, ToBytes, and ORO GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27Status: tests for FromBytes, ToBytes, and Status GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27ClientArchType: tests for FromBytes, ToBytes, and GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27IAPD: tests for FromBytes, ToBytes, and IAPD GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27IATA: tests for FromBytes, ToBytes, and IATA GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27IANA: tests for FromBytes, ToBytes, and IANA GetterChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
2023-02-27New tests for ClientID & ServerIDChris Koch
Signed-off-by: Chris Koch <chrisko@google.com>
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>