Skip to content

Commit

Permalink
[SCTP]: sctp_make_asconf_update_ip() and sctp_find_unmatch_addr().
Browse files Browse the repository at this point in the history
... switched to taking and returning pointers to net-endian
sctp_addr resp.  Together, since the only user of sctp_find_unmatch_addr()
just passes its value to sctp_make_asconf_update_ip().
sctp_make_asconf_update_ip() is actually endian-agnostic.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 6244be4 commit 5ae955c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/sctp/bind_addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp,
addr_buf += af->sockaddr_len;
}
if (i == addrcnt)
return &laddr->a_h;
return &laddr->a;
}

return NULL;
Expand Down
2 changes: 1 addition & 1 deletion net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ static int sctp_send_asconf_add_ip(struct sock *sk,
laddr = list_entry(p, struct sctp_sockaddr_entry, list);
sctp_read_unlock(&asoc->base.addr_lock);

chunk = sctp_make_asconf_update_ip(asoc, &laddr->a_h, addrs,
chunk = sctp_make_asconf_update_ip(asoc, &laddr->a, addrs,
addrcnt, SCTP_PARAM_ADD_IP);
if (!chunk) {
retval = -ENOMEM;
Expand Down

0 comments on commit 5ae955c

Please sign in to comment.