modify pcap config.

This commit is contained in:
fengbojiang 2021-06-16 19:06:45 +08:00
parent d1e478dd27
commit d4e858cfd0
3 changed files with 4 additions and 9 deletions

View File

@ -72,9 +72,10 @@ nb_bond=0
# Support dump the first snaplen bytes of each packet.
# if pcap file is lager than savelen bytes, it will be closed and next file was dumped into.
[pcap]
enable = 0
snaplen= 96
savelen= 16777216
enable=0
snaplen=96
savelen=16777216
savepath=.
# Port config section
# Correspond to dpdk.port_list's index: port0, port1...

View File

@ -422,8 +422,6 @@ port_cfg_handler(struct ff_config *cfg, const char *section,
cur->broadcast = strdup(value);
} else if (strcmp(name, "gateway") == 0) {
cur->gateway = strdup(value);
} else if (strcmp(name, "pcap") == 0) {
cur->pcap = strdup(value);
} else if (strcmp(name, "lcore_list") == 0) {
return parse_port_lcore_list(cur, value);
} else if (strcmp(name, "slave_port_list") == 0) {

View File

@ -68,10 +68,6 @@ struct ff_port_cfg {
uint8_t prefix_len;
#endif
char *pcap;
uint16_t snaplen;
uint32_t savelen;
int nb_lcores;
int nb_slaves;
uint16_t lcore_list[DPDK_MAX_LCORE];