[server] minor update to rename PCAP_ANY_DIRECTION -> ENABLE_PCAP_ANY_DIRECTION
This commit is contained in:
+3
-3
@@ -47,7 +47,7 @@ static char *config_map[NUMBER_OF_CONFIG_ENTRIES] = {
|
||||
"PCAP_FILTER",
|
||||
"PCAP_DISPATCH_COUNT",
|
||||
"PCAP_LOOP_SLEEP",
|
||||
"PCAP_ANY_DIRECTION",
|
||||
"ENABLE_PCAP_ANY_DIRECTION",
|
||||
"MAX_SNIFF_BYTES",
|
||||
"ENABLE_SPA_PACKET_AGING",
|
||||
"MAX_SPA_PACKET_AGE",
|
||||
@@ -118,7 +118,7 @@ enum {
|
||||
FW_FLUSH,
|
||||
GPG_HOME_DIR,
|
||||
PCAP_FILE,
|
||||
PCAP_ANY_DIRECTION,
|
||||
ENABLE_PCAP_ANY_DIRECTION,
|
||||
ROTATE_DIGEST_CACHE,
|
||||
NOOP /* Just to be a marker for the end */
|
||||
};
|
||||
@@ -149,7 +149,7 @@ static struct option cmd_opts[] =
|
||||
{"override-config", 1, NULL, 'O' },
|
||||
{"pcap-file", 1, NULL, PCAP_FILE },
|
||||
{"pcap-filter", 1, NULL, 'P'},
|
||||
{"pcap-any-direction", 0, NULL, PCAP_ANY_DIRECTION },
|
||||
{"pcap-any-direction", 0, NULL, ENABLE_PCAP_ANY_DIRECTION },
|
||||
{"pid-file", 1, NULL, 'p'},
|
||||
{"restart", 0, NULL, 'R'},
|
||||
{"status", 0, NULL, 'S'},
|
||||
|
||||
@@ -836,7 +836,7 @@ config_init(fko_srv_options_t *opts, int argc, char **argv)
|
||||
case PCAP_FILE:
|
||||
set_config_entry(opts, CONF_PCAP_FILE, optarg);
|
||||
break;
|
||||
case PCAP_ANY_DIRECTION:
|
||||
case ENABLE_PCAP_ANY_DIRECTION:
|
||||
opts->pcap_any_direction = 1;
|
||||
break;
|
||||
case ROTATE_DIGEST_CACHE:
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@
|
||||
# packets that are received on the sniffing interface (note that this is
|
||||
# independent of promiscuous mode).
|
||||
#
|
||||
# PCAP_ANY_DIRECTION N;
|
||||
# ENABLE_PCAP_ANY_DIRECTION N;
|
||||
|
||||
##############################################################################
|
||||
# NOTE: The following EXTERNAL_CMD functionality is not yet implemented.
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
#define DEF_PCAP_FILTER "udp port 62201"
|
||||
#define DEF_PCAP_DISPATCH_COUNT "0"
|
||||
#define DEF_PCAP_LOOP_SLEEP "100000" /* a tenth of a second (in microseconds) */
|
||||
#define DEF_PCAP_ANY_DIRECTION "N"
|
||||
#define DEF_ENABLE_PCAP_ANY_DIRECTION "N"
|
||||
#define DEF_ENABLE_SPA_PACKET_AGING "Y"
|
||||
#define DEF_MAX_SPA_PACKET_AGE "120"
|
||||
#define DEF_ENABLE_DIGEST_PERSISTENCE "Y"
|
||||
@@ -190,7 +190,7 @@ enum {
|
||||
CONF_PCAP_FILTER,
|
||||
CONF_PCAP_DISPATCH_COUNT,
|
||||
CONF_PCAP_LOOP_SLEEP,
|
||||
CONF_PCAP_ANY_DIRECTION,
|
||||
CONF_ENABLE_PCAP_ANY_DIRECTION,
|
||||
CONF_MAX_SNIFF_BYTES,
|
||||
CONF_ENABLE_SPA_PACKET_AGING,
|
||||
CONF_MAX_SPA_PACKET_AGE,
|
||||
|
||||
Reference in New Issue
Block a user