sctp: Push struct net down into sctp_verify_ext_param
Add struct net as a parameter to sctp_verify_param so it can be passed to sctp_verify_ext_param where struct net will be needed when the sctp tunables become per net tunables. Add struct net as a parameter to sctp_verify_init so struct net can be passed to sctp_verify_param. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
24cb81a6a9
commit
f53b5b097e
@@ -364,7 +364,7 @@ sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net,
|
||||
|
||||
/* Verify the INIT chunk before processing it. */
|
||||
err_chunk = NULL;
|
||||
if (!sctp_verify_init(asoc, chunk->chunk_hdr->type,
|
||||
if (!sctp_verify_init(net, asoc, chunk->chunk_hdr->type,
|
||||
(sctp_init_chunk_t *)chunk->chunk_hdr, chunk,
|
||||
&err_chunk)) {
|
||||
/* This chunk contains fatal error. It is to be discarded.
|
||||
@@ -531,7 +531,7 @@ sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net,
|
||||
|
||||
/* Verify the INIT chunk before processing it. */
|
||||
err_chunk = NULL;
|
||||
if (!sctp_verify_init(asoc, chunk->chunk_hdr->type,
|
||||
if (!sctp_verify_init(net, asoc, chunk->chunk_hdr->type,
|
||||
(sctp_init_chunk_t *)chunk->chunk_hdr, chunk,
|
||||
&err_chunk)) {
|
||||
|
||||
@@ -1429,7 +1429,7 @@ static sctp_disposition_t sctp_sf_do_unexpected_init(
|
||||
|
||||
/* Verify the INIT chunk before processing it. */
|
||||
err_chunk = NULL;
|
||||
if (!sctp_verify_init(asoc, chunk->chunk_hdr->type,
|
||||
if (!sctp_verify_init(net, asoc, chunk->chunk_hdr->type,
|
||||
(sctp_init_chunk_t *)chunk->chunk_hdr, chunk,
|
||||
&err_chunk)) {
|
||||
/* This chunk contains fatal error. It is to be discarded.
|
||||
|
Reference in New Issue
Block a user