Skip to content

Commit

Permalink
README: fix name
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed May 1, 2024
1 parent e5252c4 commit 7deeace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func main() {
}
defer nf.Close()

// NoENOBUFS - avoid fatal error if netlink buffer overflows.
if err := rtnl.SetOption(netlink.NoENOBUFS, true); err != nil {
// Avoid receiving ENOBUFS errors.
if err := nf.SetOption(netlink.NoENOBUFS, true); err != nil {
fmt.Fprintf(os.Stderr, "failed to set netlink option %v: %v",
netlink.NoENOBUFS, err)
return
Expand Down

0 comments on commit 7deeace

Please sign in to comment.