From 308e9d7105e5d5b5e17cd1a7904424bbca4b1441 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 19 Jan 2021 10:28:08 +0000 Subject: Do not use IBUF_READ_SIZE for the packet read buffer size. Instead define READ_BUF_SIZE like the other daemons. --- usr.sbin/ripd/packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ripd/packet.c') 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 @@ -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))]; -- cgit v1.2.3