Lines Matching refs:mhp
1141 caddr_t mhp[SADB_EXT_MAX + 1];
1171 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
1178 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);
1180 || !mhp[SADB_EXT_ADDRESS_SRC]
1181 || !mhp[SADB_EXT_ADDRESS_DST]) {
1185 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
1186 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
1187 lt = (struct sadb_lifetime*)mhp[SADB_EXT_LIFETIME_HARD];
1199 natt_type = (void *)mhp[SADB_X_EXT_NAT_T_TYPE];
1203 natt_port = (void *)mhp[SADB_X_EXT_NAT_T_SPORT];
1207 natt_port = (void *)mhp[SADB_X_EXT_NAT_T_DPORT];
1291 caddr_t mhp[SADB_EXT_MAX + 1];
1374 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
1381 if (mhp[SADB_EXT_SA] == NULL
1382 || mhp[SADB_EXT_ADDRESS_SRC] == NULL
1383 || mhp[SADB_EXT_ADDRESS_DST] == NULL) {
1387 sa = (struct sadb_sa *)mhp[SADB_EXT_SA];
1388 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
1389 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);