Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Overlapping changes in selftests Makefile. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -217,7 +217,7 @@ new_skb:
|
||||
skb_pull(chunk->skb, sizeof(*ch));
|
||||
chunk->subh.v = NULL; /* Subheader is no longer valid. */
|
||||
|
||||
if (chunk->chunk_end + sizeof(*ch) < skb_tail_pointer(chunk->skb)) {
|
||||
if (chunk->chunk_end + sizeof(*ch) <= skb_tail_pointer(chunk->skb)) {
|
||||
/* This is not a singleton */
|
||||
chunk->singleton = 0;
|
||||
} else if (chunk->chunk_end > skb_tail_pointer(chunk->skb)) {
|
||||
|
@@ -895,6 +895,9 @@ static int sctp_inet6_cmp_addr(const union sctp_addr *addr1,
|
||||
if (sctp_is_any(sk, addr1) || sctp_is_any(sk, addr2))
|
||||
return 1;
|
||||
|
||||
if (addr1->sa.sa_family == AF_INET && addr2->sa.sa_family == AF_INET)
|
||||
return addr1->v4.sin_addr.s_addr == addr2->v4.sin_addr.s_addr;
|
||||
|
||||
return __sctp_v6_cmp_addr(addr1, addr2);
|
||||
}
|
||||
|
||||
|
@@ -1794,6 +1794,9 @@ static enum sctp_disposition sctp_sf_do_dupcook_a(
|
||||
GFP_ATOMIC))
|
||||
goto nomem;
|
||||
|
||||
if (sctp_auth_asoc_init_active_key(new_asoc, GFP_ATOMIC))
|
||||
goto nomem;
|
||||
|
||||
/* Make sure no new addresses are being added during the
|
||||
* restart. Though this is a pretty complicated attack
|
||||
* since you'd have to get inside the cookie.
|
||||
@@ -1906,6 +1909,9 @@ static enum sctp_disposition sctp_sf_do_dupcook_b(
|
||||
GFP_ATOMIC))
|
||||
goto nomem;
|
||||
|
||||
if (sctp_auth_asoc_init_active_key(new_asoc, GFP_ATOMIC))
|
||||
goto nomem;
|
||||
|
||||
/* Update the content of current association. */
|
||||
sctp_add_cmd_sf(commands, SCTP_CMD_UPDATE_ASSOC, SCTP_ASOC(new_asoc));
|
||||
sctp_add_cmd_sf(commands, SCTP_CMD_NEW_STATE,
|
||||
@@ -2050,7 +2056,7 @@ static enum sctp_disposition sctp_sf_do_dupcook_d(
|
||||
}
|
||||
}
|
||||
|
||||
repl = sctp_make_cookie_ack(new_asoc, chunk);
|
||||
repl = sctp_make_cookie_ack(asoc, chunk);
|
||||
if (!repl)
|
||||
goto nomem;
|
||||
|
||||
|
@@ -240,6 +240,8 @@ void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new)
|
||||
|
||||
new->out = NULL;
|
||||
new->in = NULL;
|
||||
new->outcnt = 0;
|
||||
new->incnt = 0;
|
||||
}
|
||||
|
||||
static int sctp_send_reconf(struct sctp_association *asoc,
|
||||
|
Reference in New Issue
Block a user