ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.68k stars 353 forks source link

Make the bpf filter string for `pfring_set_bpf_filter()` unmutable. #943

Closed utoni closed 3 months ago

utoni commented 3 months ago

Please sign (check) the below before submitting the Pull Request:

Describe changes:

It's better to make the BPF string in pfring_set_bpf_filter() unmutable. It provides a potential developer an easy hint that it's contents won't change while calling that function. During my PF_RING journey, I've found similar function's/callback's/typedef's that do not need mutable string's/buffer's.