| To: | davem@xxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH][SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style sockets |
| From: | Sridhar Samudrala <sri@xxxxxxxxxx> |
| Date: | Fri, 22 Apr 2005 12:28:20 -0700 (PDT) |
| Cc: | netdev@xxxxxxxxxxx, lksctp-developers@xxxxxxxxxxxxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Hi Dave,
Please apply to 2.6.
Thanks
Sridhar
=======================================================================
[SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style sockets.
Signed-off-by: Vladislav Yasevich <vladislav.yasevich@xxxxxx>
Signed-off-by: Sridhar Samudrala <sri@xxxxxxxxxx>
========================================================================
diff -Nru a/net/sctp/socket.c b/net/sctp/socket.c
--- a/net/sctp/socket.c 2005-04-21 16:20:07 -07:00
+++ b/net/sctp/socket.c 2005-04-21 16:20:07 -07:00
@@ -3473,7 +3473,7 @@
return -EINVAL;
/* Values correspoinding to the specific association */
- if (assocparams.sasoc_assoc_id != 0) {
+ if (asoc) {
assocparams.sasoc_asocmaxrxt = asoc->max_retrans;
assocparams.sasoc_peer_rwnd = asoc->peer.rwnd;
assocparams.sasoc_local_rwnd = asoc->a_rwnd;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: NAPI, e100, and system performance problem, jamal |
|---|---|
| Next by Date: | Re: local_bh_enable & hard_start_xmit, Ben Greear |
| Previous by Thread: | [TG3]: test minimal hw coalescing, David S. Miller |
| Next by Thread: | [PATCH][SCTP] Replace incorrect use of dev_alloc_skb with alloc_skb in sctp_packet_transmit()., Sridhar Samudrala |
| Indexes: | [Date] [Thread] [Top] [All Lists] |