From 2e914f0940a025d971c484a9158c1eaeca9c6015 Mon Sep 17 00:00:00 2001 From: startx2017 Date: Wed, 30 Sep 2020 09:01:36 -0400 Subject: manpages: network configuration --- src/firemon/firemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/firemon') diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c index 7468e3240..238fbcdfe 100644 --- a/src/firemon/firemon.c +++ b/src/firemon/firemon.c @@ -159,6 +159,7 @@ int main(int argc, char **argv) { arg_list = 1; else if (strcmp(argv[i], "--tree") == 0) arg_tree = 1; +#ifdef HAVE_NETWORK else if (strcmp(argv[i], "--netstats") == 0) { struct stat s; if (getuid() != 0 && stat("/proc/sys/kernel/grsecurity", &s) == 0) { @@ -167,7 +168,7 @@ int main(int argc, char **argv) { } arg_netstats = 1; } - +#endif // cumulative options with or without a pid argument else if (strcmp(argv[i], "--x11") == 0) @@ -187,10 +188,12 @@ int main(int argc, char **argv) { } arg_interface = 1; } +#ifdef HAVE_NETWORK else if (strcmp(argv[i], "--route") == 0) arg_route = 1; else if (strcmp(argv[i], "--arp") == 0) arg_arp = 1; +#endif else if (strcmp(argv[i], "--apparmor") == 0) arg_apparmor = 1; -- cgit v1.2.3-54-g00ecf