* [PATCH nft] proto: fix arpop symbol table endianess
@ 2015-11-25 15:30 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2015-11-25 15:30 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
The symbols need to be in big endian.
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
src/proto.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/proto.c b/src/proto.c
index 28b93cb..51c643c 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -663,13 +663,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
},
};
--
2.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-25 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 15:30 [PATCH nft] proto: fix arpop symbol table endianess Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).