summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-11-18 16:56:09 +0000
committerreyk <reyk@openbsd.org>2016-11-18 16:56:09 +0000
commitc7cf96ed2d04d4dc741b8efcf512794d3452790a (patch)
tree58462fb203bb6596839b39e2012417ddd0fb4096 /usr.sbin/switchd
parentDefine constmap in ofp_map.h to be shared along with ofp_map.c (diff)
downloadwireguard-openbsd-c7cf96ed2d04d4dc741b8efcf512794d3452790a.tar.xz
wireguard-openbsd-c7cf96ed2d04d4dc741b8efcf512794d3452790a.zip
Define a group_id map and rename the defines accordingly.
Requested by rzalamena@
Diffstat (limited to 'usr.sbin/switchd')
-rw-r--r--usr.sbin/switchd/ofp13.c4
-rw-r--r--usr.sbin/switchd/ofp_map.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/switchd/ofp13.c b/usr.sbin/switchd/ofp13.c
index f875e6876ab..11fc46cbd5a 100644
--- a/usr.sbin/switchd/ofp13.c
+++ b/usr.sbin/switchd/ofp13.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofp13.c,v 1.31 2016/11/18 13:15:42 rzalamena Exp $ */
+/* $OpenBSD: ofp13.c,v 1.32 2016/11/18 16:56:09 reyk Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -644,7 +644,7 @@ ofp13_features_reply(struct switchd *sc, struct switch_connection *con,
{
#if 0
/* Let's not ask this while we don't use it. */
- ofp13_flow_stats(sc, con, OFP_PORT_ANY, OFP_GROUP_ANY,
+ ofp13_flow_stats(sc, con, OFP_PORT_ANY, OFP_GROUP_ID_ANY,
OFP_TABLE_ID_ALL);
ofp13_table_features(sc, con, 0);
ofp13_desc(sc, con);
diff --git a/usr.sbin/switchd/ofp_map.h b/usr.sbin/switchd/ofp_map.h
index 5c22d20b693..3519ed175c2 100644
--- a/usr.sbin/switchd/ofp_map.h
+++ b/usr.sbin/switchd/ofp_map.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofp_map.h,v 1.8 2016/11/18 16:49:35 reyk Exp $ */
+/* $OpenBSD: ofp_map.h,v 1.9 2016/11/18 16:56:09 reyk Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
@@ -63,6 +63,7 @@ extern struct constmap ofp_action_map[];
extern struct constmap ofp_flowcmd_map[];
extern struct constmap ofp_flowflag_map[];
extern struct constmap ofp_flowrem_reason_map[];
+extern struct constmap ofp_group_id_map[];
extern struct constmap ofp_errtype_map[];
extern struct constmap ofp_errflowmod_map[];
extern struct constmap ofp_errmatch_map[];