Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41831
b: refs/heads/master
c: a926626
h: refs/heads/master
i:
  41829: 378be97
  41827: 46c8ec8
  41823: 4d39495
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent c19b73d commit 122f5df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 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: 16b0a030330d179427edffbeddaa5b7dc5b31196
refs/heads/master: a926626893aca20567f27af1c5edc830e1c51b2b
1 change: 0 additions & 1 deletion trunk/include/net/sctp/structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ struct sctp_transport {
struct dst_entry *dst;
/* Source address. */
union sctp_addr saddr;
union sctp_addr saddr_h;

/* When was the last time(in jiffies) that a data packet was sent on
* this transport? This is used to adjust the cwnd when the transport
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sctp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ static int sctp_v6_xmit(struct sk_buff *skb, struct sctp_transport *transport,
* and the source address from the transport.
*/
ipv6_addr_copy(&fl.fl6_dst, &transport->ipaddr_h.v6.sin6_addr);
ipv6_addr_copy(&fl.fl6_src, &transport->saddr_h.v6.sin6_addr);
ipv6_addr_copy(&fl.fl6_src, &transport->saddr.v6.sin6_addr);

fl.fl6_flowlabel = np->flow_label;
IP6_ECN_flow_xmit(sk, fl.fl6_flowlabel);
if (ipv6_addr_type(&fl.fl6_src) & IPV6_ADDR_LINKLOCAL)
fl.oif = transport->saddr_h.v6.sin6_scope_id;
fl.oif = transport->saddr.v6.sin6_scope_id;
else
fl.oif = sk->sk_bound_dev_if;
fl.fl_ip_sport = inet_sk(sk)->sport;
Expand Down
4 changes: 1 addition & 3 deletions trunk/net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ static struct sctp_transport *sctp_transport_init(struct sctp_transport *peer,

peer->dst = NULL;
memset(&peer->saddr, 0, sizeof(union sctp_addr));
memset(&peer->saddr_h, 0, sizeof(union sctp_addr));

/* From 6.3.1 RTO Calculation:
*
Expand Down Expand Up @@ -261,7 +260,6 @@ void sctp_transport_route(struct sctp_transport *transport,
else
af->get_saddr(asoc, dst, daddr, &transport->saddr);

flip_to_h(&transport->saddr_h, &transport->saddr);
transport->dst = dst;
if ((transport->param_flags & SPP_PMTUD_DISABLE) && transport->pathmtu) {
return;
Expand All @@ -273,7 +271,7 @@ void sctp_transport_route(struct sctp_transport *transport,
* association's active path for getsockname().
*/
if (asoc && (transport == asoc->peer.active_path))
opt->pf->af->to_sk_saddr(&transport->saddr_h,
opt->pf->af->to_sk_saddr(&transport->saddr,
asoc->base.sk);
} else
transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT;
Expand Down

0 comments on commit 122f5df

Please sign in to comment.