Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41828
b: refs/heads/master
c: cb7b4a0
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 46c8ec8 commit 647d50c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3f7a54a295f2ffc9033b425c6538a7e9d7fbe8a
refs/heads/master: cb7b4a0dcf67ae747406b58b1cdc875916019739
10 changes: 6 additions & 4 deletions trunk/net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void sctp_transport_pmtu(struct sctp_transport *transport)
{
struct dst_entry *dst;

dst = transport->af_specific->get_dst(NULL, &transport->ipaddr_h, NULL);
dst = transport->af_specific->get_dst(NULL, &transport->ipaddr, NULL);

if (dst) {
transport->pathmtu = dst_mtu(dst);
Expand All @@ -251,16 +251,18 @@ void sctp_transport_route(struct sctp_transport *transport,
{
struct sctp_association *asoc = transport->asoc;
struct sctp_af *af = transport->af_specific;
union sctp_addr *daddr = &transport->ipaddr_h;
union sctp_addr *daddr = &transport->ipaddr;
struct dst_entry *dst;
union sctp_addr tmp;
flip_to_n(&tmp, saddr);

dst = af->get_dst(asoc, daddr, saddr);
dst = af->get_dst(asoc, daddr, &tmp);

if (saddr) {
memcpy(&transport->saddr_h, saddr, sizeof(union sctp_addr));
flip_to_n(&transport->saddr, &transport->saddr_h);
} else {
af->get_saddr(asoc, dst, &transport->ipaddr, &transport->saddr);
af->get_saddr(asoc, dst, daddr, &transport->saddr);
flip_to_h(&transport->saddr_h, &transport->saddr);
}

Expand Down

0 comments on commit 647d50c

Please sign in to comment.