summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions/ebt_vlan.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/extensions/ebt_vlan.c
parent15446509a5e6a78d851e979e7a3e49849ce92c69 (diff)
cosmetic improvements and some bugfixes (global description)
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_vlan.c')
-rw-r--r--userspace/ebtables2/extensions/ebt_vlan.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/userspace/ebtables2/extensions/ebt_vlan.c b/userspace/ebtables2/extensions/ebt_vlan.c
index 148cd87..51f9768 100644
--- a/userspace/ebtables2/extensions/ebt_vlan.c
+++ b/userspace/ebtables2/extensions/ebt_vlan.c
@@ -32,8 +32,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
#include <string.h>
#include <getopt.h>
#include "../include/ebtables_u.h"
@@ -106,7 +104,7 @@ parse (int c,
(struct ebt_vlan_info *) (*match)->data;
unsigned long i;
char *end;
- __u16 encap;
+ uint16_t encap;
switch (c) {
case VLAN_ID:
/*
@@ -128,7 +126,7 @@ parse (int c,
/*
* Convert argv to long int,
* set *end to end of argv string,
- * base set 10 for decimal only
+ * base set 10 for decimal only
*/
(unsigned short) i = strtol (argv[optind - 1], &end, 10);
/*
@@ -335,7 +333,7 @@ static struct ebt_u_match vlan_match = {
final_check,
print,
compare,
- opts,
+ opts
};
static void _init (void) __attribute__ ((constructor));