Re: [PATCH 1/2] sctp: fix to reset packet information after packet transmit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wei Yongjun wrote:
> The packet information does not reset after packet transmit, this
> may cause some problems such as following DATA chunk be sent without
> AUTH chunk, even if the authentication of DATA chunk has been
> requested by the peer.
> 
> Signed-off-by: Wei Yongjun <yjwei@xxxxxxxxxxxxxx>
> ---
>  net/sctp/output.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/net/sctp/output.c b/net/sctp/output.c
> index b94c211..fbbfbce 100644
> --- a/net/sctp/output.c
> +++ b/net/sctp/output.c
> @@ -599,6 +599,11 @@ int sctp_packet_transmit(struct sctp_packet *packet)
>  
>  out:
>  	packet->size = packet->overhead;
> +	packet->has_cookie_echo = 0;
> +	packet->has_sack = 0;
> +	packet->has_data = 0;
> +	packet->ipfragok = 0;
> +	packet->auth = NULL;

I'll stick this into sctp_packet_reset().  OK?

-vlad

>  	return err;
>  no_route:
>  	kfree_skb(nskb);

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Networking Development]     [Linux OMAP]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux