Commit ce1c7242 authored by David S. Miller's avatar David S. Miller

Merge bk://212.42.230.204/nf-2.6

into nuts.davemloft.net:/disk1/BK/net-2.6
parents b4232896 09dd54c8
...@@ -41,6 +41,7 @@ struct ip_ct_tcp ...@@ -41,6 +41,7 @@ struct ip_ct_tcp
u_int8_t retrans; /* Number of retransmitted packets */ u_int8_t retrans; /* Number of retransmitted packets */
u_int8_t last_index; /* Index of the last packet */ u_int8_t last_index; /* Index of the last packet */
u_int32_t last_seq; /* Last sequence number seen in dir */ u_int32_t last_seq; /* Last sequence number seen in dir */
u_int32_t last_ack; /* Last sequence number seen in opposite dir */
u_int32_t last_end; /* Last seq + len */ u_int32_t last_end; /* Last seq + len */
}; };
......
...@@ -64,10 +64,10 @@ struct ip_conntrack_tuple ...@@ -64,10 +64,10 @@ struct ip_conntrack_tuple
} u; } u;
/* The protocol. */ /* The protocol. */
u8 protonum; u_int8_t protonum;
/* The direction (for tuplehash) */ /* The direction (for tuplehash) */
u8 dir; u_int8_t dir;
} dst; } dst;
}; };
......
...@@ -373,9 +373,8 @@ static int help(struct sk_buff **pskb, ...@@ -373,9 +373,8 @@ static int help(struct sk_buff **pskb,
goto out_update_nl; goto out_update_nl;
} }
DEBUGP("conntrack_ftp: match `%.*s' (%u bytes at %u)\n", DEBUGP("conntrack_ftp: match `%s' (%u bytes at %u)\n",
(int)matchlen, data + matchoff, fb_ptr + matchoff, matchlen, ntohl(th->seq) + matchoff);
matchlen, ntohl(th->seq) + matchoff);
/* Allocate expectation which will be inserted */ /* Allocate expectation which will be inserted */
exp = ip_conntrack_expect_alloc(); exp = ip_conntrack_expect_alloc();
......
...@@ -665,11 +665,13 @@ static int tcp_in_window(struct ip_ct_tcp *state, ...@@ -665,11 +665,13 @@ static int tcp_in_window(struct ip_ct_tcp *state,
if (*index == TCP_ACK_SET) { if (*index == TCP_ACK_SET) {
if (state->last_dir == dir if (state->last_dir == dir
&& state->last_seq == seq && state->last_seq == seq
&& state->last_ack == ack
&& state->last_end == end) && state->last_end == end)
state->retrans++; state->retrans++;
else { else {
state->last_dir = dir; state->last_dir = dir;
state->last_seq = seq; state->last_seq = seq;
state->last_ack = ack;
state->last_end = end; state->last_end = end;
state->retrans = 0; state->retrans = 0;
} }
......
...@@ -570,7 +570,7 @@ static void *dl_seq_start(struct seq_file *s, loff_t *pos) ...@@ -570,7 +570,7 @@ static void *dl_seq_start(struct seq_file *s, loff_t *pos)
if (*pos >= htable->cfg.size) if (*pos >= htable->cfg.size)
return NULL; return NULL;
bucket = kmalloc(sizeof(unsigned int), GFP_KERNEL); bucket = kmalloc(sizeof(unsigned int), GFP_ATOMIC);
if (!bucket) if (!bucket)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment