summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-02-09 16:52:50 +0100
committerHans Dedecker <dedeckeh@gmail.com>2017-02-09 18:06:27 +0100
commit8df4253ba73246d31f2e65f2004da3f9890c22c5 (patch)
tree66135ca48448d615869071fa4b210a1bee8524ea /src/odhcpd.h
parentb02f3e6ddfca200643b37bfaae233dc20f1348a4 (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.h')
-rw-r--r--src/odhcpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h
index fb6b182..393194c 100644
--- a/src/odhcpd.h
+++ b/src/odhcpd.h
@@ -66,8 +66,8 @@ struct odhcpd_event {
struct uloop_fd uloop;
void (*handle_dgram)(void *addr, void *data, size_t len,
struct interface *iface, void *dest_addr);
- void (*handle_error)(int error);
- void (*recv_msgs)(struct odhcpd_event *ev);
+ void (*handle_error)(struct odhcpd_event *e, int error);
+ void (*recv_msgs)(struct odhcpd_event *e);
};