https://github.com/torvalds/linux
Revision 23715275e4fb6f64358a499d20928a9e93819f2f authored by Konstantin Khlebnikov on 11 December 2017, 15:19:33 UTC, committed by Pablo Neira Ayuso on 11 December 2017, 16:04:50 UTC
After commit 4d3a57f23dec ("netfilter: conntrack: do not enable connection
tracking unless needed") conntrack is disabled by default unless some
module explicitly declares dependency in particular network namespace.

Fixes: a357b3f80bc8 ("netfilter: nat: add dependencies on conntrack module")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent f5b5702
Raw File
Tip revision: 23715275e4fb6f64358a499d20928a9e93819f2f authored by Konstantin Khlebnikov on 11 December 2017, 15:19:33 UTC
netfilter: ip6t_MASQUERADE: add dependency on conntrack module
Tip revision: 2371527
notifier-error-inject.h
/* SPDX-License-Identifier: GPL-2.0 */
#include <linux/atomic.h>
#include <linux/debugfs.h>
#include <linux/notifier.h>

struct notifier_err_inject_action {
	unsigned long val;
	int error;
	const char *name;
};

#define NOTIFIER_ERR_INJECT_ACTION(action)	\
	.name = #action, .val = (action),

struct notifier_err_inject {
	struct notifier_block nb;
	struct notifier_err_inject_action actions[];
	/* The last slot must be terminated with zero sentinel */
};

extern struct dentry *notifier_err_inject_dir;

extern struct dentry *notifier_err_inject_init(const char *name,
		struct dentry *parent, struct notifier_err_inject *err_inject,
		int priority);
back to top