summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorgborowiak <gborowiak>2003-09-07 21:03:26 +0000
committergborowiak <gborowiak>2003-09-07 21:03:26 +0000
commitee0a7bdea76c9a744f98a8780a14babe49fddba5 (patch)
treeeb6394dcce053795669ca67f2bc868e9304bad88 /extensions
parent66bbdc0a1634af7b6534b78d24aec2962881de33 (diff)
downloadebtables-ee0a7bdea76c9a744f98a8780a14babe49fddba5.tar.gz
ebtables-ee0a7bdea76c9a744f98a8780a14babe49fddba5.tar.bz2
ebtables-ee0a7bdea76c9a744f98a8780a14babe49fddba5.zip
Changed to new fashion (print_mac, named fields...)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/ebt_among.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/extensions/ebt_among.c b/extensions/ebt_among.c
index df98b9a..16502b2 100644
--- a/extensions/ebt_among.c
+++ b/extensions/ebt_among.c
@@ -281,7 +281,7 @@ static void wormhash_printout(const struct ebt_mac_wormhash *wh)
offset = wh->table[i];
while (offset) {
p = (const struct ebt_mac_wormhash_tuple*)((const char*)wh + offset);
- printf("%s", ether_ntoa((const struct ether_addr *)(((const char*)&p->cmp[0]) + 2)));
+ print_mac(((const char*)&p->cmp[0]) + 2);
if (p->ip) {
ip = (unsigned char*)&p->ip;
printf("=%u.%u.%u.%u", ip[0], ip[1], ip[2], ip[3]);
@@ -340,15 +340,15 @@ static int compare(const struct ebt_entry_match *m1,
static struct ebt_u_match among_match =
{
- EBT_AMONG_MATCH,
- sizeof(struct ebt_among_info),
- print_help,
- init,
- parse,
- final_check,
- print,
- compare,
- opts
+ .name = EBT_AMONG_MATCH,
+ .size = sizeof(struct ebt_among_info),
+ .help = print_help,
+ .init = init,
+ .parse = parse,
+ .final_check = final_check,
+ .print = print,
+ .compare = compare,
+ .extra_ops = opts,
};
static void _init(void) __attribute__ ((constructor));