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

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

[NETFILTER]: nf_log: constify struct nf_logger and nf_log_packet loginfo arg

parent f01ffbd6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -43,8 +43,8 @@ struct nf_logger {
};

/* Function to register/unregister log function. */
int nf_log_register(int pf, struct nf_logger *logger);
void nf_log_unregister(struct nf_logger *logger);
int nf_log_register(int pf, const struct nf_logger *logger);
void nf_log_unregister(const struct nf_logger *logger);
void nf_log_unregister_pf(int pf);

/* Calls the registered backend logging function */
@@ -53,7 +53,7 @@ void nf_log_packet(int pf,
		   const struct sk_buff *skb,
		   const struct net_device *in,
		   const struct net_device *out,
		   struct nf_loginfo *li,
		   const struct nf_loginfo *li,
		   const char *fmt, ...);

#endif /* _NF_LOG_H */
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ static struct ebt_watcher log =
	.me		= THIS_MODULE,
};

static struct nf_logger ebt_log_logger = {
static const struct nf_logger ebt_log_logger = {
	.name 		= "ebt_log",
	.logfn		= &ebt_log_packet,
	.me		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ static struct ebt_watcher ulog = {
	.me		= THIS_MODULE,
};

static struct nf_logger ebt_ulog_logger = {
static const struct nf_logger ebt_ulog_logger = {
	.name		= EBT_ULOG_WATCHER,
	.logfn		= &ebt_log_packet,
	.me		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ static struct xt_target log_tg_reg __read_mostly = {
	.me		= THIS_MODULE,
};

static struct nf_logger ipt_log_logger ={
static const struct nf_logger ipt_log_logger ={
	.name		= "ipt_LOG",
	.logfn		= &ipt_log_packet,
	.me		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ static struct xt_target log_tg6_reg __read_mostly = {
	.me 		= THIS_MODULE,
};

static struct nf_logger ip6t_logger = {
static const struct nf_logger ip6t_logger = {
	.name		= "ip6t_LOG",
	.logfn		= &ip6t_log_packet,
	.me		= THIS_MODULE,
Loading