Lines Matching refs:cpi
91 u_int16_t cpi; /* host order */
123 cpi = ntohs(ipcomp->comp_cpi);
125 if (cpi >= IPCOMP_CPI_NEGOTIATE_MIN) {
127 (caddr_t)&ip->ip_dst, IPPROTO_IPCOMP, htonl(cpi));
131 cpi = sav->alg_enc; /*XXX*/
135 algo = ipcomp_algorithm_lookup(cpi);
137 ipseclog((LOG_WARNING, "IPv4 IPComp input: unknown cpi %u\n",
138 cpi));
165 IPSEC_STAT_INCREMENT(ipsecstat.in_comphist[cpi]);
203 if (ipsec_addhist(m, IPPROTO_IPCOMP, (u_int32_t)cpi) != 0) {
245 u_int16_t cpi; /* host order */
267 cpi = ntohs(ipcomp->comp_cpi);
269 if (cpi >= IPCOMP_CPI_NEGOTIATE_MIN) {
271 (caddr_t)&ip6->ip6_dst, IPPROTO_IPCOMP, htonl(cpi));
275 cpi = sav->alg_enc; /*XXX*/
279 algo = ipcomp_algorithm_lookup(cpi);
281 ipseclog((LOG_WARNING, "IPv6 IPComp input: unknown cpi %u; "
282 "dropping the packet for simplicity\n", cpi));
303 IPSEC_STAT_INCREMENT(ipsec6stat.in_comphist[cpi]);
323 if (ipsec_addhist(m, IPPROTO_IPCOMP, (u_int32_t)cpi) != 0) {