Skip to content

Commit

Permalink
bfdd,isisd,nhrpd: cleanup if_ether.h
Browse files Browse the repository at this point in the history
Cleanup if_ether.h

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Jan 12, 2024
1 parent ab11d1f commit 139f116
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions bfdd/bfd_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/if_packet.h>
#endif /* BFD_LINUX */

#include <net/if_arp.h>
#include <netinet/if_ether.h>
#include <netinet/udp.h>

Expand Down
3 changes: 3 additions & 0 deletions isisd/isis_bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
#include <fcntl.h>

#if ISIS_METHOD == ISIS_METHOD_BPF
#ifndef GNU_LINUX
#include <net/if_arp.h>
#include <netinet/if_ether.h>
#endif /* !GNU_LINUX */
#include <sys/time.h>
#include <sys/ioctl.h>
#include <net/bpf.h>
Expand Down
7 changes: 3 additions & 4 deletions isisd/isis_circuit.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
* Institute of Communications Engineering
*/
#include <zebra.h>
#ifdef GNU_LINUX
#include <net/ethernet.h>
#else
#ifndef GNU_LINUX
#include <net/if_arp.h>
#include <netinet/if_ether.h>
#endif
#endif /* !GNU_LINUX */

#include "log.h"
#include "memory.h"
Expand Down
2 changes: 2 additions & 0 deletions isisd/isis_dlpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#include <zebra.h>
#if ISIS_METHOD == ISIS_METHOD_DLPI
#ifndef GNU_LINUX
#include <netinet/if_ether.h>
#endif /* !GNU_LINUX */
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
Expand Down
1 change: 0 additions & 1 deletion nhrpd/netlink_arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#endif

#include <fcntl.h>
#include <netinet/if_ether.h>
#include <linux/netlink.h>
#include <linux/neighbour.h>
#include <linux/netfilter/nfnetlink_log.h>
Expand Down
2 changes: 2 additions & 0 deletions nhrpd/nhrp_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

#include <fcntl.h>
#include <net/ethernet.h>
#ifndef GNU_LINUX
#include <netinet/if_ether.h>
#endif /* !GNU_LINUX */
#include <linux/netlink.h>
#include <linux/neighbour.h>
#include <linux/netfilter/nfnetlink_log.h>
Expand Down

0 comments on commit 139f116

Please sign in to comment.