mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
[SCTP]: ->get_saddr() switched to net-endian.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6a1e5f3354
commit
d3f7a54a29
3 changed files with 9 additions and 7 deletions
|
@ -539,7 +539,7 @@ static void sctp_v4_get_saddr(struct sctp_association *asoc,
|
|||
|
||||
if (rt) {
|
||||
saddr->v4.sin_family = AF_INET;
|
||||
saddr->v4.sin_port = asoc->base.bind_addr.port;
|
||||
saddr->v4.sin_port = htons(asoc->base.bind_addr.port);
|
||||
saddr->v4.sin_addr.s_addr = rt->rt_src;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue