ipv6.c (4237c75c0a35535d7f9f2bfeeb4b4df1e068a0bf) ipv6.c (8e1ef0a95b87e8b4292b2ba733e8cb854ea2d2fe)
1/*
2 * DCCP over IPv6
3 * Linux INET6 implementation
4 *
5 * Based on net/dccp6/ipv6.c
6 *
7 * Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
8 *

--- 217 unchanged lines hidden (view full) ---

226 saddr = &fl.fl6_src;
227 ipv6_addr_copy(&np->rcv_saddr, saddr);
228 }
229
230 /* set the source address */
231 ipv6_addr_copy(&np->saddr, saddr);
232 inet->rcv_saddr = LOOPBACK4_IPV6;
233
1/*
2 * DCCP over IPv6
3 * Linux INET6 implementation
4 *
5 * Based on net/dccp6/ipv6.c
6 *
7 * Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
8 *

--- 217 unchanged lines hidden (view full) ---

226 saddr = &fl.fl6_src;
227 ipv6_addr_copy(&np->rcv_saddr, saddr);
228 }
229
230 /* set the source address */
231 ipv6_addr_copy(&np->saddr, saddr);
232 inet->rcv_saddr = LOOPBACK4_IPV6;
233
234 __ip6_dst_store(sk, dst, NULL);
234 __ip6_dst_store(sk, dst, NULL, NULL);
235
236 icsk->icsk_ext_hdr_len = 0;
237 if (np->opt != NULL)
238 icsk->icsk_ext_hdr_len = (np->opt->opt_flen +
239 np->opt->opt_nflen);
240
241 inet->dport = usin->sin6_port;
242

--- 624 unchanged lines hidden (view full) ---

867 goto out;
868
869 /*
870 * No need to charge this sock to the relevant IPv6 refcnt debug socks
871 * count here, dccp_create_openreq_child now does this for us, see the
872 * comment in that function for the gory details. -acme
873 */
874
235
236 icsk->icsk_ext_hdr_len = 0;
237 if (np->opt != NULL)
238 icsk->icsk_ext_hdr_len = (np->opt->opt_flen +
239 np->opt->opt_nflen);
240
241 inet->dport = usin->sin6_port;
242

--- 624 unchanged lines hidden (view full) ---

867 goto out;
868
869 /*
870 * No need to charge this sock to the relevant IPv6 refcnt debug socks
871 * count here, dccp_create_openreq_child now does this for us, see the
872 * comment in that function for the gory details. -acme
873 */
874
875 __ip6_dst_store(newsk, dst, NULL);
875 __ip6_dst_store(newsk, dst, NULL, NULL);
876 newsk->sk_route_caps = dst->dev->features & ~(NETIF_F_IP_CSUM |
877 NETIF_F_TSO);
878 newdp6 = (struct dccp6_sock *)newsk;
879 newinet = inet_sk(newsk);
880 newinet->pinet6 = &newdp6->inet6;
881 newdp = dccp_sk(newsk);
882 newnp = inet6_sk(newsk);
883

--- 409 unchanged lines hidden ---
876 newsk->sk_route_caps = dst->dev->features & ~(NETIF_F_IP_CSUM |
877 NETIF_F_TSO);
878 newdp6 = (struct dccp6_sock *)newsk;
879 newinet = inet_sk(newsk);
880 newinet->pinet6 = &newdp6->inet6;
881 newdp = dccp_sk(newsk);
882 newnp = inet6_sk(newsk);
883

--- 409 unchanged lines hidden ---