]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
datatype: missing byteorder in string_type
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 14 Dec 2014 17:01:00 +0000 (18:01 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Dec 2014 17:23:22 +0000 (18:23 +0100)
nft add rule filter input iifname { "lo", "eth0" } counter

Now the listing shows:

iifname { "lo", "eth0"}

instead of:

iifname { "", ""}

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/datatype.c

index 4519d87038f7b3fb1e46b344956dcb751483fdb9..7f730776d66716261c9857de1b78a19d63572a70 100644 (file)
@@ -324,6 +324,7 @@ const struct datatype string_type = {
        .type           = TYPE_STRING,
        .name           = "string",
        .desc           = "string",
+       .byteorder      = BYTEORDER_HOST_ENDIAN,
        .print          = string_type_print,
        .parse          = string_type_parse,
 };