]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_ipvs: restore network-byte order
authorJan Engelhardt <jengelh@medozas.de>
Sun, 22 May 2011 22:22:27 +0000 (00:22 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Tue, 24 May 2011 12:54:27 +0000 (14:54 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libxt_ipvs.c

index 88d235f6afeb8f809c1a9ee0dcbbc7b45a859b82..46727660a027a04d9b4a500a6565d969a10f00aa 100644 (file)
@@ -32,12 +32,14 @@ static const struct xt_option_entry ipvs_mt_opts[] = {
        {.name = "vaddr", .id = O_VADDR, .type = XTTYPE_HOSTMASK,
         .flags = XTOPT_INVERT},
        {.name = "vport", .id = O_VPORT, .type = XTTYPE_PORT,
-        .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, vport)},
+        .flags = XTOPT_NBO | XTOPT_INVERT | XTOPT_PUT,
+        XTOPT_POINTER(s, vport)},
        {.name = "vdir", .id = O_VDIR, .type = XTTYPE_STRING},
        {.name = "vmethod", .id = O_VMETHOD, .type = XTTYPE_STRING,
         .flags = XTOPT_INVERT},
        {.name = "vportctl", .id = O_VPORTCTL, .type = XTTYPE_PORT,
-        .flags = XTOPT_INVERT | XTOPT_PUT, XTOPT_POINTER(s, vportctl)},
+        .flags = XTOPT_NBO | XTOPT_INVERT | XTOPT_PUT,
+        XTOPT_POINTER(s, vportctl)},
        XTOPT_TABLEEND,
 };
 #undef s