Florian Westphal
834184b1f3
netfilter: defrag: only register defrag functionality if needed
...
nf_defrag modules for ipv4 and ipv6 export an empty stub function.
Any module that needs the defragmentation hooks registered simply 'calls'
this empty function to create a phony module dependency -- modprobe will
then load the defrag module too.
This extends netfilter ipv4/ipv6 defragmentation modules to delay the hook
registration until the functionality is requested within a network namespace
instead of module load time for all namespaces.
Hooks are only un-registered on module unload or when a namespace that used
such defrag functionality exits.
We have to use struct net for this as the register hooks can be called
before netns initialization here from the ipv4/ipv6 conntrack module
init path.
There is no unregister functionality support, defrag will always be
active once it was requested inside a net namespace.
The reason is that defrag has impact on nft and iptables rulesets
(without defrag we might see framents).
Signed-off-by: Florian Westphal <fw@strlen.de >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2016-12-06 21:42:00 +01:00
..
2016-11-18 10:59:15 -05:00
2016-12-04 20:46:16 +01:00
2016-11-03 11:53:00 +01:00
2016-12-04 20:57:36 +01:00
2016-12-04 20:57:36 +01:00
2016-11-15 10:54:36 -05:00
2016-08-30 11:43:08 +02:00
2016-08-09 10:38:46 +02:00
2016-07-11 11:47:50 +02:00
2016-09-07 10:38:00 +02:00
2016-07-11 12:32:45 +02:00
2016-09-24 21:29:53 +02:00
2016-11-08 23:53:37 +01:00
2016-07-21 02:31:53 +02:00
2016-07-22 17:05:10 +02:00
2016-09-12 19:59:39 +02:00
2016-08-30 11:43:09 +02:00
2016-12-04 20:53:15 +01:00
2016-08-13 13:27:13 +02:00
2016-11-18 10:59:15 -05:00
2016-12-04 20:55:37 +01:00
2016-08-13 13:27:13 +02:00
2016-08-13 13:27:13 +02:00
2016-12-04 20:57:36 +01:00
2016-12-04 21:17:25 +01:00
2016-07-21 02:31:53 +02:00
2016-09-25 14:54:01 +02:00
2016-10-27 18:27:59 +02:00
2016-12-04 21:17:25 +01:00
2016-07-21 02:31:53 +02:00
2016-11-03 11:52:34 +01:00
2016-11-03 11:52:59 +01:00
2016-12-04 20:45:33 +01:00
2016-12-04 20:45:33 +01:00
2016-10-04 08:41:06 +02:00
2016-12-04 20:45:32 +01:00
2016-12-04 20:45:30 +01:00
2016-12-04 20:45:31 +01:00
2016-12-04 20:45:32 +01:00
2016-11-03 11:52:59 +01:00
2016-11-18 10:59:15 -05:00
2016-11-24 14:43:34 +01:00
2016-11-09 23:42:23 +01:00
2016-09-12 19:54:45 +02:00
2016-09-12 19:54:45 +02:00
2016-11-03 11:52:34 +01:00
2016-08-25 13:11:00 +02:00
2016-09-24 21:29:53 +02:00
2016-08-25 13:11:30 +02:00
2016-12-04 20:45:34 +01:00
2016-11-18 10:59:15 -05:00
2016-11-09 23:42:23 +01:00
2016-11-09 23:42:23 +01:00
2016-11-09 23:42:23 +01:00
2016-07-23 12:25:00 +02:00
2016-04-23 20:13:24 -04:00
2016-12-04 21:16:50 +01:00
2016-11-15 10:54:36 -05:00
2016-10-17 17:43:54 +02:00
2016-11-03 11:52:34 +01:00
2016-11-03 11:52:34 +01:00
2016-12-03 12:29:53 -05:00
2016-11-09 23:42:23 +01:00
2016-10-04 08:59:03 +02:00
2016-11-03 11:52:34 +01:00
2016-11-09 23:42:23 +01:00
2016-12-04 21:17:16 +01:00
2016-11-03 11:52:34 +01:00
2016-12-04 21:17:16 +01:00
2016-10-26 16:35:16 +02:00
2016-11-09 23:42:23 +01:00
2016-11-03 11:52:34 +01:00
2016-09-07 11:02:06 +02:00
2016-12-03 12:29:53 -05:00
2016-12-04 21:17:16 +01:00
2016-11-03 11:52:34 +01:00
2016-08-25 12:55:34 +02:00
2016-11-03 11:52:34 +01:00
2016-10-27 18:22:02 +02:00
2016-10-27 18:20:45 +02:00
2016-11-13 22:26:13 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-12-04 21:16:50 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-18 10:59:15 -05:00
2016-12-04 21:16:50 +01:00
2016-04-29 14:28:48 +02:00
2016-10-17 17:38:19 +02:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-10-26 16:35:15 +02:00
2016-12-04 21:16:51 +01:00
2016-12-04 21:16:51 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-08-12 00:42:14 +02:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-09-23 09:30:36 +02:00
2016-11-18 10:59:15 -05:00
2016-12-04 21:16:51 +01:00
2016-09-22 03:13:26 -04:00
2016-11-10 13:28:42 +01:00
2016-12-06 21:42:00 +01:00
2016-12-04 21:16:50 +01:00
2016-11-03 10:56:21 +01:00
2016-07-03 10:55:07 +02:00
2016-11-03 10:56:21 +01:00
2016-12-06 21:42:00 +01:00
2016-06-23 13:26:49 +02:00