WIP: rebase fork onto upstream/main (v1.103.0) #15

Closed
codinget wants to merge 670 commits from webnet into save/webnet-2026-07-29
Showing only changes of commit 5d56cc8512 - Show all commits
+3
View File
@@ -416,6 +416,9 @@ func (e errorChainNotFound) Error() string {
// getChainFromTable returns the chain with the given name from the given table.
// Note that a chain name is unique within a table.
func getChainFromTable(c *nftables.Conn, table *nftables.Table, name string) (*nftables.Chain, error) {
if table == nil {
return nil, fmt.Errorf("could not get chain %q: table not initialized", name)
}
chains, err := c.ListChainsOfTableFamily(table.Family)
if err != nil {
return nil, fmt.Errorf("list chains: %w", err)