diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-02-09 16:52:50 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-02-09 18:06:27 +0100 |
commit | 8df4253ba73246d31f2e65f2004da3f9890c22c5 (patch) | |
tree | 66135ca48448d615869071fa4b210a1bee8524ea /src/odhcpd.c | |
parent | b02f3e6ddfca200643b37bfaae233dc20f1348a4 (diff) |
ndp: harden netlink event socket error handling
Start with a netlink receive buffersize of 130k for the netlink event socket;
double the netlink receive buffer size in case an ENOBUFS is reported.
Also align function naming and its parameters.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r-- | src/odhcpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odhcpd.c b/src/odhcpd.c index 97d33e1..22a27a4 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -476,7 +476,7 @@ static void odhcpd_receive_packets(struct uloop_fd *u, _unused unsigned int even getsockopt(u->fd, SOL_SOCKET, SO_ERROR, &ret, &ret_len); u->error = false; if (e->handle_error) - e->handle_error(ret); + e->handle_error(e, ret); } if (e->recv_msgs) { |