]> The Tcpdump Group git mirrors - libpcap/commit
linux: print a better message for "out of memory" errors for kernel filters.
authorGuy Harris <[email protected]>
Fri, 4 Feb 2022 23:30:28 +0000 (15:30 -0800)
committerGuy Harris <[email protected]>
Fri, 4 Feb 2022 23:30:28 +0000 (15:30 -0800)
commit3eca6924ac341cfe9222f547b253364995a3f3ea
treec3e8093e268d2f6fc6bded172aca6b5799391a71
parent9d928eb03f158ea93e6236592509bfa2885b9684
linux: print a better message for "out of memory" errors for kernel filters.

If attempting to set a kernel filter gets ENOMEM, print a message
suggesting that they increase the value of the net.core.optmem_max
sysctl.

See GitHub issue #1089 for an example of a complicated but not too
complicated filter that exceeds the default "other/option memory per
socket" maximum.
pcap-linux.c