diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:26:33 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:26:33 -0500 | 
| commit | 75b3e82dfa88d85782d0b08fe80e2e4e15abfb6b (patch) | |
| tree | 2cd21a3b212dd180c57220634d1a7ef053d292fb | |
| parent | ca5454057678927d5e4b244ab49fedc448198f0c (diff) | |
*: 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 362037bf54..39f5ae9bf6 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 20ef9216a9..a39d182990 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 7ea6ed9e14..e1b861b45b 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 df444ee523..00f018d192 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"  | 
