summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-08-25 11:00:44 +0000
committerreyk <reyk@openbsd.org>2016-08-25 11:00:44 +0000
commit3c137c4f70f5e37e48ab31a2ba5cfc5d6c2120f2 (patch)
tree744fa82731053c3eea8c9f6e69af2df96b7f7e49
parentFix pfsync(4)'s carp examples: as of ip_carp.c r1.245, carpdev must be (diff)
downloadwireguard-openbsd-3c137c4f70f5e37e48ab31a2ba5cfc5d6c2120f2.tar.xz
wireguard-openbsd-3c137c4f70f5e37e48ab31a2ba5cfc5d6c2120f2.zip
goda@ contributed most of the OpenFlow 1.3.5 parts in ofp.h (for the
"still-unreleased" switch(4) driver), so it is only fair to add his copyright. This header file will eventually move to net/ofp.h.
-rw-r--r--usr.sbin/switchd/ofp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/switchd/ofp.h b/usr.sbin/switchd/ofp.h
index 4b75752b779..7b01b9f323b 100644
--- a/usr.sbin/switchd/ofp.h
+++ b/usr.sbin/switchd/ofp.h
@@ -1,7 +1,8 @@
-/* $OpenBSD: ofp.h,v 1.2 2016/07/20 19:57:54 reyk Exp $ */
+/* $OpenBSD: ofp.h,v 1.3 2016/08/25 11:00:44 reyk Exp $ */
/*
* Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org>
+ * Copyright (c) 2016 Kazuya GODA <goda@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -487,6 +488,7 @@ struct ofp_error {
uint8_t err_data[0];
/* Followed by optional data */
} __packed;
+#define OFP_ERRDATA_MAX 64
/* Error types */
#define OFP_ERRTYPE_HELLO_FAILED 0 /* Hello protocol failed */