diff options
Diffstat (limited to 'pkg/csource/generated.go')
| -rw-r--r-- | pkg/csource/generated.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 86c03f8d2..987253a5e 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1224,6 +1224,10 @@ static int netlink_send_ext(struct nlmsg* nlmsg, int sock, if (n != hdr->nlmsg_len) fail("short netlink write: %d/%d", n, hdr->nlmsg_len); n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); + if (hdr->nlmsg_type == NLMSG_DONE) { + *reply_len = 0; + return 0; + } if (n < sizeof(struct nlmsghdr)) fail("short netlink read: %d", n); if (reply_len && hdr->nlmsg_type == reply_type) { |
