summaryrefslogtreecommitdiff
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-05 09:40:56 -0500
committerGitHub <noreply@github.com>2024-01-05 09:40:56 -0500
commit43331c0d7874be943eaa4cf2bf075ffd5ac2463a (patch)
treed36531421062329e769c7791567431eff67d9b78 /lib/zebra.h
parent8d7d560e70e00366313d790212db9c6a6ee948e0 (diff)
parent496d87c14f59345ecf851084e9c6a1ebe2a5ae60 (diff)
Merge pull request #15092 from donaldsharp/lib_zebra_h_cleanup
Lib zebra h cleanup
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index e5021df22b..06be33f5dd 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -22,7 +22,6 @@
#include <signal.h>
#include <string.h>
#include <pwd.h>
-#include <grp.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif /* HAVE_STROPTS_H */
@@ -37,19 +36,14 @@
#include <sys/sysctl.h>
#endif
#endif /* HAVE_SYS_SYSCTL_H */
-#include <sys/ioctl.h>
#ifdef HAVE_SYS_CONF_H
#include <sys/conf.h>
#endif /* HAVE_SYS_CONF_H */
#ifdef HAVE_SYS_KSYM_H
#include <sys/ksym.h>
#endif /* HAVE_SYS_KSYM_H */
-#include <syslog.h>
#include <sys/time.h>
#include <time.h>
-#include <sys/uio.h>
-#include <sys/utsname.h>
-#include <sys/resource.h>
#include <limits.h>
#include <inttypes.h>
#include <stdbool.h>
@@ -63,11 +57,6 @@
/* misc include group */
#include <stdarg.h>
-#ifdef HAVE_LCAPS
-#include <sys/capability.h>
-#include <sys/prctl.h>
-#endif /* HAVE_LCAPS */
-
/* network include group */
#include <sys/socket.h>
@@ -83,15 +72,9 @@
#endif
#endif
-#ifdef CRYPTO_OPENSSL
-#include <openssl/evp.h>
-#include <openssl/hmac.h>
-#endif
-
#include "openbsd-tree.h"
#include <netinet/in.h>
-#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
@@ -144,32 +127,10 @@
#include <netinet6/ip6.h>
#endif /* HAVE_NETINET6_IP6_H */
-#include <netinet/icmp6.h>
-
#ifdef HAVE_NETINET6_ND6_H
#include <netinet6/nd6.h>
#endif /* HAVE_NETINET6_ND6_H */
-/* Some systems do not define UINT32_MAX, etc.. from inttypes.h
- * e.g. this makes life easier for FBSD 4.11 users.
- */
-#ifndef INT16_MAX
-#define INT16_MAX (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
-#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX (4294967295U)
-#endif
-
-#ifdef HAVE_GLIBC_BACKTRACE
-#include <execinfo.h>
-#endif /* HAVE_GLIBC_BACKTRACE */
-
/* Local includes: */
#if !defined(__GNUC__)
#define __attribute__(x)
@@ -203,26 +164,6 @@ size_t strlcpy(char *__restrict dest,
void explicit_bzero(void *buf, size_t len);
#endif
-#if !defined(HAVE_STRUCT_MMSGHDR_MSG_HDR) || !defined(HAVE_SENDMMSG)
-/* avoid conflicts in case we have partial support */
-#define mmsghdr frr_mmsghdr
-#define sendmmsg frr_sendmmsg
-
-struct mmsghdr {
- struct msghdr msg_hdr;
- unsigned int msg_len;
-};
-
-/* just go 1 at a time here, the loop this is used in will handle the rest */
-static inline int sendmmsg(int fd, struct mmsghdr *mmh, unsigned int len,
- int flags)
-{
- int rv = sendmsg(fd, &mmh->msg_hdr, 0);
-
- return rv > 0 ? 1 : rv;
-}
-#endif
-
/*
* RFC 3542 defines several macros for using struct cmsghdr.
* Here, we define those that are not present