Lines Matching refs:dp
341 * sp (src ptr) is always my side, and dp (dst ptr) is always remote side.
342 * length of mask (sm and dm) is assumed to be same as sp/dp.
346 encap_attach(af, proto, sp, sm, dp, dm, psw, arg)
350 const struct sockaddr *dp, *dm;
358 if (sp->sa_len > sizeof(ep->src) || dp->sa_len > sizeof(ep->dst)) {
362 if (sp->sa_len != dp->sa_len) {
366 if (af != sp->sa_family || af != dp->sa_family) {
381 if (ep->dst.ss_len != dp->sa_len ||
382 bcmp(&ep->dst, dp, dp->sa_len) != 0 ||
383 bcmp(&ep->dstmask, dm, dp->sa_len) != 0)
401 bcopy(dp, &ep->dst, dp->sa_len);
402 bcopy(dm, &ep->dstmask, dp->sa_len);
473 mask_match(ep, sp, dp)
476 const struct sockaddr *dp;
485 if (sp->sa_len > sizeof(s) || dp->sa_len > sizeof(d))
487 if (sp->sa_family != ep->af || dp->sa_family != ep->af)
489 if (sp->sa_len != ep->src.ss_len || dp->sa_len != ep->dst.ss_len)
503 p = (const u_int8_t *)dp;
506 for (i = 0 ; i < dp->sa_len; i++) {
515 d.ss_len = dp->sa_len;
516 d.ss_family = dp->sa_family;