diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-05-04 16:41:13 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-05-09 00:45:12 +0200 |
commit | d7282413763b0ba85d512c1cd49174b762ff449c (patch) | |
tree | 01affe674bb821abea74a8113af4d90ff49fdeaf /extensions/libxt_TEE.c | |
parent | 51a746e6b1d66ca546fd2f8a1f7809868174e637 (diff) |
libxtables: do not overlay addr and mask parts, and cleanup
XTTYPE_HOSTMASK will require that what has now become haddr,
hmask/hlen are not overlays of another. Thus relax the structure and
always set all members of the {haddr, hmask, hlen} triplet now for all
types that touch any of the members.
Add some more comments and clean out ONEHOST.
Diffstat (limited to 'extensions/libxt_TEE.c')
-rw-r--r-- | extensions/libxt_TEE.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_TEE.c b/extensions/libxt_TEE.c index fd9a1b23..c89e5809 100644 --- a/extensions/libxt_TEE.c +++ b/extensions/libxt_TEE.c @@ -31,7 +31,7 @@ enum { #define s struct xt_tee_tginfo static const struct xt_option_entry tee_tg_opts[] = { - {.name = "gateway", .id = O_GATEWAY, .type = XTTYPE_ONEHOST, + {.name = "gateway", .id = O_GATEWAY, .type = XTTYPE_HOST, .flags = XTOPT_MAND | XTOPT_PUT, XTOPT_POINTER(s, gw)}, {.name = "oif", .id = O_OIF, .type = XTTYPE_STRING, .flags = XTOPT_PUT, XTOPT_POINTER(s, oif)}, |