diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-01-19 10:28:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-01-19 10:28:08 +0000 |
commit | 308e9d7105e5d5b5e17cd1a7904424bbca4b1441 (patch) | |
tree | c3388251aed0abbdcc4fedf02d16e9d7bd1c117c /usr.sbin/ripd/packet.c | |
parent | 3c4209a8166c2d9766dfc8486c3ced1496d8adf0 (diff) |
Do not use IBUF_READ_SIZE for the packet read buffer size. Instead
define READ_BUF_SIZE like the other daemons.
Diffstat (limited to 'usr.sbin/ripd/packet.c')
-rw-r--r-- | usr.sbin/ripd/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/packet.c b/usr.sbin/ripd/packet.c index cc10965b1f5..87afdf871d1 100644 --- a/usr.sbin/ripd/packet.c +++ b/usr.sbin/ripd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.14 2021/01/19 10:02:22 claudio Exp $ */ +/* $OpenBSD: packet.c,v 1.15 2021/01/19 10:28:07 claudio Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -78,7 +78,7 @@ send_packet(struct iface *iface, void *pkt, size_t len, struct sockaddr_in *dst) void recv_packet(int fd, short event, void *bula) { - static char pkt_ptr[IBUF_READ_SIZE]; + static char pkt_ptr[READ_BUF_SIZE]; union { struct cmsghdr hdr; char buf[CMSG_SPACE(sizeof(struct sockaddr_dl))]; |