Building OpenWrt with af_packet.ko for Inline Snort - Module Not Found in Menuconfig

I'm working on a project that requires deploying Snort in inline mode on an OpenWrt device, and I've determined that using the "af_packet.ko" kernel module is necessary for optimal performance. I'm building my firmware using "make menuconfig", but I've been unable to locate the "af_packet.ko" module within the configuration menus.

Specifically, I'm looking to enable "af_packet" support during the build process.

Has anyone encountered this issue before or have experience including af_packet.ko in their OpenWrt builds? Any guidance on how to properly enable or add this module would be greatly appreciated.

Here are some details about my setup:

  • OpenWrt version: 23.05.2
  • Target platform: x86_64

Any pointers on where to find the relevant configuration options or if I need to add a custom package or kernel patch would be extremely helpful.

Thank you in advance for your assistance!