/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ncp.h | 28 * $FreeBSD: stable/11/usr.sbin/ppp/ncp.h 330449 2018-03-05 07:26:05Z eadler $ 37 struct ncp { struct 59 extern void ncp_Init(struct ncp *, struct bundle *); 60 extern void ncp_Destroy(struct ncp *); 61 extern int ncp_fsmStart(struct ncp *, struct bundle *); 62 extern void ncp_IfaceAddrAdded(struct ncp *, const struct iface_addr *); 63 extern void ncp_IfaceAddrDeleted(struct ncp *, const struct iface_addr *); 64 extern void ncp_SetLink(struct ncp *, struct link *); 65 extern void ncp_Enqueue(struct ncp *, int, unsigned, char *, int); 66 extern void ncp_DeleteQueues(struct ncp *); [all...] |
H A D | ncp.c | 28 * $FreeBSD: stable/11/usr.sbin/ppp/ncp.c 330449 2018-03-05 07:26:05Z eadler $ 72 #include "ncp.h" 98 ncp_Init(struct ncp *ncp, struct bundle *bundle) argument 100 ncp->afq = AF_INET; 101 ncp->route = NULL; 103 ncp->cfg.urgent.tcp.port = (u_short *)malloc(NDEFTCPPORTS * sizeof(u_short)); 104 if (ncp->cfg.urgent.tcp.port == NULL) { 106 ncp->cfg.urgent.tcp.nports = ncp 129 ncp_Destroy(struct ncp *ncp) argument 149 ncp_fsmStart(struct ncp *ncp, struct bundle *bundle __unused ) argument 179 ncp_IfaceAddrAdded(struct ncp *ncp, const struct iface_addr *addr) argument 194 ncp_IfaceAddrDeleted(struct ncp *ncp, const struct iface_addr *addr) argument 201 ncp_SetLink(struct ncp *ncp, struct link *l) argument 214 ncp_Enqueue(struct ncp *ncp, int af, unsigned pri, char *ptr, int count) argument 267 ncp_QueueLen(struct ncp *ncp) argument 286 ncp_DeleteQueues(struct ncp *ncp) argument 315 ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) argument 446 struct ncp *ncp = &arg->bundle->ncp; local 498 ncp_LayersOpen(struct ncp *ncp) argument 511 ncp_LayersUnfinished(struct ncp *ncp) argument 529 ncp_Close(struct ncp *ncp) argument 543 ncp2initial(struct ncp *ncp) argument [all...] |
H A D | iface.h | 60 extern void iface_Clear(struct iface *, struct ncp *, int, int); 63 extern int iface_Add(struct iface *, struct ncp *, const struct ncprange *, 65 extern int iface_Delete(struct iface *, struct ncp *, const struct ncpaddr *);
|
H A D | ncpaddr.h | 61 struct ncp; 79 extern int ncpaddr_aton(struct ncpaddr *, struct ncp *, const char *); 108 extern int ncprange_aton(struct ncprange *, struct ncp *, const char *);
|
H A D | command.c | 96 #include "ncp.h" 540 oin = bundle->ncp.ipcp.throughput.OctetsIn; 541 oout = bundle->ncp.ipcp.throughput.OctetsOut; 542 pin = bundle->ncp.ipcp.throughput.PacketsIn; 543 pout = bundle->ncp.ipcp.throughput.PacketsOut; 545 oin += bundle->ncp.ipv6cp.throughput.OctetsIn; 546 oout += bundle->ncp.ipv6cp.throughput.OctetsOut; 547 pin += bundle->ncp.ipv6cp.throughput.PacketsIn; 548 pout += bundle->ncp.ipv6cp.throughput.PacketsOut; 554 nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp 1564 struct ncp *ncp = &arg->bundle->ncp; local [all...] |
H A D | vjcomp.c | 68 #include "ncp.h" 80 u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16; 86 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, 87 &bundle->ncp.ipcp.vj.slstat, 88 bundle->ncp.ipcp.peer_compproto & 0xff); 186 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type);
|
H A D | ipcp.c | 92 #include "ncp.h" 224 char *cp, *cp_nons, *ncp, ch; local 234 while ((ncp = strstr(cp, "nameserver")) != NULL) { 235 if (ncp != cp) { 236 memcpy(cp_nons, cp, ncp - cp); 237 cp_nons += ncp - cp; 239 if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) { 240 memcpy(cp_nons, ncp, 1377 struct ncp *ncp = &bundle->ncp; local [all...] |
H A D | bundle.c | 85 #include "ncp.h" 151 if (ncp_fsmStart(&bundle->ncp, bundle)) { 162 mp_Down(&bundle->ncp.mp); 221 ncp_DeleteQueues(&bundle->ncp); 256 mp_CheckAutoloadTimer(&bundle->ncp.mp); 287 mp_CheckAutoloadTimer(&bundle->ncp.mp); 289 if (ncp_LayersOpen(&fp->bundle->ncp) == 1) { 297 mp_CheckAutoloadTimer(&fp->bundle->ncp.mp); 321 if (ncp_LayersOpen(&fp->bundle->ncp) == 0) { 328 mp_StopAutoloadTimer(&bundle->ncp [all...] |
H A D | slcompress.c | 80 #include "ncp.h" 593 arg->bundle->ncp.ipcp.vj.slstat.sls_compressed, 594 arg->bundle->ncp.ipcp.vj.slstat.sls_packets); 596 arg->bundle->ncp.ipcp.vj.slstat.sls_misses, 597 arg->bundle->ncp.ipcp.vj.slstat.sls_searches); 599 arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin, 600 arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin); 602 arg->bundle->ncp.ipcp.vj.slstat.sls_errorin, 603 arg->bundle->ncp.ipcp.vj.slstat.sls_tossed);
|
H A D | ncpaddr.c | 68 #include "ncp.h" 411 ncpaddr_aton(struct ncpaddr *addr, struct ncp *ncp, const char *data) argument 415 if (!ncprange_aton(&range, ncp, data)) 905 ncprange_aton(struct ncprange *range, struct ncp *ncp, const char *data) argument 914 if (ncp && strncasecmp(data, "HISADDR", len) == 0) { 916 range->ncprange_ip4addr = ncp->ipcp.peer_ip; 921 } else if (ncp && strncasecmp(data, "HISADDR6", len) == 0) { 923 range->ncprange_ip6addr = ncp [all...] |
H A D | bundle.h | 124 struct ncp ncp; member in struct:bundle
|
H A D | Makefile | 10 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \
|
H A D | iface.c | 80 #include "ncp.h" 475 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how) argument 513 ncp_IfaceAddrDeleted(ncp, iface->addr + n); 532 iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa, argument 559 ncp_IfaceAddrAdded(ncp, iface->addr + n); 565 ncp_IfaceAddrDeleted(ncp, iface->addr + n); 579 ncp_IfaceAddrAdded(ncp, iface->addr + n); 612 ncp_IfaceAddrAdded(ncp, ifac 618 iface_Delete(struct iface *iface, struct ncp *ncp, const struct ncpaddr *del) argument [all...] |
H A D | mp.c | 87 #include "ncp.h" 366 ncp_SetLink(&mp->bundle->ncp, &mp->link); 618 if (!bundle->ncp.mp.active) 627 mp_Assemble(&bundle->ncp.mp, bp, p); 670 struct mp *mp = &bundle->ncp.mp; 747 if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink)) 829 struct mp *mp = &arg->bundle->ncp.mp; 961 struct mp *mp = &arg->bundle->ncp.mp; 990 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) 991 ncprange_getip4addr(&arg->bundle->ncp [all...] |
H A D | route.c | 78 #include "ncp.h" 564 if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE) 570 if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE) 764 if (bundle->ncp.cfg.sendpipe > 0) { 765 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; 768 if (bundle->ncp.cfg.recvpipe > 0) { 769 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe; 884 if (bundle->ncp.cfg.sendpipe > 0) { 885 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; 889 if (bundle->ncp [all...] |
H A D | auth.c | 86 #include "ncp.h" 219 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); 229 ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr); 256 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); 278 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
|
/freebsd-11-stable/lib/libc/rpc/ |
H A D | getnetconfig.c | 110 struct netconfig *ncp; member in struct:netconfig_list 244 struct netconfig_vars *ncp = (struct netconfig_vars *)handlep; local 254 if (ncp == NULL || nc_file == NULL) { 261 switch (ncp->valid) { 271 if (ncp->flag == 0) { /* first time */ 272 ncp->flag = 1; 274 ncp->nc_configs = ni.head; 276 if (ncp->nc_configs != NULL) /* entry already exist */ 277 return(ncp->nc_configs->ncp); 449 struct netconfig *ncp = NULL; /* returned value */ local 561 parse_ncp(char *stringp, struct netconfig *ncp) argument 692 dup_ncp(struct netconfig *ncp) argument [all...] |
H A D | getnetpath.c | 54 struct netconfig *ncp; /* an nconf entry */ member in struct:netpath_chain 147 struct netconfig *ncp = NULL; /* temp. holds a netconfig session */ local 148 struct netpath_chain *chainp; /* holds chain of ncp's we alloc */ 162 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) { 165 } while ((ncp->nc_flag & NC_VISIBLE) == 0); 166 return (ncp); 176 if ((ncp = getnetconfigent(npp)) != NULL) { 179 chainp->ncp = ncp; 186 return (ncp); [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | vfs_cache.c | 235 NCP2NEGLIST(struct namecache *ncp) argument 238 return (&neglists[(((uintptr_t)(ncp) >> 8) & ncneghash)]); 275 struct namecache *ncp; local 282 ncp = &ncp_ts->nc_nc; 285 ncp = uma_zalloc(cache_zone_small, M_WAITOK); 287 ncp = uma_zalloc(cache_zone_large, M_WAITOK); 289 return (ncp); 293 cache_free(struct namecache *ncp) argument 297 if (ncp == NULL) 299 if ((ncp 316 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) argument 427 NCP2BUCKETLOCK(struct namecache *ncp) argument 437 cache_assert_bucket_locked(struct namecache *ncp, int mode) argument 562 struct namecache *ncp; local 596 struct namecache *ncp; local 653 cache_negative_hit(struct namecache *ncp) argument 689 cache_negative_insert(struct namecache *ncp, bool neg_locked) argument 708 cache_negative_remove(struct namecache *ncp, bool neg_locked) argument 749 struct namecache *ncp; local 772 struct namecache *ncp, *ncp2; local 836 cache_zap_locked(struct namecache *ncp, bool neg_locked) argument 875 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) argument 890 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, struct mtx **vlpp) argument 948 cache_zap_locked_vnode(struct namecache *ncp, struct vnode *vp) argument 987 cache_zap_wlocked_bucket(struct namecache *ncp, struct rwlock *blp) argument 1009 cache_zap_rlocked_bucket(struct namecache *ncp, struct rwlock *blp) argument 1033 cache_zap_wlocked_bucket_kl(struct namecache *ncp, struct rwlock *blp, struct mtx **vlpp1, struct mtx **vlpp2) argument 1128 struct namecache *ncp; local 1248 struct namecache *ncp; local 1534 struct namecache *ncp; local 1575 struct namecache *ncp; local 1622 struct namecache *ncp, *n2, *ndd; local 1919 struct namecache *ncp; local 1949 LIST_INSERT_HEAD(NCHHASH(hash), ncp, nc_hash); local 1964 struct namecache *ncp, *nnp; local 2013 struct namecache *ncp, *nnp; local 2045 struct namecache *ncp, *nnp; local 2252 struct namecache *ncp; local 2419 struct namecache *ncp; local 2443 struct namecache *ncp; local [all...] |
/freebsd-11-stable/sys/fs/msdosfs/ |
H A D | fat.h | 100 int extendfile(struct denode *dep, u_long count, struct buf **bpp, u_long *ncp, int flags);
|
/freebsd-11-stable/sbin/ccdconfig/ |
H A D | ccdconfig.c | 368 int ncp; local 373 ncp = 65536; 374 cp = malloc(ncp); 378 gctl_rw_param(grq, "output", ncp, cp);
|
/freebsd-11-stable/contrib/less/ |
H A D | cmdbuf.c | 403 char *ncp; local 411 ncp = cp; 412 pr = cmd_step_right(&ncp, &width, NULL); 417 cp = ncp; 422 pr = cmd_step_right(&ncp, &width, NULL); 426 cp = ncp; 437 char *ncp; local 446 ncp = cp; 447 while (ncp > cmdbuf) 449 cmd_step_left(&ncp, [all...] |
/freebsd-11-stable/crypto/heimdal/appl/telnet/telnetd/ |
H A D | state.c | 1291 #define ADD(c) *ncp++ = c 1292 #define ADD_DATA(c) { *ncp++ = c; if (c == SE || c == IAC) *ncp++ = c; } 1298 unsigned char *ncp; local 1301 ncp = statusbuf; 1355 writenet(statusbuf, ncp - statusbuf); 1359 {printsub('>', statusbuf, ncp - statusbuf); netflush();});
|
/freebsd-11-stable/stand/libsa/ |
H A D | bootp.c | 643 u_char *ncp; local 648 ncp = cp; 653 while (ncp < ep) { 658 tag = *ncp++; /* extract tag and size */ 659 size = *ncp++; 660 cp = ncp; /* current payload */ 661 ncp += size; /* point to the next option */
|
/freebsd-11-stable/contrib/binutils/binutils/ |
H A D | rclex.c | 189 rc_uint_type ncp; local 192 ncp = (rc_uint_type) strtol (fn + 2, NULL, 16); 194 ncp = (rc_uint_type) strtol (fn, NULL, 10); 195 if (ncp == CP_UTF16 || ! unicode_is_valid_codepage (ncp)) 197 wind_current_codepage = ncp;
|