diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-12-14 02:16:16 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 16:10:40 -0500 |
commit | 57cca05af1e20fdc65b55be52c042c234f86c866 (patch) | |
tree | 43b18dca01340861e7ad392c0c2ce398a1c878fd /net/dccp/input.c | |
parent | af05dc9394feb193d221bc9d4c6db768facb4b40 (diff) |
[DCCP]: Introduce dccp_ipv4_af_ops
And make the core DCCP code AF agnostic, just like TCP, now its time
to work on net/dccp/ipv6.c, we are close to the end!
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/input.c')
-rw-r--r-- | net/dccp/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c index 3454d5941900..c81488fa293e 100644 --- a/net/dccp/input.c +++ b/net/dccp/input.c | |||
@@ -329,7 +329,7 @@ static int dccp_rcv_request_sent_state_process(struct sock *sk, | |||
329 | dccp_set_state(sk, DCCP_PARTOPEN); | 329 | dccp_set_state(sk, DCCP_PARTOPEN); |
330 | 330 | ||
331 | /* Make sure socket is routed, for correct metrics. */ | 331 | /* Make sure socket is routed, for correct metrics. */ |
332 | inet_sk_rebuild_header(sk); | 332 | icsk->icsk_af_ops->rebuild_header(sk); |
333 | 333 | ||
334 | if (!sock_flag(sk, SOCK_DEAD)) { | 334 | if (!sock_flag(sk, SOCK_DEAD)) { |
335 | sk->sk_state_change(sk); | 335 | sk->sk_state_change(sk); |
@@ -444,7 +444,8 @@ int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, | |||
444 | */ | 444 | */ |
445 | if (sk->sk_state == DCCP_LISTEN) { | 445 | if (sk->sk_state == DCCP_LISTEN) { |
446 | if (dh->dccph_type == DCCP_PKT_REQUEST) { | 446 | if (dh->dccph_type == DCCP_PKT_REQUEST) { |
447 | if (dccp_v4_conn_request(sk, skb) < 0) | 447 | if (inet_csk(sk)->icsk_af_ops->conn_request(sk, |
448 | skb) < 0) | ||
448 | return 1; | 449 | return 1; |
449 | 450 | ||
450 | /* FIXME: do congestion control initialization */ | 451 | /* FIXME: do congestion control initialization */ |