Lines Matching refs:ip6

96 #include <netinet/ip6.h>
166 struct ip6_hdr *ip6;
523 if (m->m_len < sizeof(*ip6)) {
524 m = m_pullup(m, sizeof(*ip6));
537 ip6 = mtod(m, struct ip6_hdr *);
544 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
547 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
557 ip6addr->sin6_addr = ip6->ip6_dst;
727 struct ip6_hdr *ip6;
760 ip6 = mtod(m, struct ip6_hdr *);
762 if (ntohs(ip6->ip6_plen) == 0) {
773 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst,
804 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
828 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
859 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
866 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
873 ip6 = mtod(m, struct ip6_hdr *);
874 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - siz);
921 ip6 = mtod(m, struct ip6_hdr *); /*set it again just in case*/
960 ipsec6_logpacketstr(ip6, spi), ipsec_logsastr(sav)));
967 ip6 = mtod(m, struct ip6_hdr *);
968 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen);
994 flowinfo = ip6->ip6_flow;
996 if (m->m_len < sizeof(*ip6)) {
1005 m = m_pullup(m, sizeof(*ip6));
1011 ip6 = mtod(m, struct ip6_hdr *);
1013 ip6_ecn_egress(ip6_ipsec_ecn, &flowinfo, &ip6->ip6_flow);
1015 (caddr_t)&ip6->ip6_src, (caddr_t)&ip6->ip6_dst)) {
1018 ipsec6_logpacketstr(ip6, spi),
1038 ip6addr->sin6_addr = ip6->ip6_dst;
1076 ip6 = mtod(m, struct ip6_hdr *);
1078 ovbcopy((caddr_t)ip6, ((caddr_t)ip6) + stripsiz, off);
1146 ip6 = mtod(m, struct ip6_hdr *);
1147 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz);
1196 struct ip6_hdr *ip6;
1211 ip6 = ip6cp->ip6c_ip6;
1215 ip6 = NULL;
1218 if (ip6) {
1238 * XXX: We assume that when ip6 is non NULL,