diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:21:44 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:58 -0500 |
commit | 6244be4e063075f6077f05e70f8fa1bf7f4a968e (patch) | |
tree | 618083b6a1fe5cee3e46d3e75746d81c6ad2d39e /net/sctp/protocol.c | |
parent | 80f15d62418040e78849f5fc3a4a5af9c9d1fec7 (diff) |
[SCTP]: Trivial parts of a_h -> a switch.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 5b8b7f3598e0..c20f05b3308f 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -224,14 +224,14 @@ int sctp_copy_local_addr_list(struct sctp_bind_addr *bp, sctp_scope_t scope, | |||
224 | sctp_spin_lock_irqsave(&sctp_local_addr_lock, flags); | 224 | sctp_spin_lock_irqsave(&sctp_local_addr_lock, flags); |
225 | list_for_each(pos, &sctp_local_addr_list) { | 225 | list_for_each(pos, &sctp_local_addr_list) { |
226 | addr = list_entry(pos, struct sctp_sockaddr_entry, list); | 226 | addr = list_entry(pos, struct sctp_sockaddr_entry, list); |
227 | if (sctp_in_scope(&addr->a_h, scope)) { | 227 | if (sctp_in_scope(&addr->a, scope)) { |
228 | /* Now that the address is in scope, check to see if | 228 | /* Now that the address is in scope, check to see if |
229 | * the address type is really supported by the local | 229 | * the address type is really supported by the local |
230 | * sock as well as the remote peer. | 230 | * sock as well as the remote peer. |
231 | */ | 231 | */ |
232 | if ((((AF_INET == addr->a_h.sa.sa_family) && | 232 | if ((((AF_INET == addr->a.sa.sa_family) && |
233 | (copy_flags & SCTP_ADDR4_PEERSUPP))) || | 233 | (copy_flags & SCTP_ADDR4_PEERSUPP))) || |
234 | (((AF_INET6 == addr->a_h.sa.sa_family) && | 234 | (((AF_INET6 == addr->a.sa.sa_family) && |
235 | (copy_flags & SCTP_ADDR6_ALLOWED) && | 235 | (copy_flags & SCTP_ADDR6_ALLOWED) && |
236 | (copy_flags & SCTP_ADDR6_PEERSUPP)))) { | 236 | (copy_flags & SCTP_ADDR6_PEERSUPP)))) { |
237 | error = sctp_add_bind_addr(bp, &addr->a, 1, | 237 | error = sctp_add_bind_addr(bp, &addr->a, 1, |
@@ -503,8 +503,8 @@ static struct dst_entry *sctp_v4_get_dst(struct sctp_association *asoc, | |||
503 | laddr = list_entry(pos, struct sctp_sockaddr_entry, list); | 503 | laddr = list_entry(pos, struct sctp_sockaddr_entry, list); |
504 | 504 | ||
505 | if ((laddr->use_as_src) && | 505 | if ((laddr->use_as_src) && |
506 | (AF_INET == laddr->a_h.sa.sa_family)) { | 506 | (AF_INET == laddr->a.sa.sa_family)) { |
507 | fl.fl4_src = laddr->a_h.v4.sin_addr.s_addr; | 507 | fl.fl4_src = laddr->a.v4.sin_addr.s_addr; |
508 | if (!ip_route_output_key(&rt, &fl)) { | 508 | if (!ip_route_output_key(&rt, &fl)) { |
509 | dst = &rt->u.dst; | 509 | dst = &rt->u.dst; |
510 | goto out_unlock; | 510 | goto out_unlock; |