/freebsd-10-stable/usr.sbin/ndp/ |
H A D | Makefile | 18 PROG= ndp 19 MAN= ndp.8 20 SRCS= ndp.c gmt2local.c
|
/freebsd-10-stable/sys/kern/ |
H A D | vfs_lookup.c | 135 namei(struct nameidata *ndp) argument 143 struct componentname *cnp = &ndp->ni_cnd; 147 ndp->ni_cnd.cn_cred = ndp->ni_cnd.cn_thread->td_ucred; 166 if (ndp->ni_segflg == UIO_SYSSPACE) 167 error = copystr(ndp->ni_dirp, cnp->cn_pnbuf, MAXPATHLEN, 168 &ndp->ni_pathlen); 170 error = copyinstr(ndp->ni_dirp, cnp->cn_pnbuf, MAXPATHLEN, 171 &ndp->ni_pathlen); 187 ndp 466 lookup(struct nameidata *ndp) argument 1054 NDINIT_ALL(struct nameidata *ndp, u_long op, u_long flags, enum uio_seg segflg, const char *namep, int dirfd, struct vnode *startdir, cap_rights_t *rightsp, struct thread *td) argument 1078 NDFREE(struct nameidata *ndp, const u_int flags) argument [all...] |
H A D | vfs_vnops.c | 160 vn_open(ndp, flagp, cmode, fp) 161 struct nameidata *ndp; 165 struct thread *td = ndp->ni_cnd.cn_thread; 167 return (vn_open_cred(ndp, flagp, cmode, 0, td->td_ucred, fp)); 179 vn_open_cred(struct nameidata *ndp, int *flagp, int cmode, u_int vn_open_flags, argument 184 struct thread *td = ndp->ni_cnd.cn_thread; 195 ndp->ni_cnd.cn_nameiop = CREATE; 200 ndp->ni_cnd.cn_flags = ISOPEN | LOCKPARENT | LOCKLEAF | NOCACHE; 202 ndp->ni_cnd.cn_flags |= FOLLOW; 204 ndp [all...] |
/freebsd-10-stable/contrib/netbsd-tests/net/ndp/ |
H A D | t_ndp.sh | 50 atf_set "descr" "Tests for commands of ndp(8)" 85 $DEBUG && rump.ndp -n -a 101 $DEBUG && rump.ndp -n -a 102 atf_check -s exit:0 -o ignore rump.ndp -n $IP6SRC 103 atf_check -s not-exit:0 -o ignore -e ignore rump.ndp -n $IP6DST 108 local timeout=$(env RUMP_SERVER=$SOCKSRC rump.ndp -n $IP6DST |grep $IP6DST|awk '{print $4;}') 128 $DEBUG && rump.ndp -n -a 129 atf_check -s exit:0 -o match:'permanent' rump.ndp -n $IP6SRC 131 atf_check -s exit:0 -o not-match:'permanent' rump.ndp -n $IP6DST 137 $DEBUG && rump.ndp [all...] |
H A D | t_ra.sh | 122 atf_check -s exit:0 -o match:'if=shmif0' rump.ndp -r 123 atf_check -s exit:0 -o match:'advertised' rump.ndp -p 124 atf_check -s exit:0 -o match:"${ll_srv}%shmif0 \(reachable\)" rump.ndp -p 125 atf_check -s exit:0 -o match:'linkmtu=1300' rump.ndp -n -i shmif0 128 rump.ndp -n -a 129 atf_check -s exit:0 -o match:$addr_prefix rump.ndp -n -a 139 echo ndp -n -a 140 rump.ndp -n -a 141 echo ndp -p 142 rump.ndp [all...] |
/freebsd-10-stable/etc/rc.d/ |
H A D | static_ndp | 52 ndp -s ${ndp_args} >/dev/null 2>&1 67 ndp -d ${ndp_args%%[ ]*} > /dev/null 2>&1
|
/freebsd-10-stable/sys/sys/ |
H A D | namei.h | 158 #define NDINIT(ndp, op, flags, segflg, namep, td) \ 159 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, NULL, 0, td) 160 #define NDINIT_AT(ndp, op, flags, segflg, namep, dirfd, td) \ 161 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, 0, td) 162 #define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rightsp, td) \ 163 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, rightsp, td) 164 #define NDINIT_ATVP(ndp, op, flags, segflg, namep, vp, td) \ 165 NDINIT_ALL(ndp, op, flags, segflg, namep, AT_FDCWD, vp, 0, td) 167 void NDINIT_ALL(struct nameidata *ndp, u_long op, u_long flags, 183 int namei(struct nameidata *ndp); [all...] |
/freebsd-10-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 338 nfsvno_namei(struct nfsrv_descript *nd, struct nameidata *ndp, argument 342 struct componentname *cnp = &ndp->ni_cnd; 352 ndp->ni_strictrelative = 0; 361 nfsvno_relpathbuf(ndp); 371 ndp->ni_segflg = UIO_SYSSPACE; 375 ndp->ni_loopcnt = 0; 382 for (i = 1; i < ndp->ni_pathlen; i++) 385 if (i == ndp->ni_pathlen) { 409 ndp->ni_startdir = dp; 410 ndp 539 nfsvno_setpathbuf(struct nameidata *ndp, char **bufpp, u_long **hashpp) argument 554 nfsvno_relpathbuf(struct nameidata *ndp) argument 774 nfsvno_createsub(struct nfsrv_descript *nd, struct nameidata *ndp, struct vnode **vpp, struct nfsvattr *nvap, int *exclusive_flagp, int32_t *cverf, NFSDEV_T rdev, struct thread *p, struct nfsexstuff *exp) argument 875 nfsvno_mknod(struct nameidata *ndp, struct nfsvattr *nvap, struct ucred *cred, struct thread *p) argument 934 nfsvno_mkdir(struct nameidata *ndp, struct nfsvattr *nvap, uid_t saved_uid, struct ucred *cred, struct thread *p, struct nfsexstuff *exp) argument 963 nfsvno_symlink(struct nameidata *ndp, struct nfsvattr *nvap, char *pathcp, int pathlen, int not_v2, uid_t saved_uid, struct ucred *cred, struct thread *p, struct nfsexstuff *exp) argument 1050 nfsvno_removesub(struct nameidata *ndp, int is_v4, struct ucred *cred, struct thread *p, struct nfsexstuff *exp) argument 1078 nfsvno_rmdirsub(struct nameidata *ndp, int is_v4, struct ucred *cred, struct thread *p, struct nfsexstuff *exp) argument 1229 nfsvno_link(struct nameidata *ndp, struct vnode *vp, struct ucred *cred, struct thread *p, struct nfsexstuff *exp) argument 1402 nfsvno_open(struct nfsrv_descript *nd, struct nameidata *ndp, nfsquad_t clientid, nfsv4stateid_t *stateidp, struct nfsstate *stp, int *exclusive_flagp, struct nfsvattr *nvap, int32_t *cverf, int create, NFSACL_T *aclp, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p, struct nfsexstuff *exp, struct vnode **vpp) argument [all...] |
/freebsd-10-stable/sys/nfsserver/ |
H A D | nfs_srvsubs.c | 582 nfs_namei(struct nameidata *ndp, struct nfsrv_descript *nfsd, argument 595 struct componentname *cnp = &ndp->ni_cnd; 603 * Copy the name from the mbuf list to ndp->ni_pnbuf 604 * and set the various ndp fields appropriately. 663 ndp->ni_cnd.cn_cred); 718 ndp->ni_pathlen = (tocp - cnp->cn_pnbuf) + 1; 719 ndp->ni_segflg = UIO_SYSSPACE; 722 ndp->ni_rootdir = rootvnode; 723 ndp->ni_loopcnt = 0; 738 ndp [all...] |
/freebsd-10-stable/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_decl.c | 74 ctf_decl_node_t *cdp, *ndp; local 79 cdp != NULL; cdp = ndp) { 80 ndp = ctf_list_next(cdp);
|
/freebsd-10-stable/sys/fs/nullfs/ |
H A D | null_vfsops.c | 82 struct nameidata nd, *ndp = &nd; local 122 NDINIT(ndp, LOOKUP, FOLLOW|LOCKLEAF, UIO_SYSSPACE, target, curthread); 123 error = namei(ndp); 134 NDFREE(ndp, NDF_ONLY_PNBUF); 139 lowerrootvp = ndp->ni_vp;
|
/freebsd-10-stable/sys/fs/unionfs/ |
H A D | union_vfsops.c | 92 struct nameidata nd, *ndp; local 105 ndp = &nd; 235 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, target, td); 236 if ((error = namei(ndp))) 239 NDFREE(ndp, NDF_ONLY_PNBUF); 243 upperrootvp = ndp->ni_vp;
|
/freebsd-10-stable/contrib/libpcap/ |
H A D | pcap-snit.c | 120 register struct nit_ifdrops *ndp; local 174 ndp = (struct nit_ifdrops *)cp; 175 p->md.stat.ps_drop = ndp->nh_drops; 176 cp += sizeof *ndp;
|
/freebsd-10-stable/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 133 struct nameidata nd, *ndp = &nd; local 143 NDINIT(ndp, LOOKUP, FOLLOW, UIO_SYSSPACE, fspec, td); 144 if ((err = namei(ndp)) != 0) 146 NDFREE(ndp, NDF_ONLY_PNBUF); 147 devvp = ndp->ni_vp;
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_decl.c | 99 dt_decl_t *ndp; local 101 for (; ddp != NULL; ddp = ndp) { 102 ndp = ddp->dd_next; 372 dt_decl_t *ndp = ddp; local 380 while (ndp->dd_next != NULL && ndp->dd_next->dd_kind == CTF_K_ARRAY) 381 ndp = ndp->dd_next; /* skip to bottom-most array declaration */ 383 if (ndp != ddp) { 389 ddp->dd_next = ndp [all...] |
/freebsd-10-stable/sys/fs/nfs/ |
H A D | nfs_commonport.c | 224 nfsrv_lookupfilename(struct nameidata *ndp, char *fname, NFSPROC_T *p) argument 228 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, fname, 230 error = namei(ndp); 232 NDFREE(ndp, NDF_ONLY_PNBUF);
|
/freebsd-10-stable/contrib/netbsd-tests/net/ |
H A D | net_common.sh | 231 atf_check -s exit:0 -o ignore rump.ndp -na 275 rump.ndp -na
|
/freebsd-10-stable/contrib/netbsd-tests/net/net/ |
H A D | t_ipv6address.sh | 222 rump.ndp -n -a 225 rump.ndp -n -a 228 rump.ndp -n -a 345 atf_set "require.progs" "rump_server rump.route rump.ndp" 366 # ndp 368 rump.ndp -n ${src_if0_lladdr}%shmif0 370 # ndp without an interface name (zone index) 372 rump.ndp -n ${src_if0_lladdr}
|
/freebsd-10-stable/sys/fs/nfsclient/ |
H A D | nfs_clstate.c | 1657 struct nfscldeleg *dp, *ndp; local 1665 ndp = TAILQ_NEXT(dp, nfsdl_list); 1716 dp = ndp; 1968 struct nfscldeleg *dp, *ndp, *tdp; local 2075 ndp = dp; 2081 op->nfso_mode, op, NULL, 0, &ndp, 1, delegtype, 2085 if (ndp != NULL && ((ndp->nfsdl_flags & NFSCLDL_WRITE) 2087 if ((ndp->nfsdl_flags & NFSCLDL_WRITE)) 2098 dp->nfsdl_stateid = ndp 2521 struct nfscldeleg *dp, *ndp; local 3216 struct nfscldeleg *dp, *ndp; local 4041 struct nfscldeleg *ndp; local [all...] |
H A D | nfs_clrpcops.c | 381 struct nfscldeleg *dp, *ndp = NULL; local 453 MALLOC(ndp, struct nfscldeleg *, 456 LIST_INIT(&ndp->nfsdl_owner); 457 LIST_INIT(&ndp->nfsdl_lock); 458 ndp->nfsdl_clp = op->nfso_own->nfsow_clp; 459 ndp->nfsdl_fhlen = newfhlen; 460 NFSBCOPY(newfhp, ndp->nfsdl_fh, newfhlen); 461 newnfs_copyincred(cred, &ndp->nfsdl_cred); 462 nfscl_lockinit(&ndp->nfsdl_rwlock); 465 ndp 3168 struct nameidata nami, *ndp = &nami; local [all...] |
/freebsd-10-stable/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 135 struct nameidata ndp; local 161 NDINIT(&ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspec, td); 162 if ((error = namei(&ndp))) 164 NDFREE(&ndp, NDF_ONLY_PNBUF); 165 devvp = ndp.ni_vp;
|
/freebsd-10-stable/sys/fs/udf/ |
H A D | udf_vfsops.c | 197 struct nameidata nd, *ndp = &nd; local 228 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspec, td); 229 if ((error = namei(ndp))) 231 NDFREE(ndp, NDF_ONLY_PNBUF); 232 devvp = ndp->ni_vp;
|
/freebsd-10-stable/sys/gnu/fs/reiserfs/ |
H A D | reiserfs_vfsops.c | 85 struct nameidata nd, *ndp = &nd; local 118 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspec, td); 119 if ((error = namei(ndp)) != 0) 121 NDFREE(ndp, NDF_ONLY_PNBUF); 122 devvp = ndp->ni_vp;
|
/freebsd-10-stable/sys/fs/ext2fs/ |
H A D | ext2_vfsops.c | 117 struct nameidata nd, *ndp = &nd; local 229 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspec, td); 230 if ((error = namei(ndp)) != 0) 232 NDFREE(ndp, NDF_ONLY_PNBUF); 233 devvp = ndp->ni_vp;
|
/freebsd-10-stable/sys/fs/msdosfs/ |
H A D | msdosfs_vfsops.c | 230 struct nameidata ndp; local 341 NDINIT(&ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, from, td); 342 error = namei(&ndp); 345 devvp = ndp.ni_vp; 346 NDFREE(&ndp, NDF_ONLY_PNBUF);
|