summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-08-13 16:08:08 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-08-13 16:08:08 +0000
commit91700a08acd8f20f3e30a338993909c605e26487 (patch)
tree4d22552a17691cf493eaf194c9077672745bf615 /userspace/ebtables2/ebtables.c
parent15446509a5e6a78d851e979e7a3e49849ce92c69 (diff)
cosmetic improvements and some bugfixes (global description)
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r--userspace/ebtables2/ebtables.c6
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;