define READ_BUF_SIZE like the other daemons.
-/* $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>
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))];
-/* $OpenBSD: ripd.h,v 1.27 2021/01/19 10:18:56 claudio Exp $ */
+/* $OpenBSD: ripd.h,v 1.28 2021/01/19 10:28:07 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
#define NBR_TIMEOUT 180
+#define READ_BUF_SIZE 65535
+#define RT_BUF_SIZE 16384
#define RT_BUF_SIZE 16384
#define MAX_RTSOCK_BUF (2 * 1024 * 1024)