/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | ncp.h | 35 struct ncp { struct 57 extern void ncp_Init(struct ncp *, struct bundle *); 58 extern void ncp_Destroy(struct ncp *); 59 extern int ncp_fsmStart(struct ncp *, struct bundle *); 60 extern void ncp_IfaceAddrAdded(struct ncp *, const struct iface_addr *); 61 extern void ncp_IfaceAddrDeleted(struct ncp *, const struct iface_addr *); 62 extern void ncp_SetLink(struct ncp *, struct link *); 63 extern void ncp_Enqueue(struct ncp *, int, unsigned, char *, int); 64 extern void ncp_DeleteQueues(struct ncp *); 65 extern size_t ncp_QueueLen(struct ncp *); [all...] |
H A D | ncp.c | 70 #include "ncp.h" 96 ncp_Init(struct ncp *ncp, struct bundle *bundle) argument 98 ncp->afq = AF_INET; 99 ncp->route = NULL; 101 ncp->cfg.urgent.tcp.port = (u_short *)malloc(NDEFTCPPORTS * sizeof(u_short)); 102 if (ncp->cfg.urgent.tcp.port == NULL) { 104 ncp->cfg.urgent.tcp.nports = ncp->cfg.urgent.tcp.maxports = 0; 106 ncp 127 ncp_Destroy(struct ncp *ncp) argument 147 ncp_fsmStart(struct ncp *ncp, struct bundle *bundle __unused ) argument 177 ncp_IfaceAddrAdded(struct ncp *ncp, const struct iface_addr *addr) argument 192 ncp_IfaceAddrDeleted(struct ncp *ncp, const struct iface_addr *addr) argument 199 ncp_SetLink(struct ncp *ncp, struct link *l) argument 212 ncp_Enqueue(struct ncp *ncp, int af, unsigned pri, char *ptr, int count) argument 265 ncp_QueueLen(struct ncp *ncp) argument 284 ncp_DeleteQueues(struct ncp *ncp) argument 313 ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) argument 444 struct ncp *ncp = &arg->bundle->ncp; local 496 ncp_LayersOpen(struct ncp *ncp) argument 509 ncp_LayersUnfinished(struct ncp *ncp) argument 527 ncp_Close(struct ncp *ncp) argument 541 ncp2initial(struct ncp *ncp) argument [all...] |
H A D | iface.h | 58 extern void iface_Clear(struct iface *, struct ncp *, int, int); 61 extern int iface_Add(struct iface *, struct ncp *, const struct ncprange *, 63 extern int iface_Delete(struct iface *, struct ncp *, const struct ncpaddr *);
|
H A D | ncpaddr.h | 59 struct ncp; 77 extern int ncpaddr_aton(struct ncpaddr *, struct ncp *, const char *); 106 extern int ncprange_aton(struct ncprange *, struct ncp *, const char *);
|
H A D | command.c | 94 #include "ncp.h" 538 oin = bundle->ncp.ipcp.throughput.OctetsIn; 539 oout = bundle->ncp.ipcp.throughput.OctetsOut; 540 pin = bundle->ncp.ipcp.throughput.PacketsIn; 541 pout = bundle->ncp.ipcp.throughput.PacketsOut; 543 oin += bundle->ncp.ipv6cp.throughput.OctetsIn; 544 oout += bundle->ncp.ipv6cp.throughput.OctetsOut; 545 pin += bundle->ncp.ipv6cp.throughput.PacketsIn; 546 pout += bundle->ncp.ipv6cp.throughput.PacketsOut; 552 nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp 1562 struct ncp *ncp = &arg->bundle->ncp; local [all...] |
H A D | vjcomp.c | 66 #include "ncp.h" 78 u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16; 84 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, 85 &bundle->ncp.ipcp.vj.slstat, 86 bundle->ncp.ipcp.peer_compproto & 0xff); 184 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type);
|
H A D | ipcp.c | 90 #include "ncp.h" 222 char *cp, *cp_nons, *ncp, ch; local 232 while ((ncp = strstr(cp, "nameserver")) != NULL) { 233 if (ncp != cp) { 234 memcpy(cp_nons, cp, ncp - cp); 235 cp_nons += ncp - cp; 237 if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) { 238 memcpy(cp_nons, ncp, 1375 struct ncp *ncp = &bundle->ncp; local [all...] |
H A D | bundle.c | 83 #include "ncp.h" 149 if (ncp_fsmStart(&bundle->ncp, bundle)) { 160 mp_Down(&bundle->ncp.mp); 219 ncp_DeleteQueues(&bundle->ncp); 254 mp_CheckAutoloadTimer(&bundle->ncp.mp); 285 mp_CheckAutoloadTimer(&bundle->ncp.mp); 287 if (ncp_LayersOpen(&fp->bundle->ncp) == 1) { 295 mp_CheckAutoloadTimer(&fp->bundle->ncp.mp); 319 if (ncp_LayersOpen(&fp->bundle->ncp) == 0) { 326 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 | 66 #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 | 122 struct ncp ncp; member in struct:bundle
|
H A D | iface.c | 81 #include "ncp.h" 472 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how) argument 510 ncp_IfaceAddrDeleted(ncp, iface->addr + n); 529 iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa, argument 556 ncp_IfaceAddrAdded(ncp, iface->addr + n); 562 ncp_IfaceAddrDeleted(ncp, iface->addr + n); 576 ncp_IfaceAddrAdded(ncp, iface->addr + n); 609 ncp_IfaceAddrAdded(ncp, ifac 615 iface_Delete(struct iface *iface, struct ncp *ncp, const struct ncpaddr *del) argument [all...] |
H A D | mp.c | 85 #include "ncp.h" 364 ncp_SetLink(&mp->bundle->ncp, &mp->link); 616 if (!bundle->ncp.mp.active) 625 mp_Assemble(&bundle->ncp.mp, bp, p); 668 struct mp *mp = &bundle->ncp.mp; 745 if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink)) 827 struct mp *mp = &arg->bundle->ncp.mp; 959 struct mp *mp = &arg->bundle->ncp.mp; 988 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) 989 ncprange_getip4addr(&arg->bundle->ncp [all...] |
H A D | route.c | 76 #include "ncp.h" 577 if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE) 583 if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE) 777 if (bundle->ncp.cfg.sendpipe > 0) { 778 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; 781 if (bundle->ncp.cfg.recvpipe > 0) { 782 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe; 896 if (bundle->ncp.cfg.sendpipe > 0) { 897 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; 901 if (bundle->ncp [all...] |
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 | auth.c | 84 #include "ncp.h" 217 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); 227 ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr); 254 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); 276 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE);
|
/freebsd-10.0-release/lib/libc/rpc/ |
H A D | getnetconfig.c | 112 struct netconfig *ncp; member in struct:netconfig_list 248 struct netconfig_vars *ncp = (struct netconfig_vars *)handlep; local 258 if (ncp == NULL || nc_file == NULL) { 265 switch (ncp->valid) { 275 if (ncp->flag == 0) { /* first time */ 276 ncp->flag = 1; 278 ncp->nc_configs = ni.head; 280 if (ncp->nc_configs != NULL) /* entry already exist */ 281 return(ncp->nc_configs->ncp); 455 struct netconfig *ncp = NULL; /* returned value */ local [all...] |
H A D | getnetpath.c | 56 struct netconfig *ncp; /* an nconf entry */ member in struct:netpath_chain 150 struct netconfig *ncp = NULL; /* temp. holds a netconfig session */ local 151 struct netpath_chain *chainp; /* holds chain of ncp's we alloc */ 165 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) { 168 } while ((ncp->nc_flag & NC_VISIBLE) == 0); 169 return (ncp); 179 if ((ncp = getnetconfigent(npp)) != NULL) { 182 chainp->ncp = ncp; 189 return (ncp); [all...] |
/freebsd-10.0-release/sys/kern/ |
H A D | vfs_cache.c | 220 cache_free(struct namecache *ncp) argument 224 if (ncp == NULL) 226 ts = ncp->nc_flag & NCF_TS; 227 if (ncp->nc_nlen <= CACHE_PATH_CUTOFF) { 229 uma_zfree(cache_zone_small_ts, ncp); 231 uma_zfree(cache_zone_small, ncp); 233 uma_zfree(cache_zone_large_ts, ncp); 235 uma_zfree(cache_zone_large, ncp); 239 nc_get_name(struct namecache *ncp) argument 243 if ((ncp 250 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) argument 329 struct namecache *ncp; local 360 struct namecache *ncp; local 479 struct namecache *ncp; local 713 struct namecache *ncp, *n2; local 964 struct namecache *cp, *ncp; local 984 struct namecache *ncp, *nnp; local 1204 struct namecache *ncp; local 1365 struct namecache *ncp; local 1387 struct namecache *ncp; local [all...] |
/freebsd-10.0-release/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-10.0-release/sbin/ccdconfig/ |
H A D | ccdconfig.c | 366 int ncp; local 371 ncp = 65536; 372 cp = malloc(ncp); 376 gctl_rw_param(grq, "output", ncp, cp);
|
/freebsd-10.0-release/contrib/less/ |
H A D | cmdbuf.c | 421 char *ncp; local 429 ncp = cp; 430 pr = cmd_step_right(&ncp, &width, NULL); 435 cp = ncp; 440 pr = cmd_step_right(&ncp, &width, NULL); 444 cp = ncp; 455 char *ncp; local 463 ncp = cp; 464 while (ncp > cmdbuf) 466 cmd_step_left(&ncp, [all...] |
/freebsd-10.0-release/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-10.0-release/lib/libstand/ |
H A D | bootp.c | 608 u_char *ncp; local 613 ncp = cp; 618 while (ncp < ep) { 623 tag = *ncp++; /* extract tag and size */ 624 size = *ncp++; 625 cp = ncp; /* current payload */ 626 ncp += size; /* point to the next option */
|
/freebsd-10.0-release/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;
|