Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81907
b: refs/heads/master
c: 2f0d2f1
h: refs/heads/master
i:
  81905: f36b0c6
  81903: 45d591c
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Feb 1, 2008
1 parent 5361925 commit d867f9d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 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: 4e26fe2681e9e3a4a43daab70c9facba3310755b
refs/heads/master: 2f0d2f10391e190f940da70cbdc8a61e4dad98eb
2 changes: 1 addition & 1 deletion trunk/net/netfilter/nf_conntrack_irc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define MAX_PORTS 8
static unsigned short ports[MAX_PORTS];
static int ports_c;
static unsigned int ports_c;
static unsigned int max_dcc_channels = 8;
static unsigned int dcc_timeout __read_mostly = 300;
/* This is slow, but it's simple. --RR */
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/netfilter/nf_conntrack_proto_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp6 __read_mostly = {
#endif
};

int __init nf_conntrack_proto_sctp_init(void)
static int __init nf_conntrack_proto_sctp_init(void)
{
int ret;

Expand All @@ -647,7 +647,7 @@ int __init nf_conntrack_proto_sctp_init(void)
return ret;
}

void __exit nf_conntrack_proto_sctp_fini(void)
static void __exit nf_conntrack_proto_sctp_fini(void)
{
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_sctp6);
nf_conntrack_l4proto_unregister(&nf_conntrack_l4proto_sctp4);
Expand Down
6 changes: 3 additions & 3 deletions trunk/net/netfilter/nf_conntrack_proto_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,16 +1098,16 @@ static const struct nla_policy tcp_nla_policy[CTA_PROTOINFO_TCP_MAX+1] = {

static int nlattr_to_tcp(struct nlattr *cda[], struct nf_conn *ct)
{
struct nlattr *attr = cda[CTA_PROTOINFO_TCP];
struct nlattr *pattr = cda[CTA_PROTOINFO_TCP];
struct nlattr *tb[CTA_PROTOINFO_TCP_MAX+1];
int err;

/* updates could not contain anything about the private
* protocol info, in that case skip the parsing */
if (!attr)
if (!pattr)
return 0;

err = nla_parse_nested(tb, CTA_PROTOINFO_TCP_MAX, attr, tcp_nla_policy);
err = nla_parse_nested(tb, CTA_PROTOINFO_TCP_MAX, pattr, tcp_nla_policy);
if (err < 0)
return err;

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/netfilter/nf_conntrack_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MODULE_ALIAS("ip_conntrack_sip");

#define MAX_PORTS 8
static unsigned short ports[MAX_PORTS];
static int ports_c;
static unsigned int ports_c;
module_param_array(ports, ushort, &ports_c, 0400);
MODULE_PARM_DESC(ports, "port numbers of SIP servers");

Expand Down Expand Up @@ -407,7 +407,7 @@ static int sip_help(struct sk_buff *skb,
unsigned int dataoff, datalen;
const char *dptr;
int ret = NF_ACCEPT;
int matchoff, matchlen;
unsigned int matchoff, matchlen;
u_int16_t port;
enum sip_header_pos pos;
typeof(nf_nat_sip_hook) nf_nat_sip;
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/netfilter/nf_conntrack_standalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ static struct hlist_node *ct_get_idx(struct seq_file *seq, loff_t pos)
}

static void *ct_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(nf_conntrack_lock)
{
read_lock_bh(&nf_conntrack_lock);
return ct_get_idx(seq, *pos);
Expand All @@ -105,6 +106,7 @@ static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos)
}

static void ct_seq_stop(struct seq_file *s, void *v)
__releases(nf_conntrack_lock)
{
read_unlock_bh(&nf_conntrack_lock);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netfilter/nf_conntrack_tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MODULE_ALIAS("ip_conntrack_tftp");

#define MAX_PORTS 8
static unsigned short ports[MAX_PORTS];
static int ports_c;
static unsigned int ports_c;
module_param_array(ports, ushort, &ports_c, 0400);
MODULE_PARM_DESC(ports, "Port numbers of TFTP servers");

Expand Down

0 comments on commit d867f9d

Please sign in to comment.