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

Commit aa83c1ab authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: Convert arp_tables targets to centralized error checking

parent 1d5cd909
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1143,11 +1143,13 @@ void arpt_unregister_table(struct arpt_table *table)
/* The built-in targets: standard (NULL) and error. */
static struct arpt_target arpt_standard_target = {
	.name		= ARPT_STANDARD_TARGET,
	.targetsize	= sizeof(int),
};

static struct arpt_target arpt_error_target = {
	.name		= ARPT_ERROR_TARGET,
	.target		= arpt_error,
	.targetsize	= ARPT_FUNCTION_MAXNAMELEN,
};

static struct nf_sockopt_ops arpt_sockopts = {
+6 −6
Original line number Diff line number Diff line
@@ -80,10 +80,10 @@ checkentry(const char *tablename, const void *e, void *targinfo,
	return 1;
}

static struct arpt_target arpt_mangle_reg
= {
static struct arpt_target arpt_mangle_reg = {
	.name		= "mangle",
	.target		= target,
	.targetsize	= sizeof(struct arpt_mangle),
	.checkentry	= checkentry,
	.me		= THIS_MODULE,
};