Home | History | Annotate | Download | only in libipsec

Lines Matching defs:ep

384 	caddr_t ep;
432 ep = ((caddr_t)(void *)newmsg) + len;
434 p = pfkey_setsadbmsg((void *)newmsg, ep, SADB_GETSPI,
441 p = pfkey_setsadbxsa2(p, ep, mode, reqid);
448 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
456 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
467 if (p + sizeof(spirange) > ep) {
482 if (p != ep) {
579 caddr_t ep;
613 ep = ((caddr_t)(void *)newmsg) + len;
615 p = pfkey_setsadbmsg((void *)newmsg, ep, SADB_DELETE, (u_int)len,
621 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
627 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
629 if (!p || p != ep) {
760 caddr_t ep;
769 ep = p + tlen;
773 while (p < ep) {
775 if (ep < p + sizeof(*sup) ||
777 ep < p + sup->sadb_supported_len) {
801 if (p != ep) {
1140 caddr_t ep;
1180 ep = ((caddr_t)newmsg) + len;
1182 p = pfkey_setsadbmsg((caddr_t)newmsg, ep, SADB_X_MIGRATE, (u_int)len,
1188 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, prefs, proto);
1193 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, prefd, proto);
1194 if (!p || p + policylen != ep) {
1222 caddr_t ep;
1343 ep = ((caddr_t)(void *)newmsg) + len;
1345 p = pfkey_setsadbmsg((void *)newmsg, ep, sa_parms->type, (u_int)len,
1351 p = pfkey_setsadbsa(p, ep, sa_parms->spi, sa_parms->wsize,
1358 p = pfkey_setsadbxsa2(p, ep, sa_parms->mode, sa_parms->reqid);
1363 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, sa_parms->src,
1369 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, sa_parms->dst,
1378 p = pfkey_setsadbkey(p, ep, SADB_EXT_KEY_ENCRYPT,
1386 p = pfkey_setsadbkey(p, ep, SADB_EXT_KEY_AUTH,
1396 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_HARD,
1403 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_SOFT,
1412 p = pfkey_setsecctx(p, ep, SADB_X_EXT_SEC_CTX, sa_parms->ctxdoi,
1425 p = pfkey_set_natt_type(p, ep, SADB_X_EXT_NAT_T_TYPE,
1432 p = pfkey_set_natt_port(p, ep, SADB_X_EXT_NAT_T_SPORT,
1439 p = pfkey_set_natt_port(p, ep, SADB_X_EXT_NAT_T_DPORT,
1447 p = pfkey_setsadbaddr(p, ep, SADB_X_EXT_NAT_T_OA,
1459 p = pfkey_set_natt_frag(p, ep, SADB_X_EXT_NAT_T_FRAG,
1470 if (p != ep) {
1499 caddr_t ep;
1534 ep = ((caddr_t)(void *)newmsg) + len;
1536 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len, satype, 0,
1542 p = pfkey_setsadbsa(p, ep, spi, 0, 0, 0, 0);
1547 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, (u_int)plen,
1553 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, (u_int)plen,
1555 if (!p || p != ep) {
1583 caddr_t ep;
1616 ep = ((caddr_t)(void *)newmsg) + len;
1618 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len, satype, 0,
1620 if (!p || p != ep) {
1652 caddr_t ep;
1693 ep = ((caddr_t)(void *)newmsg) + len;
1695 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len,
1701 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_SRC, src, prefs, proto);
1706 p = pfkey_setsadbaddr(p, ep, SADB_EXT_ADDRESS_DST, dst, prefd, proto);
1711 p = pfkey_setsadblifetime(p, ep, SADB_EXT_LIFETIME_HARD,
1713 if (!p || p + policylen != ep) {
1741 caddr_t ep;
1751 ep = ((caddr_t)(void *)newmsg) + len;
1753 p = pfkey_setsadbmsg((void *)newmsg, ep, type, (u_int)len,
1760 if (p + sizeof(xpl) != ep) {
1934 caddr_t ep; /* XXX should be passed from upper layer */
1950 ep = p + PFKEY_UNUNIT64(msg->sadb_msg_len);
1955 while (p < ep) {
1957 if (ep < p + sizeof(*ext) || PFKEY_EXTLEN(ext) < sizeof(*ext) ||
1958 ep < p + PFKEY_EXTLEN(ext)) {
2017 if (p != ep) {