Lines Matching defs:ip6
82 #include <netinet/ip6.h>
138 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
162 in6_recoverscope(&rip6src, &ip6->ip6_src);
164 key = &ip6->ip6_dst;
207 !IN6_ARE_ADDR_EQUAL(&inp->inp_faddr6, &ip6->ip6_src))
238 rip6_sbappend(last, n, ip6, *offp, &rip6src);
271 rip6_sbappend(last, m, ip6, *offp, &rip6src);
278 rip6_sbappend(struct inpcb *inp, struct mbuf *m, struct ip6_hdr *ip6, int hlen,
306 struct ip6_hdr *ip6;
332 ip6 = ip6cp->ip6c_ip6;
337 ip6 = NULL;
343 if (ip6 && cmd == PRC_MSGSIZE) {
393 struct ip6_hdr *ip6;
441 M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
446 ip6 = mtod(m, struct ip6_hdr *);
451 ip6->ip6_dst = *dst;
454 if (in6_embedscope(&ip6->ip6_dst, satosin6(dstaddr),
470 ip6->ip6_src = *in6a;
473 ip6->ip6_flow = inp->inp_flowinfo & IPV6_FLOWINFO_MASK;
474 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
475 ip6->ip6_vfc |= IPV6_VERSION;
477 ip6->ip6_plen = htons((u_short)plen);
479 ip6->ip6_nxt = inp->inp_ipv6.ip6_nxt;
480 ip6->ip6_hlim = in6_selecthlim(inp);
508 *sump = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);