summaryrefslogtreecommitdiffstats
path: root/src/proto.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-11-25 16:51:10 +0000
committerPatrick McHardy <kaber@trash.net>2015-11-25 16:51:10 +0000
commit7bb5c73ace95d7711feaf8781b45a4fb0d8838c2 (patch)
tree3119439a3e2a92d7ca8b13400820d6e4b654f385 /src/proto.c
parentf9170d49b5af8bdbb762bb5f2abe9aa7cace3b9e (diff)
proto: fix arpop symbol table endianess
The symbols need to be in big endian. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/proto.c')
-rw-r--r--src/proto.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/proto.c b/src/proto.c
index 89ec2821..0fe0b88e 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -668,13 +668,13 @@ const struct proto_desc proto_inet_service = {
static const struct symbol_table arpop_tbl = {
.symbols = {
- SYMBOL("request", ARPOP_REQUEST),
- SYMBOL("reply", ARPOP_REPLY),
- SYMBOL("rrequest", ARPOP_RREQUEST),
- SYMBOL("rreply", ARPOP_RREPLY),
- SYMBOL("inrequest", ARPOP_InREQUEST),
- SYMBOL("inreply", ARPOP_InREPLY),
- SYMBOL("nak", ARPOP_NAK),
+ SYMBOL("request", __constant_htons(ARPOP_REQUEST)),
+ SYMBOL("reply", __constant_htons(ARPOP_REPLY)),
+ SYMBOL("rrequest", __constant_htons(ARPOP_RREQUEST)),
+ SYMBOL("rreply", __constant_htons(ARPOP_RREPLY)),
+ SYMBOL("inrequest", __constant_htons(ARPOP_InREQUEST)),
+ SYMBOL("inreply", __constant_htons(ARPOP_InREPLY)),
+ SYMBOL("nak", __constant_htons(ARPOP_NAK)),
SYMBOL_LIST_END
},
};