Searched refs:mhp (Results 1 - 7 of 7) sorted by relevance

/external/ipsec-tools/src/racoon/
H A Dpfkey.c200 caddr_t mhp[SADB_EXT_MAX + 1]; local
242 if (pfkey_align(msg, mhp)) {
248 if (pfkey_check(mhp)) {
254 msg = (struct sadb_msg *)mhp[0];
271 if ((pkrecvf[msg->sadb_msg_type])(mhp) < 0)
928 pk_recvgetspi(mhp)
929 caddr_t *mhp;
941 if (mhp[SADB_EXT_SA] == NULL
942 || mhp[SADB_EXT_ADDRESS_DST] == NULL) {
947 msg = (struct sadb_msg *)mhp[
[all...]
H A Dsession.c491 caddr_t mhp[SADB_EXT_MAX + 1]; local
515 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
522 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);
H A Disakmp_inf.c1141 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_TYP
1140 caddr_t mhp[SADB_EXT_MAX + 1]; local
1290 caddr_t mhp[SADB_EXT_MAX + 1]; local
[all...]
H A Disakmp.c3196 caddr_t mhp[SADB_EXT_MAX + 1];
3234 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
3241 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);
3243 !mhp[SADB_EXT_ADDRESS_SRC] ||
3244 !mhp[SADB_EXT_ADDRESS_DST]) {
3248 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
3249 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
3195 caddr_t mhp[SADB_EXT_MAX + 1]; local
/external/ipsec-tools/src/libipsec/
H A Dpfkey_dump.c237 caddr_t mhp[SADB_EXT_MAX + 1]; local
263 if (pfkey_align(m, mhp)) {
267 if (pfkey_check(mhp)) {
272 m_sa = (void *)mhp[SADB_EXT_SA];
273 m_sa2 = (void *)mhp[SADB_X_EXT_SA2];
274 m_lftc = (void *)mhp[SADB_EXT_LIFETIME_CURRENT];
275 m_lfth = (void *)mhp[SADB_EXT_LIFETIME_HARD];
276 m_lfts = (void *)mhp[SADB_EXT_LIFETIME_SOFT];
277 m_saddr = (void *)mhp[SADB_EXT_ADDRESS_SRC];
278 m_daddr = (void *)mhp[SADB_EXT_ADDRESS_DS
489 caddr_t mhp[SADB_EXT_MAX + 1]; local
[all...]
H A Dtest-policy.c323 caddr_t mhp[SADB_EXT_MAX + 1]; local
327 if (pfkey_align(msg, mhp) < 0)
330 return ((struct sadb_x_policy *)mhp[SADB_X_EXT_POLICY])->sadb_x_policy_id;
H A Dpfkey.c1919 * mhp: pointer to the buffer initialized like below:
1920 * caddr_t mhp[SADB_EXT_MAX + 1];
1927 pfkey_align(msg, mhp)
1929 caddr_t *mhp;
1937 if (msg == NULL || mhp == NULL) {
1944 mhp[i] = NULL;
1946 mhp[0] = (void *)msg;
1965 if (mhp[ext->sadb_ext_type] != NULL) {
2007 mhp[ext->sadb_ext_type] = (void *)ext;
2030 * mhp
[all...]

Completed in 75 milliseconds