summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2010-04-22 06:57:57 +0000
committerBart De Schuymer <bdschuym@pandora.be>2010-04-22 06:57:57 +0000
commite07346758c18181f1ebfacd588a2e39fe56f7767 (patch)
tree71b9ff68c377773d4d2a587dd54c37452d84c61c /userspace/ebtables2/extensions
parenta8a90792dbe91a698f2cf037e65d8742494a0811 (diff)
fix --among-dst-file, which translated into --among-src (reported by Thierry Watelet)
Diffstat (limited to 'userspace/ebtables2/extensions')
-rw-r--r--userspace/ebtables2/extensions/ebt_among.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/ebtables2/extensions/ebt_among.c b/userspace/ebtables2/extensions/ebt_among.c
index 9a30f3a..d6c6885 100644
--- a/userspace/ebtables2/extensions/ebt_among.c
+++ b/userspace/ebtables2/extensions/ebt_among.c
@@ -365,7 +365,7 @@ static int parse(int c, char **argv, int argc,
ebt_mac_wormhash_size(wh));
h->match_size = EBT_ALIGN(new_size);
info = (struct ebt_among_info *) h->data;
- if (c == AMONG_DST) {
+ if (c == AMONG_DST || c == AMONG_DST_F) {
info->wh_dst_ofs = old_size;
} else {
info->wh_src_ofs = old_size;