Lines Matching refs:mhp
1140 caddr_t mhp[SADB_EXT_MAX + 1]; local
1170 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
1177 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);
1179 || !mhp[SADB_EXT_ADDRESS_SRC]
1180 || !mhp[SADB_EXT_ADDRESS_DST]) {
1184 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
1185 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
1186 lt = (struct sadb_lifetime*)mhp[SADB_EXT_LIFETIME_HARD];
1198 natt_type = (void *)mhp[SADB_X_EXT_NAT_T_TYPE];
1202 natt_port = (void *)mhp[SADB_X_EXT_NAT_T_SPORT];
1206 natt_port = (void *)mhp[SADB_X_EXT_NAT_T_DPORT];
1290 caddr_t mhp[SADB_EXT_MAX + 1]; local
1373 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
1380 if (mhp[SADB_EXT_SA] == NULL
1381 || mhp[SADB_EXT_ADDRESS_SRC] == NULL
1382 || mhp[SADB_EXT_ADDRESS_DST] == NULL) {
1386 sa = (struct sadb_sa *)mhp[SADB_EXT_SA];
1387 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
1388 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);