Lines Matching defs:ip6
95 #include <netinet/ip6.h>
626 struct ip6_hdr *ip6;
652 ip6 = mtod(m, struct ip6_hdr *);
658 if (ntohs(ip6->ip6_plen) == 0) {
666 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
713 ipsec6_logpacketstr(ip6, spi)));
721 ipsec6_logpacketstr(ip6, spi)));
750 ipsec6_logpacketstr(ip6, spi),
789 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
817 if (!IN6_ARE_ADDR_EQUAL(&nip6->ip6_src, &ip6->ip6_src)
818 || !IN6_ARE_ADDR_EQUAL(&nip6->ip6_dst, &ip6->ip6_dst)) {
841 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
877 flowinfo = ip6->ip6_flow;
879 if (m->m_len < sizeof(*ip6)) {
884 m = m_pullup(m, sizeof(*ip6));
890 ip6 = mtod(m, struct ip6_hdr *);
892 ip6_ecn_egress(ip6_ipsec_ecn, &flowinfo, &ip6->ip6_flow);
894 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
897 ipsec6_logpacketstr(ip6, spi),
926 ip6addr->sin6_addr = ip6->ip6_dst;
953 ip6 = mtod(m, struct ip6_hdr *);
959 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
969 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
991 ip6 = mtod(m, struct ip6_hdr *);
993 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);
1033 struct ip6_hdr *ip6;
1049 ip6 = ip6cp->ip6c_ip6;
1053 ip6 = NULL;
1056 if (ip6) {
1058 * XXX: We assume that when ip6 is non NULL,