| /netbsd-src/tests/net/ndp/ |
| H A D | t_ndp.sh | 89 $DEBUG && rump.ndp -n -a 105 $DEBUG && rump.ndp -n -a 106 atf_check -s not-exit:0 -o ignore -e match:'no entry' rump.ndp -n $IP6SRC 107 atf_check -s not-exit:0 -o ignore -e match:'no entry' rump.ndp -n $IP6DST 112 local timeout=$(env RUMP_SERVER=$SOCKSRC rump.ndp -n $IP6DST |grep $IP6DST|awk '{print $4;}') 130 rump.ndp -i shmif0 basereachable=7000 136 atf_check -s exit:0 -o ignore rump.ndp -s $IP6SRC $macaddr 145 $DEBUG && rump.ndp -n -a 146 atf_check -s not-exit:0 -o ignore -e match:'no entry' rump.ndp -n $IP6SRC 148 atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n $IP6DST [all …]
|
| H A D | Makefile | 6 TESTSDIR= ${TESTSBASE}/net/ndp 8 .for name in dad ndp
|
| /netbsd-src/sys/kern/ |
| H A D | vfs_lookup.c | 438 * identify next component of name at ndp->ni_ptr 455 * cnp is always equal to &ndp->ni_cnp. 458 struct nameidata *ndp; 466 unsigned root_referenced:1; /* true if ndp->ni_rootdir and 467 ndp->ni_erootdir were referenced */ in namei_init() argument 475 namei_init(struct namei_state *state, struct nameidata *ndp) in namei_init() 478 state->ndp = ndp; in namei_init() 479 state->cnp = &ndp->ni_cnd; in namei_init() 499 state->ndp 450 struct nameidata *ndp; global() member 521 struct nameidata *ndp = state->ndp; namei_getstartdir() local 629 struct nameidata *ndp = state->ndp; namei_ktrace() local 664 struct nameidata *ndp = state->ndp; namei_start() local 726 struct nameidata *ndp = state->ndp; namei_follow() local 834 struct nameidata *ndp = state->ndp; lookup_parsepath() local 1068 struct nameidata *ndp = state->ndp; lookup_once() local 1258 struct nameidata *ndp = state->ndp; lookup_fastforward() local 1487 struct nameidata *ndp = state->ndp; namei_oneroot() local 1893 struct nameidata *ndp = state->ndp; namei_tryemulroot() local 1936 namei(struct nameidata * ndp) namei() argument 1970 lookup_for_nfsd(struct nameidata * ndp,struct vnode * forcecwd,int neverfollow) lookup_for_nfsd() argument 2014 struct nameidata *ndp = state->ndp; do_lookup_for_nfsd_index() local 2094 lookup_for_nfsd_index(struct nameidata * ndp,struct vnode * startdir) lookup_for_nfsd_index() argument [all...] |
| H A D | kern_hook.c | 389 struct powerhook_desc *ndp; in powerhook_establish() local 391 ndp = (struct powerhook_desc *) in powerhook_establish() 392 malloc(sizeof(*ndp), M_DEVBUF, M_NOWAIT); in powerhook_establish() 393 if (ndp == NULL) in powerhook_establish() 396 ndp->sfd_fn = fn; in powerhook_establish() 397 ndp->sfd_arg = arg; in powerhook_establish() 398 strlcpy(ndp->sfd_name, name, sizeof(ndp->sfd_name)); in powerhook_establish() 399 TAILQ_INSERT_HEAD(&powerhook_list, ndp, sfd_list); in powerhook_establish() 402 return (ndp); in powerhook_establish()
|
| /netbsd-src/sys/fs/nfs/server/ |
| H A D | nfs_nfsdport.c | 346 nfsvno_namei(struct nfsrv_descript *nd, struct nameidata *ndp, in nfsvno_namei() argument 350 struct componentname *cnp = &ndp->ni_cnd; in nfsvno_namei() 360 ndp->ni_lcf = 0; in nfsvno_namei() 369 nfsvno_relpathbuf(ndp); in nfsvno_namei() 379 ndp->ni_segflg = UIO_SYSSPACE; in nfsvno_namei() 383 ndp->ni_loopcnt = 0; in nfsvno_namei() 390 for (i = 1; i < ndp->ni_pathlen; i++) in nfsvno_namei() 393 if (i == ndp->ni_pathlen) { in nfsvno_namei() 417 ndp->ni_startdir = dp; in nfsvno_namei() 418 ndp->ni_rootdir = rootvnode; in nfsvno_namei() [all …]
|
| /netbsd-src/lib/libc/compat/sys/ |
| H A D | compat_getdents.c | 53 struct dirent *ndp, *nndp, *endp; in getdents() local 63 ndp = (struct dirent *)(void *)buf; in getdents() 71 for (; ndp < endp; ndp = nndp) { in getdents() 72 nndp = _DIRENT_NEXT(ndp); in getdents() 75 memcpy(&ino, &ndp->d_ino, sizeof(ino_t)); in getdents() 77 if (ndp->d_namlen >= sizeof(odp->d_name)) in getdents() 80 odp->d_namlen = (u_int8_t)ndp->d_namlen; in getdents() 81 odp->d_type = ndp->d_type; in getdents() 82 (void)memcpy(odp->d_name, ndp->d_name, (size_t)odp->d_namlen); in getdents()
|
| /netbsd-src/sys/nfs/ |
| H A D | nfs_subs.c | 1210 nfs_unlinkdircache(struct nfsnode *np, struct nfsdircache *ndp) in nfs_unlinkdircache() argument 1214 KASSERT(ndp != &dzero); in nfs_unlinkdircache() 1216 if (LIST_NEXT(ndp, dc_hash) == (void *)-1) in nfs_unlinkdircache() 1219 TAILQ_REMOVE(&np->n_dirchain, ndp, dc_chain); in nfs_unlinkdircache() 1220 LIST_REMOVE(ndp, dc_hash); in nfs_unlinkdircache() 1221 LIST_NEXT(ndp, dc_hash) = (void *)-1; /* mark as unlinked */ in nfs_unlinkdircache() 1223 nfs_putdircache_unlocked(np, ndp); in nfs_unlinkdircache() 1227 nfs_putdircache(struct nfsnode *np, struct nfsdircache *ndp) in nfs_putdircache() argument 1231 if (ndp == &dzero) in nfs_putdircache() 1234 KASSERT(ndp->dc_refcnt > 0); in nfs_putdircache() [all …]
|
| H A D | nfs_srvsubs.c | 119 nfs_namei(struct nameidata *ndp, nfsrvfh_t *nsfh, uint32_t len, struct nfssvc_sock *slp, struct mbu… in nfs_namei() argument 127 struct componentname *cnp = &ndp->ni_cnd; in nfs_namei() 130 ndp->ni_pathbuf = NULL; in nfs_namei() 177 error = nfsrv_fhtovp(nsfh, false, &dp, ndp->ni_cnd.cn_cred, slp, in nfs_namei() 193 *dirattr_retp = VOP_GETATTR(dp, dirattrp, ndp->ni_cnd.cn_cred); in nfs_namei() 249 ndp->ni_atdir = NULL; in nfs_namei() 250 ndp->ni_pathbuf = pathbuf_assimilate(path); in nfs_namei() 251 if (ndp->ni_pathbuf == NULL) { in nfs_namei() 271 error = lookup_for_nfsd(ndp, dp, neverfollow); in nfs_namei() 278 if (ndp->ni_pathbuf != NULL) { in nfs_namei() [all …]
|
| H A D | nfs_bio.c | 87 struct nfsdircache *ndp = NULL, *nndp = NULL; in nfs_bioread() local 198 ndp = nfs_searchdircache(vp, uio->uio_offset, in nfs_bioread() 200 if (!ndp) { in nfs_bioread() 213 ndp = nfs_enterdircache(vp, uio->uio_offset, in nfs_bioread() 218 ndp->dc_cookie == np->n_direofoffset) { in nfs_bioread() 219 nfs_putdircache(np, ndp); in nfs_bioread() 224 bp = nfs_getcacheblk(vp, NFSDC_BLKNO(ndp), NFS_DIRBLKSIZ, l); in nfs_bioread() 229 bp->b_dcookie = ndp->dc_blkcookie; in nfs_bioread() 237 nfs_putdircache(np, ndp); in nfs_bioread() 261 ndp->dc_blkcookie == np->n_direofoffset)) { in nfs_bioread() [all …]
|
| H A D | nfsnode.h | 88 #define NFSDC_BLKNO(ndp) ((daddr_t)(ndp)->dc_blkcookie) 198 #define NFS_EOFVALID(ndp) ((ndp)->n_flag & NEOFVALID) 85 NFSDC_BLKNO(ndp) global() argument 195 NFS_EOFVALID(ndp) global() argument
|
| H A D | nfs_srvsocket.c | 360 struct nfsrv_descript **ndp, bool *more) in nfsrv_dorec() argument 366 *ndp = NULL; in nfsrv_dorec() 402 *ndp = nd; in nfsrv_dorec()
|
| /netbsd-src/sys/sys/ |
| H A D | namei.h | 184 #define NDINIT(ndp, op, flags, pathbuf) { \ argument 185 (ndp)->ni_cnd.cn_nameiop = op; \ 186 (ndp)->ni_cnd.cn_flags = flags; \ 187 (ndp)->ni_atdir = NULL; \ 188 (ndp)->ni_pathbuf = pathbuf; \ 189 (ndp)->ni_cnd.cn_cred = kauth_cred_get(); \ 195 #define NDAT(ndp, dir) { \ argument 196 (ndp)->ni_atdir = (dir); \
|
| H A D | namei.src | 176 #define NDINIT(ndp, op, flags, pathbuf) { \ 177 (ndp)->ni_cnd.cn_nameiop = op; \ 178 (ndp)->ni_cnd.cn_flags = flags; \ 179 (ndp)->ni_atdir = NULL; \ 180 (ndp)->ni_pathbuf = pathbuf; \ 181 (ndp)->ni_cnd.cn_cred = kauth_cred_get(); \ 187 #define NDAT(ndp, dir) { \ 188 (ndp)->ni_atdir = (dir); \
|
| /netbsd-src/usr.sbin/ndp/ |
| H A D | Makefile | 7 RUMPPRG= ndp 8 SRCS= ndp.c 9 MAN= ndp.8
|
| /netbsd-src/sbin/restore/ |
| H A D | dirs.c | 442 dcvt(struct odirect *odp, struct direct *ndp) in dcvt() argument 445 memset(ndp, 0, sizeof(*ndp)); in dcvt() 447 ndp->d_ino = bswap16(odp->d_ino); in dcvt() 449 ndp->d_ino = odp->d_ino; in dcvt() 450 ndp->d_type = DT_UNKNOWN; in dcvt() 451 (void) strncpy(ndp->d_name, odp->d_name, ODIRSIZ); in dcvt() 452 ndp->d_namlen = strlen(ndp->d_name); in dcvt() 453 ndp->d_reclen = UFS_DIRSIZ(0, ndp, 0); in dcvt()
|
| /netbsd-src/sys/fs/unionfs/ |
| H A D | unionfs_vfsops.c | 82 struct nameidata nd, *ndp; in unionfs_mount() local 106 ndp = &nd; in unionfs_mount() 176 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, pb); in unionfs_mount() 177 if ((error = namei(ndp))) { in unionfs_mount() 184 upperrootvp = ndp->ni_vp; in unionfs_mount() 186 vrele(ndp->ni_dvp); in unionfs_mount() 187 ndp->ni_dvp = NULLVP; in unionfs_mount()
|
| /netbsd-src/tests/net/route/ |
| H A D | t_flags6.sh | 139 rump.ndp -n $IP6_PEER 156 rump.ndp -n $IP6_PEER 182 rump.ndp -n $IP6_PEER 204 rump.ndp -n $IP6_PEER
|
| /netbsd-src/external/cddl/osnet/dist/common/ctf/ |
| H A D | ctf_decl.c | 77 ctf_decl_node_t *cdp, *ndp; in ctf_decl_fini() local 82 cdp != NULL; cdp = ndp) { in ctf_decl_fini() 83 ndp = ctf_list_next(cdp); in ctf_decl_fini()
|
| /netbsd-src/external/gpl3/binutils.old/dist/libctf/ |
| H A D | ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; in ctf_decl_fini() local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) in ctf_decl_fini() 67 ndp = ctf_list_next (cdp); in ctf_decl_fini()
|
| /netbsd-src/external/gpl3/binutils/dist/libctf/ |
| H A D | ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; in ctf_decl_fini() local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) in ctf_decl_fini() 67 ndp = ctf_list_next (cdp); in ctf_decl_fini()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| H A D | dt_decl.c | 99 dt_decl_t *ndp; in dt_decl_free() local 101 for (; ddp != NULL; ddp = ndp) { in dt_decl_free() 102 ndp = ddp->dd_next; in dt_decl_free() 372 dt_decl_t *ndp = ddp; in dt_decl_array() local 380 while (ndp->dd_next != NULL && ndp->dd_next->dd_kind == CTF_K_ARRAY) in dt_decl_array() 381 ndp = ndp->dd_next; /* skip to bottom-most array declaration */ in dt_decl_array() 383 if (ndp != ddp) { in dt_decl_array() 389 ddp->dd_next = ndp->dd_next; in dt_decl_array() 390 ndp->dd_next = ddp; in dt_decl_array()
|
| /netbsd-src/tests/net/net/ |
| H A D | t_ipv6address.sh | 222 rump.ndp -n -a 225 rump.ndp -n -a 228 rump.ndp -n -a 382 rump.ndp -n ${src_if0_lladdr}%shmif0 386 rump.ndp -n ${src_if0_lladdr}
|
| /netbsd-src/sys/fs/nfs/client/ |
| H A D | nfs_clstate.c | 1589 struct nfscldeleg *dp, *ndp; in nfscl_expireclient() local 1597 ndp = TAILQ_NEXT(dp, nfsdl_list); in nfscl_expireclient() 1648 dp = ndp; in nfscl_expireclient() 1885 struct nfscldeleg *dp, *ndp, *tdp; in nfscl_recover() local 1993 ndp = dp; in nfscl_recover() 1999 op->nfso_mode, op, NULL, 0, &ndp, 1, delegtype, in nfscl_recover() 2003 if (ndp != NULL && ((ndp->nfsdl_flags & NFSCLDL_WRITE) in nfscl_recover() 2005 if ((ndp->nfsdl_flags & NFSCLDL_WRITE)) in nfscl_recover() 2016 dp->nfsdl_stateid = ndp->nfsdl_stateid; in nfscl_recover() 2017 dp->nfsdl_sizelimit = ndp->nfsdl_sizelimit; in nfscl_recover() [all …]
|
| H A D | nfs_clrpcops.c | 386 struct nfscldeleg *dp, *ndp = NULL; in nfsrpc_openrpc() local 456 MALLOC(ndp, struct nfscldeleg *, in nfsrpc_openrpc() 459 LIST_INIT(&ndp->nfsdl_owner); in nfsrpc_openrpc() 460 LIST_INIT(&ndp->nfsdl_lock); in nfsrpc_openrpc() 461 ndp->nfsdl_clp = op->nfso_own->nfsow_clp; in nfsrpc_openrpc() 462 ndp->nfsdl_fhlen = newfhlen; in nfsrpc_openrpc() 463 NFSBCOPY(newfhp, ndp->nfsdl_fh, newfhlen); in nfsrpc_openrpc() 464 newnfs_copyincred(cred, &ndp->nfsdl_cred); in nfsrpc_openrpc() 465 nfscl_lockinit(&ndp->nfsdl_rwlock); in nfsrpc_openrpc() 468 ndp->nfsdl_stateid.seqid = *tl++; in nfsrpc_openrpc() [all …]
|
| /netbsd-src/sys/compat/netbsd32/ |
| H A D | netbsd32_conv.h | 852 struct dirent *ndp, *nndp, *endp; in netbsd32_to_dirent12() local 856 ndp = (struct dirent *)(void *)buf; in netbsd32_to_dirent12() 864 for (; ndp < endp; ndp = nndp) { in netbsd32_to_dirent12() 865 nndp = _DIRENT_NEXT(ndp); in netbsd32_to_dirent12() 866 odp->d_fileno = (uint32_t)ndp->d_fileno; in netbsd32_to_dirent12() 867 if (ndp->d_namlen >= sizeof(odp->d_name)) in netbsd32_to_dirent12() 870 odp->d_namlen = (uint8_t)ndp->d_namlen; in netbsd32_to_dirent12() 871 odp->d_type = ndp->d_type; in netbsd32_to_dirent12() 872 (void)memcpy(odp->d_name, ndp->d_name, (size_t)odp->d_namlen); in netbsd32_to_dirent12()
|