Home | History | Annotate | Download | only in libipsec

Lines Matching defs:ep

382 	caddr_t ep;
430 ep = ((caddr_t)(void *)newmsg) + len;
432 p = pfkey_setsadbmsg((void *)newmsg, ep, SADB_GETSPI,
439 p = pfkey_setsadbxsa2(p, ep, mode, reqid);
446 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
454 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
465 if (p + sizeof(spirange) > ep) {
480 if (p != ep) {
570 caddr_t ep;
604 ep = ((caddr_t)(void *)newmsg) + len;
606 p = pfkey_setsadbmsg((void *)newmsg, ep, SADB_DELETE, (u_int)len,
612 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
618 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
620 if (!p || p != ep) {
743 caddr_t ep;
752 ep = p + tlen;
756 while (p < ep) {
758 if (ep < p + sizeof(*sup) ||
760 ep < p + sup->sadb_supported_len) {
784 if (p != ep) {
1079 caddr_t ep;
1119 ep = ((caddr_t)newmsg) + len;
1121 p = pfkey_setsadbmsg((caddr_t)newmsg, ep, SADB_X_MIGRATE, (u_int)len,
1127 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, prefs, proto);
1132 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, prefd, proto);
1133 if (!p || p + policylen != ep) {
1160 caddr_t ep;
1281 ep = ((caddr_t)(void *)newmsg) + len;
1283 p = pfkey_setsadbmsg((void *)newmsg, ep, sa_parms->type, (u_int)len,
1289 p = pfkey_setsadbsa(p, ep, sa_parms->spi, sa_parms->wsize,
1296 p = pfkey_setsadbxsa2(p, ep, sa_parms->mode, sa_parms->reqid);
1301 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, sa_parms->src,
1307 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, sa_parms->dst,
1316 p = pfkey_setsadbkey(p, ep, SADB_EXT_KEY_ENCRYPT,
1324 p = pfkey_setsadbkey(p, ep, SADB_EXT_KEY_AUTH,
1334 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_HARD,
1341 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_SOFT,
1350 p = pfkey_setsecctx(p, ep, SADB_X_EXT_SEC_CTX, sa_parms->ctxdoi,
1363 p = pfkey_set_natt_type(p, ep, SADB_X_EXT_NAT_T_TYPE,
1370 p = pfkey_set_natt_port(p, ep, SADB_X_EXT_NAT_T_SPORT,
1377 p = pfkey_set_natt_port(p, ep, SADB_X_EXT_NAT_T_DPORT,
1385 p = pfkey_setsadbaddr(p, ep, SADB_X_EXT_NAT_T_OA,
1397 p = pfkey_set_natt_frag(p, ep, SADB_X_EXT_NAT_T_FRAG,
1408 if (p != ep) {
1434 caddr_t ep;
1469 ep = ((caddr_t)(void *)newmsg) + len;
1471 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len, satype, 0,
1477 p = pfkey_setsadbsa(p, ep, spi, 0, 0, 0, 0);
1482 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
1488 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
1490 if (!p || p != ep) {
1516 caddr_t ep;
1549 ep = ((caddr_t)(void *)newmsg) + len;
1551 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len, satype, 0,
1553 if (!p || p != ep) {
1579 caddr_t ep;
1620 ep = ((caddr_t)(void *)newmsg) + len;
1622 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len,
1628 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, prefs, proto);
1633 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, prefd, proto);
1638 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_HARD,
1640 if (!p || p + policylen != ep) {
1665 caddr_t ep;
1675 ep = ((caddr_t)(void *)newmsg) + len;
1677 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len,
1684 if (p + sizeof(xpl) != ep) {
1851 caddr_t ep; /* XXX should be passed from upper layer */
1867 ep = p + PFKEY_UNUNIT64(msg->sadb_msg_len);
1872 while (p < ep) {
1874 if (ep < p + sizeof(*ext) || PFKEY_EXTLEN(ext) < sizeof(*ext) ||
1875 ep < p + PFKEY_EXTLEN(ext)) {
1934 if (p != ep) {