nftables icon indicating copy to clipboard operation
nftables copied to clipboard

Netlink conn retry logic

Open turekt opened this issue 3 years ago • 0 comments

Hi,

I have introduced an additional function to the conn.go file which implements receive of netlink messages with retries. This should fix issue #175.

For some reason, in a lasting connection netlink sends a "no error" message with NLM_F_CAPPED flag set, and afterwards sends the actual message. Therefore, since there is nothing special to handle upon receiving the NLM_F_CAPPED + "no error" message, we can just drop the message and receive the next non-error message which should be the expected response.

Let me know what you think about this approach.

turekt avatar Sep 21 '22 19:09 turekt