summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_usrreq.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-06-28 16:01:08 +0000
committertuexen <tuexen@FreeBSD.org>2012-06-28 16:01:08 +0000
commitd2f6540a5c0fdb316dfcf20d06919bc46746ce1d (patch)
tree0712df9c2d50839440d8ad4fdcb4b1427c4a4fe8 /sys/netinet/sctp_usrreq.c
parent2bb5abedc990575f567f541761a02207fdaf1829 (diff)
downloadFreeBSD-src-d2f6540a5c0fdb316dfcf20d06919bc46746ce1d.zip
FreeBSD-src-d2f6540a5c0fdb316dfcf20d06919bc46746ce1d.tar.gz
Pass the src and dst address of a received packet explicitly around.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r--sys/netinet/sctp_usrreq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 9929424..dc01f2d 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -345,8 +345,8 @@ sctp_ctlinput(cmd, sa, vip)
* 'from' holds our local endpoint address. Thus we reverse
* the to and the from in the lookup.
*/
- stcb = sctp_findassociation_addr_sa((struct sockaddr *)&from,
- (struct sockaddr *)&to,
+ stcb = sctp_findassociation_addr_sa((struct sockaddr *)&to,
+ (struct sockaddr *)&from,
&inp, &net, 1, vrf_id);
if (stcb != NULL && inp && (inp->sctp_socket != NULL)) {
if (cmd != PRC_MSGSIZE) {
@@ -397,8 +397,8 @@ sctp_getcred(SYSCTL_HANDLER_ARGS)
if (error)
return (error);
- stcb = sctp_findassociation_addr_sa(sintosa(&addrs[0]),
- sintosa(&addrs[1]),
+ stcb = sctp_findassociation_addr_sa(sintosa(&addrs[1]),
+ sintosa(&addrs[0]),
&inp, &net, 1, vrf_id);
if (stcb == NULL || inp == NULL || inp->sctp_socket == NULL) {
if ((inp != NULL) && (stcb == NULL)) {
OpenPOWER on IntegriCloud