summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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
2022-08-22Merge pull request #474 from name29/ciena_circuit_idPablo Mazzini
Adding support for more circuit id format
2022-08-22Adding support for more circuit idEmanuele Fia
Signed-off-by: Emanuele Fia <name29@fb.com>
2022-08-20[dhcpv4][client] fix lintPablo Mazzini
2022-08-18Merge pull request #472 from hrvach/masterPablo Mazzini
Add Cisco ZTPv6 Support
2022-08-18Add ZTPv6 Cisco SupportHrvoje Cavrak
Adding ZTPv6 Cisco support based on Option 17 Suboption 1 (Vendor Specific Information Option). Signed-off-by: Hrvoje Cavrak <hrvoje@hrvoje.org>
2022-08-12Merge branch 'master' into fix-nil-optionsPablo Mazzini
2022-08-12Fix typo in readme (#471)Kristoff
Signed-off-by: Kristof Nagy <kristofn@protonmail.ch>
2022-07-27dhcpv4: add unit tests for NewRenewFromOfferDennis Marttinen
Signed-off-by: Dennis Marttinen <twelho@welho.tech>