Commit a8c08f7
committed
Parser - Fix packet parsing issue when --with-pcap is enabled
Ensure correct packet parsing for input modules like dpdk, dpdk-ring, and nfb when compiled with --with-pcap.
Previously, the parser relied on opt->datalink, which these inputs do not set, leading to incorrect layer detection.
Now, it correctly defaults to Ethernet when necessary.1 parent fee9b26 commit a8c08f7
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
| 686 | + | |
| 687 | + | |
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
701 | 705 | | |
702 | | - | |
| 706 | + | |
703 | 707 | | |
704 | | - | |
| 708 | + | |
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
| |||
0 commit comments