Home | History | Annotate | Download | only in netinet6

Lines Matching refs:ip6

89 #include <netinet/ip6.h>
115 * Raw interface to IP6 protocol.
138 rip6_sbappendaddr(struct inpcb *last, struct ip6_hdr *ip6,
145 ip6_savecontrol(last, &opts, ip6, n);
168 struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
177 if (faithprefix(&ip6->ip6_dst)) {
184 sockaddr_in6_init(&rip6src, &ip6->ip6_src, 0, 0, 0);
198 !IN6_ARE_ADDR_EQUAL(&in6p_laddr(inp), &ip6->ip6_dst))
201 !IN6_ARE_ADDR_EQUAL(&in6p_faddr(inp), &ip6->ip6_src))
230 rip6_sbappendaddr(last, ip6, sin6tosa(&rip6src),
245 rip6_sbappendaddr(last, ip6, sin6tosa(&rip6src), *offp, m);
270 struct ip6_hdr *ip6;
295 ip6 = ip6cp->ip6c_ip6;
300 ip6 = NULL;
306 if (ip6 && cmd == PRC_MSGSIZE) {
371 struct ip6_hdr *ip6;
425 M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
430 ip6 = mtod(m, struct ip6_hdr *);
435 ip6->ip6_dst = *dst;
441 &inp->inp_route, &in6p_laddr(inp), &oifp, &psref, &ip6->ip6_src);
458 ip6->ip6_dst = dstsock->sin6_addr;
461 ip6->ip6_flow = in6p_flowinfo(inp) & IPV6_FLOWINFO_MASK;
462 ip6->ip6_vfc &= ~IPV6_VERSION_MASK;
463 ip6->ip6_vfc |= IPV6_VERSION;
465 ip6->ip6_nxt = in6p_ip6(inp).ip6_nxt;
466 ip6->ip6_hlim = in6pcb_selecthlim(inp, oifp);
473 const uint8_t nxt = ip6->ip6_nxt;
495 sum = in6_cksum(m, nxt, sizeof(*ip6), plen);