Lines Matching defs:ip6

97 #include <netinet/ip6.h>
165 struct ip6_hdr *ip6;
519 if (m->m_len < sizeof(*ip6)) {
520 m = m_pullup(m, sizeof(*ip6));
533 ip6 = mtod(m, struct ip6_hdr *);
540 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
543 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
553 ip6addr->sin6_addr = ip6->ip6_dst;
750 struct ip6_hdr *ip6;
783 ip6 = mtod(m, struct ip6_hdr *);
785 if (ntohs(ip6->ip6_plen) == 0) {
796 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
828 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
852 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
883 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
890 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
897 ip6 = mtod(m, struct ip6_hdr *);
898 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - siz);
945 ip6 = mtod(m, struct ip6_hdr *); /*set it again just in case*/
984 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
991 ip6 = mtod(m, struct ip6_hdr *);
992 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen);
1018 flowinfo = ip6->ip6_flow;
1020 if (m->m_len < sizeof(*ip6)) {
1029 m = m_pullup(m, sizeof(*ip6));
1035 ip6 = mtod(m, struct ip6_hdr *);
1037 ip6_ecn_egress(ip6_ipsec_ecn, &flowinfo, &ip6->ip6_flow);
1039 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
1042 ipsec6_logpacketstr(ip6, spi),
1062 ip6addr->sin6_addr = ip6->ip6_dst;
1111 ip6 = mtod(m, struct ip6_hdr *);
1113 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
1181 ip6 = mtod(m, struct ip6_hdr *);
1182 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);
1244 struct ip6_hdr *ip6;
1259 ip6 = ip6cp->ip6c_ip6;
1263 ip6 = NULL;
1266 if (ip6) {
1286 * XXX: We assume that when ip6 is non NULL,