diff options
author | Patrick McHardy <kaber@trash.net> | 2011-05-11 13:43:44 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-05-11 13:43:44 +0200 |
commit | 8075493a00e06857147263574333df4073ea671b (patch) | |
tree | 6d8b7e0d6179282f0e4037a52c1f834c835780ea /extensions/libxt_TPROXY.c | |
parent | 77b6230adfe51836ad5b31b41638b43e9b0062e2 (diff) | |
parent | 73425492d4c57d34a616d948666ac75ecc612eed (diff) |
Merge branch 'opts' of git://dev.medozas.de/iptables
Diffstat (limited to 'extensions/libxt_TPROXY.c')
-rw-r--r-- | extensions/libxt_TPROXY.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libxt_TPROXY.c b/extensions/libxt_TPROXY.c index 5264ea7d..61646c93 100644 --- a/extensions/libxt_TPROXY.c +++ b/extensions/libxt_TPROXY.c @@ -22,7 +22,7 @@ enum { static const struct xt_option_entry tproxy_tg0_opts[] = { {.name = "on-port", .id = P_PORT, .type = XTTYPE_PORT_NE, .flags = XTOPT_MAND | XTOPT_PUT, XTOPT_POINTER(s, lport)}, - {.name = "on-ip", .id = P_ADDR, .type = XTTYPE_ONEHOST}, + {.name = "on-ip", .id = P_ADDR, .type = XTTYPE_HOST}, {.name = "tproxy-mark", .id = P_MARK, .type = XTTYPE_MARKMASK32}, XTOPT_TABLEEND, }; @@ -31,7 +31,7 @@ static const struct xt_option_entry tproxy_tg0_opts[] = { static const struct xt_option_entry tproxy_tg1_opts[] = { {.name = "on-port", .id = P_PORT, .type = XTTYPE_PORT_NE, .flags = XTOPT_MAND | XTOPT_PUT, XTOPT_POINTER(s, lport)}, - {.name = "on-ip", .id = P_ADDR, .type = XTTYPE_ONEHOST, + {.name = "on-ip", .id = P_ADDR, .type = XTTYPE_HOST, .flags = XTOPT_PUT, XTOPT_POINTER(s, laddr)}, {.name = "tproxy-mark", .id = P_MARK, .type = XTTYPE_MARKMASK32}, XTOPT_TABLEEND, @@ -129,7 +129,7 @@ static void tproxy_tg0_parse(struct xt_option_call *cb) info->mark_mask = cb->val.mask; break; case P_ADDR: - info->laddr = cb->val.inetaddr.ip; + info->laddr = cb->val.haddr.ip; break; } } |