Receive: netlink receive: numerical result out of range
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Description
Getting the following error:
```
Receive: netlink receive: numerical result out of range
```
It is somehow kernel related. It appeared when I was testing on CentoOS 7 with `Linux test1.local 3.10.0-1127.18.2.el7.x86_64 #1 SMP Sun Jul 26 15:27:06 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux`. It was not happening with CentOS 8.
The code triggering the issue:
```go
// Add a new chain
// defaultDropPolicy := nftables.ChainPolicyDrop
chain := p.conn.AddChain(&nftables.Chain{
Name: chainName,
//Table: addr.table,
Table: &nftables.Table{Name: addr.table.Name, Family: addr.table.Family},
//Type: nftables.ChainTypeFilter,
//Hooknum: nftables.ChainHookForward,
//Priority: nftables.ChainPriorityFilter,
//Policy: &defaultDropPolicy,
})
if err := p.conn.Flush(); err != nil {
return fmt.Errorf(
"failed adding chain %s for address %v of interface %s: %s",
chainName, addr.conf, intfName, err,
)
}
```
It looks related to: https://github.com/google/nftables/issues/62
Contributor guide
Assessment
This issue has not been assessed yet.