summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/communication.c11
-rw-r--r--userspace/ebtables2/include/ebtables_u.h8
2 files changed, 9 insertions, 10 deletions
diff --git a/userspace/ebtables2/communication.c b/userspace/ebtables2/communication.c
index 59d5395..6414f66 100644
--- a/userspace/ebtables2/communication.c
+++ b/userspace/ebtables2/communication.c
@@ -32,8 +32,7 @@ static void get_sockfd()
sockfd = socket(AF_INET, SOCK_RAW, PF_INET);
if (sockfd < 0)
print_error("Problem getting a socket, "
- "you probably don't have the right "
- "permissions");
+ "do you have the right permissions?");
}
}
@@ -424,10 +423,10 @@ ebt_translate_entry(struct ebt_entry *e, unsigned int *hook, int *n, int *cnt,
new->bitmask &= ~EBT_ENTRY_OR_ENTRIES;
new->invflags = e->invflags;
new->ethproto = e->ethproto;
- strcmp(new->in, e->in);
- strcmp(new->out, e->out);
- strcmp(new->logical_in, e->logical_in);
- strcmp(new->logical_out, e->logical_out);
+ strcpy(new->in, e->in);
+ strcpy(new->out, e->out);
+ strcpy(new->logical_in, e->logical_in);
+ strcpy(new->logical_out, e->logical_out);
memcpy(new->sourcemac, e->sourcemac, sizeof(new->sourcemac));
memcpy(new->sourcemsk, e->sourcemsk, sizeof(new->sourcemsk));
memcpy(new->destmac, e->destmac, sizeof(new->destmac));
diff --git a/userspace/ebtables2/include/ebtables_u.h b/userspace/ebtables2/include/ebtables_u.h
index 09b7e58..fa34e18 100644
--- a/userspace/ebtables2/include/ebtables_u.h
+++ b/userspace/ebtables2/include/ebtables_u.h
@@ -101,10 +101,10 @@ struct ebt_u_entry
char logical_in[IFNAMSIZ];
char out[IFNAMSIZ];
char logical_out[IFNAMSIZ];
- char sourcemac[ETH_ALEN];
- char sourcemsk[ETH_ALEN];
- char destmac[ETH_ALEN];
- char destmsk[ETH_ALEN];
+ unsigned char sourcemac[ETH_ALEN];
+ unsigned char sourcemsk[ETH_ALEN];
+ unsigned char destmac[ETH_ALEN];
+ unsigned char destmsk[ETH_ALEN];
struct ebt_u_match_list *m_list;
struct ebt_u_watcher_list *w_list;
struct ebt_entry_target *t;