diff options
| author | 2016-11-15 08:15:07 +0000 | |
|---|---|---|
| committer | 2016-11-15 08:15:07 +0000 | |
| commit | c67da34d52db3e571bccf0d41874893b330b2880 (patch) | |
| tree | 7b1e239265762dcedbe2370d38c28c1acb5a485c /usr.sbin/switchctl/parser.h | |
| parent | Ensure, that the root disk question is added to the response file (diff) | |
| download | wireguard-openbsd-c67da34d52db3e571bccf0d41874893b330b2880.tar.xz wireguard-openbsd-c67da34d52db3e571bccf0d41874893b330b2880.zip | |
Add a simple openflow client to dump switch information. The
implementation re-uses the openflow code from switchd. Not finished
yet, but it is better to continue working on it in the tree. Later
versions will also include a way to add flows from the command line -
this is being worked on for switchd and some code of the
"ASCII-to-flow" parser will be shared here as well.
As discussed with and lightly tested by rzalamena@
Diffstat (limited to 'usr.sbin/switchctl/parser.h')
| -rw-r--r-- | usr.sbin/switchctl/parser.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/switchctl/parser.h b/usr.sbin/switchctl/parser.h index 07cfe350fd0..6f5feb5fd40 100644 --- a/usr.sbin/switchctl/parser.h +++ b/usr.sbin/switchctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.2 2016/10/12 19:07:42 reyk Exp $ */ +/* $OpenBSD: parser.h,v 1.3 2016/11/15 08:15:07 reyk Exp $ */ /* * Copyright (c) 2007-2015 Reyk Floeter <reyk@openbsd.org> @@ -21,6 +21,10 @@ enum actions { NONE, + DUMP_DESC, + DUMP_FEATURES, + DUMP_FLOWS, + DUMP_TABLES, SHOW_SUM, SHOW_SWITCHES, SHOW_MACS, @@ -40,8 +44,7 @@ struct parse_result { char *path; char *caname; char *pass; - char *peer; - char *uri; + struct switch_address uri; struct sockaddr_storage addr; int quiet; }; @@ -50,5 +53,6 @@ struct parse_result { #define HOST_FQDN 2 struct parse_result *parse(int, char *[]); +void ofpclient(struct parse_result *, struct passwd *); #endif /* _SWITCHCTL_PARSER_H */ |
