| /src/usr.sbin/ndp/ |
| Makefile | 7 RUMPPRG= ndp 8 SRCS= ndp.c 9 MAN= ndp.8
|
| /src/lib/libc/compat/sys/ |
| compat_getdents.c | 53 struct dirent *ndp, *nndp, *endp; local 63 ndp = (struct dirent *)(void *)buf; 68 * is smaller than ndp, but it has to be done 71 for (; ndp < endp; ndp = nndp) { 72 nndp = _DIRENT_NEXT(ndp); 75 memcpy(&ino, &ndp->d_ino, sizeof(ino_t)); 77 if (ndp->d_namlen >= sizeof(odp->d_name)) 80 odp->d_namlen = (u_int8_t)ndp->d_namlen; 81 odp->d_type = ndp->d_type [all...] |
| /src/tests/net/ndp/ |
| Makefile | 6 TESTSDIR= ${TESTSBASE}/net/ndp 8 .for name in dad ndp
|
| t_ndp.sh | 48 atf_set "descr" "Tests for NDP cache expiration" 54 atf_set "descr" "Tests for commands of ndp(8)" 60 atf_set "descr" "Tests for behavior of overwriting NDP caches" 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 $macadd [all...] |
| /src/sys/kern/ |
| 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; member in struct:namei_state 466 unsigned root_referenced:1; /* true if ndp->ni_rootdir and 467 ndp->ni_erootdir were referenced */ 475 namei_init(struct namei_state *state, struct nameidata *ndp) 478 state->ndp = ndp; 479 state->cnp = &ndp->ni_cnd; 499 state->ndp->ni_pnbuf = state->ndp->ni_pathbuf->pb_path 530 struct nameidata *ndp = state->ndp; local 639 struct nameidata *ndp = state->ndp; local 674 struct nameidata *ndp = state->ndp; local 737 struct nameidata *ndp = state->ndp; local 844 struct nameidata *ndp = state->ndp; local 1080 struct nameidata *ndp = state->ndp; local 1272 struct nameidata *ndp = state->ndp; local 1501 struct nameidata *ndp = state->ndp; local 1906 struct nameidata *ndp = state->ndp; local 2026 struct nameidata *ndp = state->ndp; local [all...] |
| kern_hook.c | 494 struct powerhook *ndp; local 496 ndp = (struct powerhook *) 497 malloc(sizeof(*ndp), M_DEVBUF, M_NOWAIT); 498 if (ndp == NULL) 501 ndp->sfd_fn = fn; 502 ndp->sfd_arg = arg; 503 strlcpy(ndp->sfd_name, name, sizeof(ndp->sfd_name)); 504 TAILQ_INSERT_HEAD(&powerhook_list, ndp, sfd_list); 507 return (ndp); [all...] |
| /src/sys/fs/nfs/server/ |
| nfs_nfsdport.c | 346 nfsvno_namei(struct nfsrv_descript *nd, struct nameidata *ndp, 350 struct componentname *cnp = &ndp->ni_cnd; 360 ndp->ni_lcf = 0; 369 nfsvno_relpathbuf(ndp); 379 ndp->ni_segflg = UIO_SYSSPACE; 383 ndp->ni_loopcnt = 0; 390 for (i = 1; i < ndp->ni_pathlen; i++) 393 if (i == ndp->ni_pathlen) { 417 ndp->ni_startdir = dp; 418 ndp->ni_rootdir = rootvnode [all...] |
| /src/sys/nfs/ |
| nfs_srvsubs.c | 119 nfs_namei(struct nameidata *ndp, nfsrvfh_t *nsfh, uint32_t len, struct nfssvc_sock *slp, struct mbuf *nam, struct mbuf **mdp, char **dposp, struct vnode **retdirp, int *dirattr_retp, struct vattr *dirattrp, struct lwp *l, int kerbflag, int pubflag) 127 struct componentname *cnp = &ndp->ni_cnd; 130 ndp->ni_pathbuf = NULL; 138 * Copy the name from the mbuf list to ndp->ni_pathbuf 139 * and set the various ndp fields appropriately. 177 error = nfsrv_fhtovp(nsfh, false, &dp, ndp->ni_cnd.cn_cred, slp, 193 *dirattr_retp = VOP_GETATTR(dp, dirattrp, ndp->ni_cnd.cn_cred); 249 ndp->ni_atdir = NULL; 250 ndp->ni_pathbuf = pathbuf_assimilate(path); 251 if (ndp->ni_pathbuf == NULL) [all...] |
| nfs_subs.c | 1210 nfs_unlinkdircache(struct nfsnode *np, struct nfsdircache *ndp) 1214 KASSERT(ndp != &dzero); 1216 if (LIST_NEXT(ndp, dc_hash) == (void *)-1) 1219 TAILQ_REMOVE(&np->n_dirchain, ndp, dc_chain); 1220 LIST_REMOVE(ndp, dc_hash); 1221 LIST_NEXT(ndp, dc_hash) = (void *)-1; /* mark as unlinked */ 1223 nfs_putdircache_unlocked(np, ndp); 1227 nfs_putdircache(struct nfsnode *np, struct nfsdircache *ndp) 1231 if (ndp == &dzero) 1234 KASSERT(ndp->dc_refcnt > 0) 1263 struct nfsdircache *ndp = NULL; local 1329 struct nfsdircache *ndp = NULL; local 1434 struct nfsdircache *ndp = NULL; local [all...] |
| nfsnode.h | 88 #define NFSDC_BLKNO(ndp) ((daddr_t)(ndp)->dc_blkcookie) 198 #define NFS_EOFVALID(ndp) ((ndp)->n_flag & NEOFVALID)
|
| nfs_bio.c | 87 struct nfsdircache *ndp = NULL, *nndp = NULL; local 198 ndp = nfs_searchdircache(vp, uio->uio_offset, 200 if (!ndp) { 213 ndp = nfs_enterdircache(vp, uio->uio_offset, 218 ndp->dc_cookie == np->n_direofoffset) { 219 nfs_putdircache(np, ndp); 224 bp = nfs_getcacheblk(vp, NFSDC_BLKNO(ndp), NFS_DIRBLKSIZ, l); 229 bp->b_dcookie = ndp->dc_blkcookie; 237 nfs_putdircache(np, ndp); 261 ndp->dc_blkcookie == np->n_direofoffset)) [all...] |
| /src/tests/net/ |
| Makefile | 12 TESTS_SUBDIRS+= ndp npf route tcp
|
| /src/sys/sys/ |
| namei.h | 184 #define NDINIT(ndp, op, flags, pathbuf) { \ 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) { \ 196 (ndp)->ni_atdir = (dir); \
|
| 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); \
|
| /src/external/cddl/osnet/dist/common/ctf/ |
| ctf_decl.c | 77 ctf_decl_node_t *cdp, *ndp; local 82 cdp != NULL; cdp = ndp) { 83 ndp = ctf_list_next(cdp);
|
| /src/external/gpl3/binutils/dist/libctf/ |
| ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) 67 ndp = ctf_list_next (cdp);
|
| /src/external/gpl3/binutils.old/dist/libctf/ |
| ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) 67 ndp = ctf_list_next (cdp);
|
| /src/external/gpl3/gdb.old/dist/libctf/ |
| ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) 67 ndp = ctf_list_next (cdp);
|
| /src/external/gpl3/gdb/dist/libctf/ |
| ctf-decl.c | 60 ctf_decl_node_t *cdp, *ndp; local 65 for (cdp = ctf_list_next (&cd->cd_nodes[i]); cdp != NULL; cdp = ndp) 67 ndp = ctf_list_next (cdp);
|
| /src/sbin/restore/ |
| dirs.c | 442 dcvt(struct odirect *odp, struct direct *ndp) 445 memset(ndp, 0, sizeof(*ndp)); 447 ndp->d_ino = bswap16(odp->d_ino); 449 ndp->d_ino = odp->d_ino; 450 ndp->d_type = DT_UNKNOWN; 451 (void) strncpy(ndp->d_name, odp->d_name, ODIRSIZ); 452 ndp->d_namlen = strlen(ndp->d_name); 453 ndp->d_reclen = UFS_DIRSIZ(0, ndp, 0) [all...] |
| /src/sys/fs/unionfs/ |
| unionfs_vfsops.c | 82 struct nameidata nd, *ndp; local 106 ndp = &nd; 176 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, pb); 177 if ((error = namei(ndp))) { 184 upperrootvp = ndp->ni_vp; 186 vrele(ndp->ni_dvp); 187 ndp->ni_dvp = NULLVP;
|
| /src/sys/netinet/ |
| dccp_tfrc.h | 183 u_int8_t ndp; /* no data packets value */ member in struct:r_hist_entry
|
| /src/tests/net/route/ |
| 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
|
| /src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| 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->dd_next [all...] |
| /src/external/bsd/libpcap/dist/ |
| pcap-snit.c | 126 register struct nit_ifdrops *ndp; local 183 ndp = (struct nit_ifdrops *)cp; 184 psn->stat.ps_drop = ndp->nh_drops; 185 cp += sizeof *ndp;
|