Home
last modified time | relevance | path

Searched refs:ndp (Results 1 – 25 of 52) sorted by relevance

123

/netbsd-src/tests/net/ndp/
H A Dt_ndp.sh89 $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 DMakefile6 TESTSDIR= ${TESTSBASE}/net/ndp
8 .for name in dad ndp
/netbsd-src/sys/kern/
H A Dvfs_lookup.c438 * 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 Dkern_hook.c389 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 Dnfs_nfsdport.c346 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 Dcompat_getdents.c53 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 Dnfs_subs.c1210 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 Dnfs_srvsubs.c119 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 Dnfs_bio.c87 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 Dnfsnode.h88 #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 Dnfs_srvsocket.c360 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 Dnamei.h184 #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 Dnamei.src176 #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 DMakefile7 RUMPPRG= ndp
8 SRCS= ndp.c
9 MAN= ndp.8
/netbsd-src/sbin/restore/
H A Ddirs.c442 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 Dunionfs_vfsops.c82 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 Dt_flags6.sh139 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 Dctf_decl.c77 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 Dctf-decl.c60 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 Dctf-decl.c60 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 Ddt_decl.c99 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 Dt_ipv6address.sh222 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 Dnfs_clstate.c1589 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 Dnfs_clrpcops.c386 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 Dnetbsd32_conv.h852 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()

123