summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchctl
diff options
context:
space:
mode:
authorrzalamena <rzalamena@openbsd.org>2016-12-22 15:45:37 +0000
committerrzalamena <rzalamena@openbsd.org>2016-12-22 15:45:37 +0000
commitf9f20f4a7419401d5183aadb64cb1aa3c6be87d6 (patch)
treec8523fca25d90d3ba838aa62b6c6906d6b9e5a36 /usr.sbin/switchctl
parentUpdate the regress test to work with the new changes in the switchd(8) (diff)
downloadwireguard-openbsd-f9f20f4a7419401d5183aadb64cb1aa3c6be87d6.tar.xz
wireguard-openbsd-f9f20f4a7419401d5183aadb64cb1aa3c6be87d6.zip
Don't convert endianess for flow-mod command field, it is a 8 bit field.
Diffstat (limited to 'usr.sbin/switchctl')
-rw-r--r--usr.sbin/switchctl/parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/switchctl/parser.c b/usr.sbin/switchctl/parser.c
index fb496440de1..913420a992c 100644
--- a/usr.sbin/switchctl/parser.c
+++ b/usr.sbin/switchctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.6 2016/11/24 09:23:11 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.7 2016/12/22 15:45:37 rzalamena Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -343,10 +343,10 @@ match_token(char *word, const struct token table[], int level)
/* Update header */
if (table[i].type == FLOWDELETE)
res.fctx.ctx_fm->fm_command =
- htons(OFP_FLOWCMD_DELETE);
+ OFP_FLOWCMD_DELETE;
else if (table[i].type == FLOWMODIFY)
res.fctx.ctx_fm->fm_command =
- htons(OFP_FLOWCMD_MODIFY);
+ OFP_FLOWCMD_MODIFY;
break;
case FLOWAPPLY:
val = OFP_INSTRUCTION_T_APPLY_ACTIONS;