diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 00:43:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:46 -0500 |
commit | 6281dcc94a96bd73017b2baa8fa83925405109ef (patch) | |
tree | 8deee4d66d256d10ea25f66520eb96b1fade1545 /net/ipv4/syncookies.c | |
parent | 08704bcbf022786532b5f188935ab6619906049f (diff) |
net: Make flowi ports AF dependent.
Create two sets of port member accessors, one set prefixed by fl4_*
and the other prefixed by fl6_*
This will let us to create AF optimal flow instances.
It will work because every context in which we access the ports,
we have to be fully aware of which AF the flowi is anyways.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/syncookies.c')
-rw-r--r-- | net/ipv4/syncookies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/syncookies.c b/net/ipv4/syncookies.c index 98d47dc60c89..d90529d45ee6 100644 --- a/net/ipv4/syncookies.c +++ b/net/ipv4/syncookies.c | |||
@@ -353,8 +353,8 @@ struct sock *cookie_v4_check(struct sock *sk, struct sk_buff *skb, | |||
353 | .fl4_tos = RT_CONN_FLAGS(sk), | 353 | .fl4_tos = RT_CONN_FLAGS(sk), |
354 | .flowi_proto = IPPROTO_TCP, | 354 | .flowi_proto = IPPROTO_TCP, |
355 | .flowi_flags = inet_sk_flowi_flags(sk), | 355 | .flowi_flags = inet_sk_flowi_flags(sk), |
356 | .fl_ip_sport = th->dest, | 356 | .fl4_sport = th->dest, |
357 | .fl_ip_dport = th->source, | 357 | .fl4_dport = th->source, |
358 | }; | 358 | }; |
359 | security_req_classify_flow(req, &fl); | 359 | security_req_classify_flow(req, &fl); |
360 | rt = ip_route_output_key(sock_net(sk), &fl); | 360 | rt = ip_route_output_key(sock_net(sk), &fl); |