diff options
author | reyk <reyk@openbsd.org> | 2016-11-24 09:23:11 +0000 |
---|---|---|
committer | reyk <reyk@openbsd.org> | 2016-11-24 09:23:11 +0000 |
commit | b423f9d5571f6d10324c59d51a1c41277a699ef8 (patch) | |
tree | 16014384e6ba6168c076f488e0bb64fc234a068e /usr.sbin/switchctl/parser.h | |
parent | Better cast for consistency (diff) | |
download | wireguard-openbsd-b423f9d5571f6d10324c59d51a1c41277a699ef8.tar.xz wireguard-openbsd-b423f9d5571f6d10324c59d51a1c41277a699ef8.zip |
Add simple client to add flows from switchctl. Not finished yet, but
it is better for rzalamena and me to work on it in the tree.
OK rzalamena@
Diffstat (limited to 'usr.sbin/switchctl/parser.h')
-rw-r--r-- | usr.sbin/switchctl/parser.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/switchctl/parser.h b/usr.sbin/switchctl/parser.h index 6f5feb5fd40..83fb4896ba9 100644 --- a/usr.sbin/switchctl/parser.h +++ b/usr.sbin/switchctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.3 2016/11/15 08:15:07 reyk Exp $ */ +/* $OpenBSD: parser.h,v 1.4 2016/11/24 09:23:11 reyk Exp $ */ /* * Copyright (c) 2007-2015 Reyk Floeter <reyk@openbsd.org> @@ -21,6 +21,9 @@ enum actions { NONE, + FLOW_ADD, + FLOW_DELETE, + FLOW_MODIFY, DUMP_DESC, DUMP_FEATURES, DUMP_FLOWS, @@ -42,11 +45,13 @@ struct parse_result { enum actions action; struct imsgbuf *ibuf; char *path; - char *caname; - char *pass; struct switch_address uri; struct sockaddr_storage addr; + struct oflowmod_ctx fctx; + struct ibuf *fbuf; + int table; int quiet; + int verbose; }; #define HOST_IPADDR 1 |