Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a864209 authored by Paras Singh Jain's avatar Paras Singh Jain Committed by Gerrit - the friendly Code Review server
Browse files

netfilter: nf_conntrack_sip: Register SIP ALG sysctl table into procfs



This change registers SIP ALG syctl table into procfs. Sysctl table entries
help in dynamically changing SIP ALG parameters from userspace.

Change-Id: If07b185eccdf0e27ae1b3dabc58f3bd274fb84df
Acked-by: default avatarVinisha Varre <vvarre@qti.qualcomm.com>
Signed-off-by: default avatarParas Singh Jain <parassin@codeaurora.org>
parent 0a149460
Loading
Loading
Loading
Loading
+2 −12
Original line number Diff line number Diff line
@@ -78,16 +78,6 @@ static struct ctl_table sip_sysctl_tbl[] = {
	{}
};

static struct ctl_path sip_sysctls_path[] = {
	{
		.procname  = "net",
	},
	{
		.procname  = "netfilter",
	},
	{}
};

static int string_len(const struct nf_conn *ct, const char *dptr,
		      const char *limit, int *shift)
{
@@ -1694,7 +1684,7 @@ static int __init nf_conntrack_sip_init(void)
	int i, ret;

	NF_CT_HELPER_BUILD_BUG_ON(sizeof(struct nf_ct_sip_master));
	sip_sysctl_header = register_sysctl_paths(sip_sysctls_path,
	sip_sysctl_header = register_net_sysctl(&init_net, "net/netfilter",
						sip_sysctl_tbl);
	if (!sip_sysctl_header)
		pr_debug("nf_ct_sip:Unable to register SIP systbl\n");