Lines Matching defs:ip6
249 struct ip6_hdr *ip6;
251 ip6 = mtod(m, struct ip6_hdr *);
253 ip6->ip6_src = inp->inp_laddr6;
254 ip6->ip6_dst = inp->inp_faddr6;
255 ip6->ip6_flow = htonl(0x60000000) |
258 ip6->ip6_nxt = IPPROTO_TCP;
259 ip6->ip6_plen = htons(sizeof(struct tcphdr)); /*XXX*/
260 ip6->ip6_hlim = in6_selecthlim(inp); /*XXX*/
305 struct ip6_hdr *ip6;
330 ip6 = mtod(m, struct ip6_hdr *);
331 th = (struct tcphdr *)(ip6 + 1);
332 tlen = sizeof(*ip6) + sizeof(*th);
334 memcpy(ip6, template, sizeof(*ip6));
336 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr);
338 memcpy(ip6, template, tlen);
398 ip6->ip6_flow = htonl(0x60000000);
399 ip6->ip6_nxt = IPPROTO_TCP;
400 ip6->ip6_hlim = in6_selecthlim(tp ? tp->t_inpcb : NULL); /*XXX*/
401 ip6->ip6_plen = tlen - sizeof(struct ip6_hdr);
402 ip6->ip6_plen = htons(ip6->ip6_plen);
607 struct ip6_hdr *ip6;
648 ip6 = ip6cp->ip6c_ip6;
653 ip6 = NULL;
657 if (ip6) {
659 * XXX: We assume that when ip6 is non NULL,
1041 struct ip6_hdr *ip6;
1043 ip6 = mtod(m, struct ip6_hdr *);
1045 ip6pseudo.ip6ph_src = ip6->ip6_src;
1046 ip6pseudo.ip6ph_dst = ip6->ip6_dst;