diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-08-13 16:08:08 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-08-13 16:08:08 +0000 |
commit | 9cfd654314d5718393b847758ded6ef86530e5c6 (patch) | |
tree | 5627fb56a1ba249a06561e8d47fc961560388ba8 /ebtables.c | |
parent | b3dbdfb2b63c3f87edba502230b12e7daa5c354f (diff) | |
download | ebtables-9cfd654314d5718393b847758ded6ef86530e5c6.tar.gz |
cosmetic improvements and some bugfixes (global description)
Diffstat (limited to 'ebtables.c')
-rw-r--r-- | ebtables.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; |