-/* $OpenBSD: eigrpe.c,v 1.36 2018/08/05 08:10:35 mestre Exp $ */
+/* $OpenBSD: eigrpe.c,v 1.37 2021/01/19 10:31:12 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
TAILQ_INIT(&ctl_conns);
control_listen();
- if ((pkt_ptr = calloc(1, READ_BUF_SIZE)) == NULL)
- fatal("eigrpe");
-
event_dispatch();
eigrpe_shutdown();
/* clean up */
free(iev_rde);
free(iev_main);
- free(pkt_ptr);
log_info("eigrp engine exiting");
exit(0);
-/* $OpenBSD: eigrpe.h,v 1.16 2017/02/22 14:24:50 renato Exp $ */
+/* $OpenBSD: eigrpe.h,v 1.17 2021/01/19 10:31:12 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
void send_reply(struct nbr *, struct rinfo_head *, int);
void recv_reply(struct nbr *, struct rinfo_head *, int);
-char *pkt_ptr; /* packet buffer */
-
#endif /* _EIGRPE_H_ */
-/* $OpenBSD: packet.c,v 1.18 2016/09/02 16:44:33 renato Exp $ */
+/* $OpenBSD: packet.c,v 1.19 2021/01/19 10:31:12 claudio Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
void
recv_packet(int fd, short event, void *bula)
{
+ static char pkt_ptr[READ_BUF_SIZE];
union {
struct cmsghdr hdr;
char buf[CMSG_SPACE(CMSG_MAXLEN)];