summaryrefslogtreecommitdiffstats
path: root/src/datatype.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-07-06 05:57:20 +0200
committerPatrick McHardy <kaber@trash.net>2010-07-06 05:57:20 +0200
commit259ee5b3e29c1c76aad2fc7c2bbf470d414110f1 (patch)
tree8cf107f68018090b93bbf055e0e56cca35f6e730 /src/datatype.c
parent653e35bca873414964c9cde0bd98bca3e0bf6692 (diff)
netlink: fix byteorder of RHS of relational meta expression
The RHS needs to be postprocessed before updating the payload context for byteorder conversion. Fixes iiftype match reconstruction. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/datatype.c')
-rw-r--r--src/datatype.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 589a3528..80271043 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -309,6 +309,7 @@ const struct datatype lladdr_type = {
.type = TYPE_LLADDR,
.name = "lladdr",
.desc = "link layer address",
+ .byteorder = BYTEORDER_HOST_ENDIAN,
.basetype = &integer_type,
.print = lladdr_type_print,
.parse = lladdr_type_parse,