From 75b3e82dfa88d85782d0b08fe80e2e4e15abfb6b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 Jan 2024 14:26:33 -0500 Subject: [PATCH] *: 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 --- lib/zebra.h | 2 -- pimd/pim6_mld.c | 1 + pimd/pim_mroute.c | 2 ++ 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 #endif /* HAVE_NETINET6_IP6_H */ -#include - #ifdef HAVE_NETINET6_ND6_H #include #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 +#include #include #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 +#include + #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 +#include #include "memory.h" #include "sockopt.h"