diff options
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r-- | userspace/ebtables2/ebtables.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c index fc0c8c2..e62ea2d 100644 --- a/userspace/ebtables2/ebtables.c +++ b/userspace/ebtables2/ebtables.c @@ -23,14 +23,9 @@ #include <getopt.h> #include <string.h> -#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> -#include <sys/socket.h> -#include <sys/types.h> -#include <linux/netfilter_bridge/ebtables.h> -#include <netinet/in.h> #include <netinet/ether.h> #include "include/ebtables_u.h" #include <unistd.h> @@ -440,6 +435,7 @@ static int get_a_line(char *buffer, char *value, FILE *ifp) // translate a hexadecimal number to a protocol name, parsing /etc/ethertypes // returns 0 on success +// this the name buffer to be of size 21 int number_to_name(unsigned short proto, char *name) { FILE *ifp; |