Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault while integrating with DPDK #2350

Open
rashidali-net-sys opened this issue Mar 18, 2024 · 0 comments
Open

Segmentation fault while integrating with DPDK #2350

rashidali-net-sys opened this issue Mar 18, 2024 · 0 comments
Labels

Comments

@rashidali-net-sys
Copy link

I am using nDPI-4.8 which DPDK(19.11 and 23 latest version l2fwd application) for protocol information extraction and traffic filtering(based on protocol and category).

I am encountering the segmentation fault issue in reader_util.c file at following place.
/* TODO: just needed here to init ndpi ndpi_malloc wrapper */
module = ndpi_init_detection_module(init_prefs);

Also facing makefile error issue at the place.
static const struct rte_eth_conf port_conf_default = {
#if(RTE_VERSION < RTE_VERSION_NUM(19, 8, 0, 0))
.rxmode = { .max_rx_pkt_len = ETHER_MAX_LEN }
#else
.rxmode = { .max_rx_pkt_len = RTE_ETHER_MAX_LEN }
#endif
};

I simply replace rte_eth_conf structure with these version main.c l2fwd rte_eth_conf structure(DPDK 19 and DPDK 23) and error was resolved while building the app. Is this ok do to so(modifying nDPI as per your required DPDK version). If not then need to be addressed. while integrating with DPDK any version.

Protocol information was working fine while facing segmentation fault only in traffic filtering part.
Need help in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant