angler-fishThe Vulnerability History Project

[NETFILTER]: xt_tables: add centralized error checking

      Introduce new functions for common match/target checks (private data
size, valid hooks, valid tables and valid protocols) to get more consistent
error reporting and to avoid each module duplicating them.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
    
commit 37f9f7334b86ffc3b8a1921842ae33cb9aa22ee3
+4 -19
+7 -65
expand_less