diff options
| author | 李佳 <[email protected]> | 2020-01-07 10:32:48 +0800 |
|---|---|---|
| committer | 李佳 <[email protected]> | 2020-01-07 10:32:48 +0800 |
| commit | fb5bce945c2218ebaef25946f7d7db1b025fa990 (patch) | |
| tree | 09a2e7b140149584e06f1a37c974195af01dc1e1 /src/config/config_parse.cpp | |
| parent | 86c5a186658644901d8ba049716f80ef890466a4 (diff) | |
Feature inbound outboundv4.0.8
Diffstat (limited to 'src/config/config_parse.cpp')
| -rw-r--r-- | src/config/config_parse.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp index fdcff12..a396ca6 100644 --- a/src/config/config_parse.cpp +++ b/src/config/config_parse.cpp @@ -578,6 +578,8 @@ int sapp_parse_config(void) if(str_tmp[0] != '\0'){ pconfig->packet_io.input_bpf_filter = strdup(str_tmp); } + tomlc99_wrap_load_int_def(default_config_file, (char *)"PACKET_IO", (char *)"inbound_route_dir", &pconfig->packet_io.inbound_route_dir, 0); + tomlc99_wrap_load_string_def(default_config_file, (char *)"packet_io.depolyment", (char *)"mode", pconfig->packet_io.depolyment_mode_str, NAME_MAX, "mirror"); tomlc99_wrap_load_string_def(default_config_file, (char *)"packet_io.internal.interface", (char *)"type", pconfig->packet_io.internal.interface.type_str, NAME_MAX, "pcap"); tomlc99_wrap_load_string_def(default_config_file, (char *)"packet_io.internal.interface", (char *)"name", pconfig->packet_io.internal.interface.name, NAME_MAX, "lo"); |
