diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-07-26 12:47:33 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-07-26 12:47:33 +0000 |
commit | e3cceb7a2986d24aa6de89fd4481f79eba1a1e51 (patch) | |
tree | fb1a822a51ddec27cd7af7d95984574f3ce890fe | |
parent | 4c4447d85b6c84c3da21c8f70650abffdf7b33ec (diff) |
bugfix
-rw-r--r-- | communication.c | 11 | ||||
-rw-r--r-- | include/ebtables_u.h | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/communication.c b/communication.c index 59d5395..6414f66 100644 --- a/communication.c +++ b/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/include/ebtables_u.h b/include/ebtables_u.h index 09b7e58..fa34e18 100644 --- a/include/ebtables_u.h +++ b/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; |