Searched refs:mhp (Results 1 – 8 of 8) sorted by relevance
200 caddr_t mhp[SADB_EXT_MAX + 1]; in pfkey_handler() local242 if (pfkey_align(msg, mhp)) { in pfkey_handler()248 if (pfkey_check(mhp)) { in pfkey_handler()254 msg = (struct sadb_msg *)mhp[0]; in pfkey_handler()271 if ((pkrecvf[msg->sadb_msg_type])(mhp) < 0) in pfkey_handler()928 pk_recvgetspi(mhp) in pk_recvgetspi() argument929 caddr_t *mhp; in pk_recvgetspi()941 if (mhp[SADB_EXT_SA] == NULL942 || mhp[SADB_EXT_ADDRESS_DST] == NULL) {947 msg = (struct sadb_msg *)mhp[0];[all …]
1140 caddr_t mhp[SADB_EXT_MAX + 1]; local1170 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];[all …]
491 caddr_t mhp[SADB_EXT_MAX + 1]; in check_flushsa() local515 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) { in check_flushsa()522 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]); in check_flushsa()
3201 caddr_t mhp[SADB_EXT_MAX + 1]; local3239 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {3246 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);3248 !mhp[SADB_EXT_ADDRESS_SRC] ||3249 !mhp[SADB_EXT_ADDRESS_DST]) {3253 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);3254 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
237 caddr_t mhp[SADB_EXT_MAX + 1]; local263 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_DST];[all …]
323 caddr_t mhp[SADB_EXT_MAX + 1]; local327 if (pfkey_align(msg, mhp) < 0)330 return ((struct sadb_x_policy *)mhp[SADB_X_EXT_POLICY])->sadb_x_policy_id;
1846 pfkey_align(struct sadb_msg *msg, caddr_t *mhp) in pfkey_align() argument1854 if (msg == NULL || mhp == NULL) { in pfkey_align()1861 mhp[i] = NULL; in pfkey_align()1863 mhp[0] = (void *)msg; in pfkey_align()1882 if (mhp[ext->sadb_ext_type] != NULL) { in pfkey_align()1924 mhp[ext->sadb_ext_type] = (void *)ext; in pfkey_align()1955 pfkey_check(caddr_t *mhp) in pfkey_check() argument1960 if (mhp == NULL || mhp[0] == NULL) { in pfkey_check()1965 msg = (void *)mhp[0]; in pfkey_check()2036 if (mhp[SADB_EXT_ADDRESS_SRC] != NULL in pfkey_check()[all …]
33 Vr-+BrIE$L!8"bQ"pXcIlKVBY2EhdNlSN4*mhp@+Jm#i"c1@e5*,j8J)b%QB%fU"