diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-07-25 04:03:41 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-08 23:25:08 +0200 |
commit | 6ed8494935ce9639a111dceb04415a20a7053fb0 (patch) | |
tree | 6bac15f221c82fa2c423417e20d91900700f5fcc | |
parent | bfdd: code refactory for simplification (diff) | |
download | frr-6ed8494935ce9639a111dceb04415a20a7053fb0.tar.xz frr-6ed8494935ce9639a111dceb04415a20a7053fb0.zip |
bfdd: clean up header inclusion
Most of the headers we need are included by zebra.h, so lets simplify
this.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
-rw-r--r-- | bfdd/bfd.c | 19 | ||||
-rw-r--r-- | bfdd/bfd_packet.c | 10 | ||||
-rw-r--r-- | bfdd/bfdd.c | 9 | ||||
-rw-r--r-- | bfdd/control.c | 9 | ||||
-rw-r--r-- | bfdd/log.c | 4 |
5 files changed, 1 insertions, 50 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c index 8592f6e3c..09499ad2c 100644 --- a/bfdd/bfd.c +++ b/bfdd/bfd.c @@ -27,25 +27,6 @@ #include <zebra.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/uio.h> -#include <netinet/in.h> -#include <net/if.h> -#include <arpa/inet.h> -#include <sys/ioctl.h> - -#include <err.h> -#include <errno.h> -#include <stdio.h> -#include <stdbool.h> -#include <stdlib.h> -#include <unistd.h> -#include <netdb.h> -#include <time.h> -#include <signal.h> - -#include "lib/hash.h" #include "lib/jhash.h" #include "bfd.h" diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c index 79aa706a5..17c248619 100644 --- a/bfdd/bfd_packet.c +++ b/bfdd/bfd_packet.c @@ -30,18 +30,8 @@ #include <linux/if_packet.h> #endif /* BFD_LINUX */ -#include <arpa/inet.h> #include <netinet/if_ether.h> -#include <netinet/in.h> -#include <netinet/ip.h> #include <netinet/udp.h> -#include <sys/types.h> -#include <sys/socket.h> - -#include <err.h> -#include <errno.h> -#include <stdint.h> -#include <unistd.h> #include "lib/sockopt.h" diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c index 515142243..144619088 100644 --- a/bfdd/bfdd.c +++ b/bfdd/bfdd.c @@ -20,16 +20,9 @@ #include <zebra.h> -#include <err.h> -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> - #include "bfd.h" #include "lib/version.h" -#include "lib/libfrr.h" + /* * FRR related code. diff --git a/bfdd/control.c b/bfdd/control.c index 7c6b60db5..7e586dbb4 100644 --- a/bfdd/control.c +++ b/bfdd/control.c @@ -25,17 +25,8 @@ #include <zebra.h> -#include <sys/socket.h> -#include <sys/stat.h> -#include <sys/types.h> #include <sys/un.h> -#include <err.h> -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> - #include "bfd.h" /* diff --git a/bfdd/log.c b/bfdd/log.c index 8561956d6..d81d7cd9b 100644 --- a/bfdd/log.c +++ b/bfdd/log.c @@ -25,10 +25,6 @@ #include <zebra.h> -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> - #include "bfd.h" #include "lib/log_int.h" |