diff options
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r-- | net/sctp/transport.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index 3e5936a5f671..1f56c9d95739 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c | |||
@@ -61,12 +61,12 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer, | |||
61 | gfp_t gfp) | 61 | gfp_t gfp) |
62 | { | 62 | { |
63 | /* Copy in the address. */ | 63 | /* Copy in the address. */ |
64 | peer->ipaddr = *addr; | 64 | peer->ipaddr_h = *addr; |
65 | peer->af_specific = sctp_get_af_specific(addr->sa.sa_family); | 65 | peer->af_specific = sctp_get_af_specific(addr->sa.sa_family); |
66 | peer->asoc = NULL; | 66 | peer->asoc = NULL; |
67 | 67 | ||
68 | peer->dst = NULL; | 68 | peer->dst = NULL; |
69 | memset(&peer->saddr, 0, sizeof(union sctp_addr)); | 69 | memset(&peer->saddr_h, 0, sizeof(union sctp_addr)); |
70 | 70 | ||
71 | /* From 6.3.1 RTO Calculation: | 71 | /* From 6.3.1 RTO Calculation: |
72 | * | 72 | * |
@@ -232,7 +232,7 @@ void sctp_transport_pmtu(struct sctp_transport *transport) | |||
232 | { | 232 | { |
233 | struct dst_entry *dst; | 233 | struct dst_entry *dst; |
234 | 234 | ||
235 | dst = transport->af_specific->get_dst(NULL, &transport->ipaddr, NULL); | 235 | dst = transport->af_specific->get_dst(NULL, &transport->ipaddr_h, NULL); |
236 | 236 | ||
237 | if (dst) { | 237 | if (dst) { |
238 | transport->pathmtu = dst_mtu(dst); | 238 | transport->pathmtu = dst_mtu(dst); |
@@ -249,15 +249,15 @@ void sctp_transport_route(struct sctp_transport *transport, | |||
249 | { | 249 | { |
250 | struct sctp_association *asoc = transport->asoc; | 250 | struct sctp_association *asoc = transport->asoc; |
251 | struct sctp_af *af = transport->af_specific; | 251 | struct sctp_af *af = transport->af_specific; |
252 | union sctp_addr *daddr = &transport->ipaddr; | 252 | union sctp_addr *daddr = &transport->ipaddr_h; |
253 | struct dst_entry *dst; | 253 | struct dst_entry *dst; |
254 | 254 | ||
255 | dst = af->get_dst(asoc, daddr, saddr); | 255 | dst = af->get_dst(asoc, daddr, saddr); |
256 | 256 | ||
257 | if (saddr) | 257 | if (saddr) |
258 | memcpy(&transport->saddr, saddr, sizeof(union sctp_addr)); | 258 | memcpy(&transport->saddr_h, saddr, sizeof(union sctp_addr)); |
259 | else | 259 | else |
260 | af->get_saddr(asoc, dst, daddr, &transport->saddr); | 260 | af->get_saddr(asoc, dst, daddr, &transport->saddr_h); |
261 | 261 | ||
262 | transport->dst = dst; | 262 | transport->dst = dst; |
263 | if ((transport->param_flags & SPP_PMTUD_DISABLE) && transport->pathmtu) { | 263 | if ((transport->param_flags & SPP_PMTUD_DISABLE) && transport->pathmtu) { |
@@ -270,7 +270,7 @@ void sctp_transport_route(struct sctp_transport *transport, | |||
270 | * association's active path for getsockname(). | 270 | * association's active path for getsockname(). |
271 | */ | 271 | */ |
272 | if (asoc && (transport == asoc->peer.active_path)) | 272 | if (asoc && (transport == asoc->peer.active_path)) |
273 | opt->pf->af->to_sk_saddr(&transport->saddr, | 273 | opt->pf->af->to_sk_saddr(&transport->saddr_h, |
274 | asoc->base.sk); | 274 | asoc->base.sk); |
275 | } else | 275 | } else |
276 | transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT; | 276 | transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT; |