retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

Stop returning non-0 values from hooks #333

Open atenart opened 10 months ago

atenart commented 10 months ago

As shown in #332, returning non-0 values from hooks is problematic with recent kernels. This is problematic with our convention of allowing hooks to return -ENOMSG.

We should evaluate how to always return 0 from hooks while still providing a way to discard the event or by finding a better solution for letting hooks filter events.