*: 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>
This commit is contained in:
Donald Sharp 2024-01-04 14:26:33 -05:00
parent ca54540576
commit 75b3e82dfa
4 changed files with 4 additions and 2 deletions

View file

@ -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 */

View file

@ -13,6 +13,7 @@
*/
#include <zebra.h>
#include <netinet/icmp6.h>
#include <netinet/ip6.h>
#include "lib/memory.h"

View file

@ -5,6 +5,8 @@
*/
#include <zebra.h>
#include <netinet/icmp6.h>
#include "log.h"
#include "privs.h"
#include "if.h"

View file

@ -6,6 +6,7 @@
*/
#include <zebra.h>
#include <netinet/icmp6.h>
#include "memory.h"
#include "sockopt.h"