diff options
| author | 2016-11-17 12:40:56 +0000 | |
|---|---|---|
| committer | 2016-11-17 12:40:56 +0000 | |
| commit | c1bb28a23c72a5ce4a62f28369a985609fb0535a (patch) | |
| tree | 72ed766427b20e4cf18ebc974ff8525814721c46 /usr.sbin/switchd/types.h | |
| parent | Style and typo fixes; no binary change (diff) | |
| download | wireguard-openbsd-c1bb28a23c72a5ce4a62f28369a985609fb0535a.tar.xz wireguard-openbsd-c1bb28a23c72a5ce4a62f28369a985609fb0535a.zip | |
Add an abstraction layer / API to create flows including all matches
and instructions. This makes it easier to integrate flow features in
switchd and switchctl later.
Written and committed during a long flight.
OK rzalamena@
Diffstat (limited to 'usr.sbin/switchd/types.h')
| -rw-r--r-- | usr.sbin/switchd/types.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/switchd/types.h b/usr.sbin/switchd/types.h index b9d8b81c95b..0ebf1e708e5 100644 --- a/usr.sbin/switchd/types.h +++ b/usr.sbin/switchd/types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: types.h,v 1.7 2016/10/12 19:07:42 reyk Exp $ */ +/* $OpenBSD: types.h,v 1.8 2016/11/17 12:40:56 reyk Exp $ */ /* * Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org> @@ -97,6 +97,17 @@ enum switch_conn_type { SWITCH_CONN_TLS }; +enum oflowmod_state { + OFMCTX_INIT, + OFMCTX_OPEN, + OFMCTX_MOPEN, + OFMCTX_MCLOSE, + OFMCTX_IOPEN, + OFMCTX_ICLOSE, + OFMCTX_CLOSE, + OFMCTX_ERR +}; + #ifndef nitems #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #endif |
