summaryrefslogtreecommitdiff
path: root/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
commit9cfd654314d5718393b847758ded6ef86530e5c6 (patch)
tree5627fb56a1ba249a06561e8d47fc961560388ba8 /ebtables.c
parentb3dbdfb2b63c3f87edba502230b12e7daa5c354f (diff)
downloadebtables-9cfd654314d5718393b847758ded6ef86530e5c6.tar.gz
cosmetic improvements and some bugfixes (global description)
Diffstat (limited to 'ebtables.c')
-rw-r--r--ebtables.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ebtables.c b/ebtables.c
index fc0c8c2..e62ea2d 100644
--- a/ebtables.c
+++ b/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;