]> git.ipfire.org Git - thirdparty/nftables.git/commit
iface: handle EINTR case when creating the cache
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Jan 2022 18:05:55 +0000 (19:05 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Jan 2022 10:32:38 +0000 (11:32 +0100)
commit9b87bb9e1d8db6a95aabab20176638cfebdf38e0
tree1807df76d2f9a7ded4c72ccf93ab996693c37023
parentd0f14b5337e7480c03a31af483d4d94aa4291771
iface: handle EINTR case when creating the cache

If interface netlink dump is interrupted, then retry.

Before this patch, the netlink socket is reopened to drop stale dump
messages, instead empty the netlink queue and retry.

Reviewed-by: Eugene Crosser <crosser@average.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/iface.c