Skip to content

Commit

Permalink
parse diverter options
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Dec 3, 2024
1 parent 4dac8e4 commit 61119a2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions programs/ziti-edge-tunnel/ziti-edge-tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,15 @@ static int run_opts(int argc, char *argv[]) {
while ((c = getopt_long(argc, argv, "i:I:v:r:d:u:x:",
run_options, &option_index)) != -1) {
switch (c) {
case 'D':
diverter = true;

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

use of undeclared identifier 'diverter'

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

use of undeclared identifier 'diverter'

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build windows-x64-mingw

'diverter' undeclared (first use in this function)

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-arm64

use of undeclared identifier 'diverter'

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-x64

use of undeclared identifier 'diverter'

Check failure on line 1306 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build windows-x64-mingw

'diverter' undeclared (first use in this function)
diverter_if = optarg;

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

use of undeclared identifier 'diverter_if'

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

use of undeclared identifier 'diverter_if'

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build windows-x64-mingw

'diverter_if' undeclared (first use in this function)

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-arm64

use of undeclared identifier 'diverter_if'

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-x64

use of undeclared identifier 'diverter_if'

Check failure on line 1307 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build windows-x64-mingw

'diverter_if' undeclared (first use in this function)
break;
case 'f':
diverter = true;

Check failure on line 1310 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

use of undeclared identifier 'diverter'

Check failure on line 1310 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

use of undeclared identifier 'diverter'

Check failure on line 1310 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-arm64

use of undeclared identifier 'diverter'

Check failure on line 1310 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-x64

use of undeclared identifier 'diverter'
firewall = true;

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

use of undeclared identifier 'firewall'

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

use of undeclared identifier 'firewall'

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build windows-x64-mingw

'firewall' undeclared (first use in this function)

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-arm64

use of undeclared identifier 'firewall'

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-x64

use of undeclared identifier 'firewall'

Check failure on line 1311 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build windows-x64-mingw

'firewall' undeclared (first use in this function)
diverter_if = optarg;

Check failure on line 1312 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-x64

use of undeclared identifier 'diverter_if'

Check failure on line 1312 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / build macOS-arm64

use of undeclared identifier 'diverter_if'

Check failure on line 1312 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-arm64

use of undeclared identifier 'diverter_if'

Check failure on line 1312 in programs/ziti-edge-tunnel/ziti-edge-tunnel.c

View workflow job for this annotation

GitHub Actions / call-cmake-build / build macOS-x64

use of undeclared identifier 'diverter_if'
break;
case 'i': {
struct cfg_instance_s *inst = calloc(1, sizeof(struct cfg_instance_s));
inst->cfg = strdup(optarg);
Expand Down Expand Up @@ -2730,8 +2739,8 @@ static CommandLine enroll_cmd = make_command(
parse_enroll_opts, enroll);
#if __linux__
#define DIVERTER_OPTS_SUMMARY "[-D|--diverter <interface list>] [-f|--diverter-fw <interface list>] "
#define DIVERTER_OPTS_DETAIL "\t-D|--diverter <interface>\tset diverter mode to true on <interface>\n" \
"\t-f|--diverter-fw <interface>\tset diverter to true in firewall mode on <interface>)\n"
#define DIVERTER_OPTS_DETAIL "\t-D|--diverter <interface list>\tset diverter mode to true on <interface>\n" \
"\t-f|--diverter-fw <interface list>\tset diverter to true in firewall mode on <interface>)\n"
#else
#define DIVERTER_OPTS_SUMMARY ""
#define DIVERTER_OPTS_DETAIL ""
Expand Down

0 comments on commit 61119a2

Please sign in to comment.