diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 20:26:33 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 20:26:33 +0100 |
commit | 75b3e82dfa88d85782d0b08fe80e2e4e15abfb6b (patch) | |
tree | 2cd21a3b212dd180c57220634d1a7ef053d292fb | |
parent | lib: Remove inclusion of various MAXINT from zebra.h (diff) | |
download | frr-75b3e82dfa88d85782d0b08fe80e2e4e15abfb6b.tar.xz frr-75b3e82dfa88d85782d0b08fe80e2e4e15abfb6b.zip |
*: Remove cost of including netinet/icmp.h everywhere
This file inclusion is only used in 3 places move
the includes to those spots.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r-- | lib/zebra.h | 2 | ||||
-rw-r--r-- | pimd/pim6_mld.c | 1 | ||||
-rw-r--r-- | pimd/pim_mroute.c | 2 | ||||
-rw-r--r-- | zebra/rtadv.c | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index 362037bf5..39f5ae9bf 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -134,8 +134,6 @@ #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 */ diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index 20ef9216a..a39d18299 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -13,6 +13,7 @@ */ #include <zebra.h> +#include <netinet/icmp6.h> #include <netinet/ip6.h> #include "lib/memory.h" diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 7ea6ed9e1..e1b861b45 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -5,6 +5,8 @@ */ #include <zebra.h> +#include <netinet/icmp6.h> + #include "log.h" #include "privs.h" #include "if.h" diff --git a/zebra/rtadv.c b/zebra/rtadv.c index df444ee52..00f018d19 100644 --- a/zebra/rtadv.c +++ b/zebra/rtadv.c @@ -6,6 +6,7 @@ */ #include <zebra.h> +#include <netinet/icmp6.h> #include "memory.h" #include "sockopt.h" |