aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_statefuns.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:07:06 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:26:37 -0500
commitbe29681edfbad72167df735e243e8621840dca4f (patch)
treeefc92cc3520bfc222200d82f561ccb84c9f7c5d0 /net/sctp/sm_statefuns.c
parent38a03145efcdbbcc60465fdffc0546208a52daf8 (diff)
[SCTP]: Switch sctp_assoc_lookup_paddr() to net-endian.
Callers updated. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r--net/sctp/sm_statefuns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index ac776fd20667..7d722f5a31d7 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -1018,6 +1018,7 @@ sctp_disposition_t sctp_sf_backbeat_8_3(const struct sctp_endpoint *ep,
1018 struct sctp_transport *link; 1018 struct sctp_transport *link;
1019 sctp_sender_hb_info_t *hbinfo; 1019 sctp_sender_hb_info_t *hbinfo;
1020 unsigned long max_interval; 1020 unsigned long max_interval;
1021 union sctp_addr tmp;
1021 1022
1022 if (!sctp_vtag_verify(chunk, asoc)) 1023 if (!sctp_vtag_verify(chunk, asoc))
1023 return sctp_sf_pdiscard(ep, asoc, type, arg, commands); 1024 return sctp_sf_pdiscard(ep, asoc, type, arg, commands);
@@ -1035,7 +1036,8 @@ sctp_disposition_t sctp_sf_backbeat_8_3(const struct sctp_endpoint *ep,
1035 } 1036 }
1036 1037
1037 from_addr = hbinfo->daddr; 1038 from_addr = hbinfo->daddr;
1038 link = sctp_assoc_lookup_paddr(asoc, &from_addr); 1039 flip_to_n(&tmp, &from_addr);
1040 link = sctp_assoc_lookup_paddr(asoc, &tmp);
1039 1041
1040 /* This should never happen, but lets log it if so. */ 1042 /* This should never happen, but lets log it if so. */
1041 if (unlikely(!link)) { 1043 if (unlikely(!link)) {