Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78540
b: refs/heads/master
c: 7b2f963
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 36178d4 commit 3bf658a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f01ffbd6e7d001ccf9168b33507958a51ce0ffcf
refs/heads/master: 7b2f9631e789c3e7d59201c21f09a24cd6ce3b1a
6 changes: 3 additions & 3 deletions trunk/include/net/netfilter/nf_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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 */
2 changes: 1 addition & 1 deletion trunk/net/bridge/netfilter/ebt_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/bridge/netfilter/ebt_ulog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/netfilter/ipt_LOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/netfilter/ip6t_LOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions trunk/net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

#define NF_LOG_PREFIXLEN 128

static struct nf_logger *nf_loggers[NPROTO];
static const struct nf_logger *nf_loggers[NPROTO] __read_mostly;
static DEFINE_MUTEX(nf_log_mutex);

/* return EBUSY if somebody else is registered, EEXIST if the same logger
* is registred, 0 on success. */
int nf_log_register(int pf, struct nf_logger *logger)
int nf_log_register(int pf, const struct nf_logger *logger)
{
int ret;

Expand Down Expand Up @@ -58,7 +58,7 @@ void nf_log_unregister_pf(int pf)
}
EXPORT_SYMBOL(nf_log_unregister_pf);

void nf_log_unregister(struct nf_logger *logger)
void nf_log_unregister(const struct nf_logger *logger)
{
int i;

Expand All @@ -78,12 +78,12 @@ void nf_log_packet(int pf,
const struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
struct nf_loginfo *loginfo,
const struct nf_loginfo *loginfo,
const char *fmt, ...)
{
va_list args;
char prefix[NF_LOG_PREFIXLEN];
struct nf_logger *logger;
const struct nf_logger *logger;

rcu_read_lock();
logger = rcu_dereference(nf_loggers[pf]);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netfilter/nfnetlink_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ nfulnl_recv_unsupp(struct sock *ctnl, struct sk_buff *skb,
return -ENOTSUPP;
}

static struct nf_logger nfulnl_logger = {
static const struct nf_logger nfulnl_logger = {
.name = "nfnetlink_log",
.logfn = &nfulnl_log_packet,
.me = THIS_MODULE,
Expand Down

0 comments on commit 3bf658a

Please sign in to comment.