Home
last modified time | relevance | path

Searched refs:mhp (Results 1 – 25 of 45) sorted by relevance

12

/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dpfkey.c207 caddr_t mhp[SADB_EXT_MAX + 1]; in pfkey_handler() local
256 if (pfkey_align(msg, mhp)) { in pfkey_handler()
262 if (pfkey_check(mhp)) { in pfkey_handler()
268 msg = (struct sadb_msg *)mhp[0]; in pfkey_handler()
285 if ((pkrecvf[msg->sadb_msg_type])(mhp) < 0) in pfkey_handler()
782 pk_fixup_sa_addresses(mhp) in pk_fixup_sa_addresses() argument
783 caddr_t *mhp; in pk_fixup_sa_addresses()
787 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
788 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
793 if (PFKEY_ADDR_X_NATTYPE(mhp[SADB_X_EXT_NAT_T_TYPE])) {
[all …]
H A Disakmp_inf.c1088 caddr_t mhp[SADB_EXT_MAX + 1]; local
1115 if (pfkey_align(msg, mhp) || pfkey_check(mhp)) {
1122 sa = (struct sadb_sa *)(mhp[SADB_EXT_SA]);
1124 || !mhp[SADB_EXT_ADDRESS_SRC]
1125 || !mhp[SADB_EXT_ADDRESS_DST]) {
1129 pk_fixup_sa_addresses(mhp);
1130 src = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_SRC]);
1131 dst = PFKEY_ADDR_SADDR(mhp[SADB_EXT_ADDRESS_DST]);
1132 lt = (struct sadb_lifetime*)mhp[SADB_EXT_LIFETIME_HARD];
1214 caddr_t mhp[SADB_EXT_MAX + 1]; local
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/darwin/mach/
H A Dgetsect.d166 const scope MachHeader* mhp, in version()
223 const scope MachHeader* mhp, in version()
262 const scope mach_header* mhp, in version()
270 const scope mach_header_64* mhp, in version()
302 const scope mach_header* mhp, in version()
309 const scope mach_header_64* mhp, in version()
329 const scope mach_header* mhp, in version()
337 const scope mach_header_64* mhp, in version()
385 const scope mach_header_64* mhp, in version()
396 const scope mach_header_64* mhp, in version()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/libipsec/
H A Dpfkey_dump.c239 caddr_t mhp[SADB_EXT_MAX + 1]; in pfkey_sadump1() local
268 if (pfkey_align(m, mhp)) { in pfkey_sadump1()
272 if (pfkey_check(mhp)) { in pfkey_sadump1()
277 m_sa = (void *)mhp[SADB_EXT_SA]; in pfkey_sadump1()
278 m_sa2 = (void *)mhp[SADB_X_EXT_SA2]; in pfkey_sadump1()
279 m_lftc = (void *)mhp[SADB_EXT_LIFETIME_CURRENT]; in pfkey_sadump1()
280 m_lfth = (void *)mhp[SADB_EXT_LIFETIME_HARD]; in pfkey_sadump1()
281 m_lfts = (void *)mhp[SADB_EXT_LIFETIME_SOFT]; in pfkey_sadump1()
282 m_saddr = (void *)mhp[SADB_EXT_ADDRESS_SRC]; in pfkey_sadump1()
283 m_daddr = (void *)mhp[SADB_EXT_ADDRESS_DST]; in pfkey_sadump1()
[all …]
H A Dpfkey.c1955 pfkey_align(struct sadb_msg *msg, caddr_t *mhp) in pfkey_align() argument
1963 if (msg == NULL || mhp == NULL) { in pfkey_align()
1970 mhp[i] = NULL; in pfkey_align()
1972 mhp[0] = (void *)msg; in pfkey_align()
1991 if (mhp[ext->sadb_ext_type] != NULL) { in pfkey_align()
2039 mhp[ext->sadb_ext_type] = (void *)ext; in pfkey_align()
2070 pfkey_check(caddr_t *mhp) in pfkey_check() argument
2075 if (mhp == NULL || mhp[0] == NULL) { in pfkey_check()
2080 msg = (void *)mhp[0]; in pfkey_check()
2157 if (mhp[SADB_EXT_ADDRESS_SRC] != NULL in pfkey_check()
[all …]
/netbsd-src/sys/netipsec/
H A Dkey.c642 key_msghdr_get_sockaddr(const struct sadb_msghdr *mhp, int idx) in key_msghdr_get_sockaddr() argument
645 return PFKEY_ADDR_SADDR(mhp->ext[idx]); in key_msghdr_get_sockaddr()
2137 key_gather_mbuf(struct mbuf *m, const struct sadb_msghdr *mhp, in key_gather_mbuf() argument
2147 KASSERT(mhp != NULL); in key_gather_mbuf()
2156 if (idx == SADB_EXT_RESERVED && mhp->msg == NULL) in key_gather_mbuf()
2159 (mhp->ext[idx] == NULL || mhp->extlen[idx] == 0)) in key_gather_mbuf()
2171 len = mhp->extlen[idx]; in key_gather_mbuf()
2174 m_copydata(m, mhp->extoff[idx], mhp in key_gather_mbuf()
2206 key_spdadd(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp,struct secpolicy ** _sp,bool from_kernel) key_spdadd() argument
2426 key_api_spdadd(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_spdadd() argument
2503 key_api_spddelete(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_spddelete() argument
2595 key_spddelete2(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp,bool from_kernel) key_spddelete2() argument
2667 key_api_spddelete2(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_spddelete2() argument
2700 key_api_spdget(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_spdget() argument
2816 key_api_spdflush(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_spdflush() argument
2930 key_api_spddump(struct socket * so,struct mbuf * m0,const struct sadb_msghdr * mhp) key_api_spddump() argument
2994 key_api_nat_map(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_nat_map() argument
3290 key_newsav(struct mbuf * m,const struct sadb_msghdr * mhp,int * errp,int proto,const char * where,int tag) key_newsav() argument
3615 key_setsaval(struct secasvar * sav,struct mbuf * m,const struct sadb_msghdr * mhp) key_setsaval() argument
5335 key_init_spidx_bymsghdr(struct secpolicyindex * spidx,const struct sadb_msghdr * mhp) key_init_spidx_bymsghdr() argument
5372 key_api_getspi(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_getspi() argument
5592 key_handle_natt_info(struct secasvar * sav,const struct sadb_msghdr * mhp) key_handle_natt_info() argument
5673 key_set_natt_ports(union sockaddr_union * src,union sockaddr_union * dst,const struct sadb_msghdr * mhp) key_set_natt_ports() argument
5725 key_api_update(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_update() argument
5981 key_api_add(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_add() argument
6129 key_setident(struct secashead * sah,struct mbuf * m,const struct sadb_msghdr * mhp) key_setident() argument
6214 key_getmsgbuf_x1(struct mbuf * m,const struct sadb_msghdr * mhp) key_getmsgbuf_x1() argument
6257 key_api_delete(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_delete() argument
6346 key_delete_all(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp,u_int16_t proto) key_delete_all() argument
6412 key_api_get(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_get() argument
7139 key_api_acquire(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_acquire() argument
7260 key_api_register(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_register() argument
7541 key_api_flush(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_flush() argument
7702 key_api_dump(struct socket * so,struct mbuf * m0,const struct sadb_msghdr * mhp) key_api_dump() argument
7773 key_api_promisc(struct socket * so,struct mbuf * m,const struct sadb_msghdr * mhp) key_api_promisc() argument
8108 key_align(struct mbuf * m,struct sadb_msghdr * mhp) key_align() argument
[all...]
/netbsd-src/crypto/dist/ipsec-tools/src/setkey/
H A Dsetkey.c474 caddr_t mhp[SADB_EXT_MAX + 1]; in sendkeymsg_spigrep() local
566 pfkey_align(m, mhp); in sendkeymsg_spigrep()
567 pfkey_check(mhp); in sendkeymsg_spigrep()
570 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; in sendkeymsg_spigrep()
581 saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_DST]; in sendkeymsg_spigrep()
596 sa = (struct sadb_sa *)mhp[SADB_EXT_SA]; in sendkeymsg_spigrep()
741 caddr_t mhp[SADB_EXT_MAX + 1]; in postproc() local
743 pfkey_align(msg, mhp); in postproc()
744 pfkey_check(mhp); in postproc()
745 if ((sa = (struct sadb_sa *)mhp[SADB_EXT_SA]) != NULL) { in postproc()
[all …]
/netbsd-src/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_ultrix.c89 mntlist **mpp, *mhp; in read_mtab() local
95 mpp = &mhp; in read_mtab()
120 return mhp; in read_mtab()
H A Dmtab_bsd.c112 mntlist **mpp, *mhp; in read_mtab() local
121 mpp = &mhp; in read_mtab()
144 return mhp; in read_mtab()
H A Dmtab_svr4.c218 mntlist **mpp, *mhp; in read_mtab() local
231 mpp = &mhp; in read_mtab()
253 mhp = NULL; in read_mtab()
258 return mhp; in read_mtab()
H A Dmtab_osf.c117 mntlist **mpp, *mhp; in read_mtab() local
126 mpp = &mhp; in read_mtab()
147 return mhp; in read_mtab()
H A Dmtab_isc3.c163 mntlist **mpp, *mhp; in read_mtab() local
178 mpp = &mhp; in read_mtab()
201 mhp = (mntlist *) NULL; in read_mtab()
206 return mhp; in read_mtab()
H A Dmtab_aix.c121 mntlist **mpp, *mhp; in read_mtab() local
154 mpp = &mhp; in read_mtab()
179 return mhp; in read_mtab()
H A Dmtab_file.c411 mntlist **mpp, *mhp; in read_mtab() local
419 mpp = &mhp; in read_mtab()
455 return mhp; in read_mtab()
H A Dmtab_mach3.c462 mntlist **mpp, *mhp; in read_mtab() local
470 mpp = &mhp; in read_mtab()
502 return mhp; in read_mtab()
H A Dmtab_linux.c521 mntlist **mpp, *mhp; in read_mtab() local
530 mpp = &mhp; in read_mtab()
566 return mhp; in read_mtab()
/netbsd-src/games/hack/
H A Dhack.potion.c315 if (rn2(5) && mon->mhp > 1) in potionhit()
316 mon->mhp--; in potionhit()
327 if (mon->mhp < mon->mhpmax) { in potionhit()
328 mon->mhp = mon->mhpmax; in potionhit()
335 if (mon->mhp > 2) in potionhit()
336 mon->mhp /= 2; in potionhit()
H A Dhack.mon.c126 if (mtmp->mhp > 1) in movemon()
127 mtmp->mhp--; in movemon()
246 mtmp->mhp < mtmp->mhpmax) in dochug()
247 mtmp->mhp++; in dochug()
282 && mtmp->mhp == mtmp->mhpmax && !rn2(25)) in dochug()
368 || (msym == '1' && (mtmp->mhp < 7 || (!xdnstair && !rn2(5)) in m_move()
370 if (mtmp->mhp < 7 || (msym == 't' && rn2(2))) in m_move()
943 int mhp, hpn, hpd; in newcham() local
961 hpn = mtmp->mhp; in newcham()
966 mhp = (mdat->mlevel) * 8; in newcham()
[all …]
H A Dhack.zap.c99 mtmp->mhp -= tmp; in bhitm()
100 if (mtmp->mhp < 1) in bhitm()
113 mtmp->mhp -= rnd(8); in bhitm()
114 if (mtmp->mhp < 1) in bhitm()
280 mtmp->mhp = 1; /* almost dead */ in dozap()
565 if (mon->mhp < 1) { in buzz()
679 tmp = mon->mhp + 1; in zhit()
682 mon->mhp -= tmp; in zhit()
H A Dhack.worm.c133 mtmp->mhp += 3; in worm_move()
154 mtmp->mhp -= 3; /* mhpmax not changed ! */ in worm_nomove()
254 mtmp2->mhpmax = mtmp2->mhp = in cutworm()
266 mtmp->mhp /= 2; in cutworm()
H A Dhack.makemon.c129 mtmp->mhpmax = mtmp->mhp = 80; in makemon()
131 mtmp->mhpmax = mtmp->mhp = rnd(4); in makemon()
133 mtmp->mhpmax = mtmp->mhp = d(ptr->mlevel, 8); in makemon()
H A Dhack.fight.c127 } else if ((mdef->mhp -= d(pa->damn, pa->damd)) < 1) { in hitmm()
310 mon->mhp -= tmp; in hmon()
311 if (mon->mhp < 1) { in hmon()
430 if (!rn2(25) && mtmp->mhp < mtmp->mhpmax / 2) { in attack()
H A Dhack.lev.c258 newhp = mtmp->mhp + in getlev()
261 mtmp->mhp = mtmp->mhpmax; in getlev()
263 mtmp->mhp = newhp; in getlev()
H A Dhack.trap.c269 mtmp->mhp -= 3; in mintrap()
276 mtmp->mhp -= 2; in mintrap()
281 mtmp->mhp -= 10; in mintrap()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_conv.h301 netbsd32_to_msghdr(const struct netbsd32_msghdr *mhp32, struct msghdr *mhp) in netbsd32_to_msghdr() argument
304 memset(mhp, 0, sizeof(*mhp)); in netbsd32_to_msghdr()
305 mhp->msg_name = NETBSD32PTR64(mhp32->msg_name); in netbsd32_to_msghdr()
306 mhp->msg_namelen = mhp32->msg_namelen; in netbsd32_to_msghdr()
307 mhp->msg_iovlen = (size_t)mhp32->msg_iovlen; in netbsd32_to_msghdr()
308 mhp->msg_control = NETBSD32PTR64(mhp32->msg_control); in netbsd32_to_msghdr()
309 mhp->msg_controllen = mhp32->msg_controllen; in netbsd32_to_msghdr()
310 mhp->msg_flags = mhp32->msg_flags; in netbsd32_to_msghdr()
315 netbsd32_from_msghdr(struct netbsd32_msghdr *mhp32, const struct msghdr *mhp) in netbsd32_from_msghdr() argument
319 NETBSD32PTR32(mhp32->msg_name, mhp->msg_name); in netbsd32_from_msghdr()
[all …]

12