| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | ncp.c | 127 ncp_Destroy(struct ncp *ncp) in ncp_Destroy() argument 147 ncp_fsmStart(struct ncp *ncp, in ncp_fsmStart() argument 199 ncp_SetLink(struct ncp *ncp, struct link *l) in ncp_SetLink() argument 265 ncp_QueueLen(struct ncp *ncp) in ncp_QueueLen() argument 284 ncp_DeleteQueues(struct ncp *ncp) in ncp_DeleteQueues() argument 340 ncp_PushPacket(struct ncp *ncp __unused, in ncp_PushPacket() 459 struct ncp *ncp = &arg->bundle->ncp; in ncp_Show() local 511 ncp_LayersOpen(struct ncp *ncp) in ncp_LayersOpen() argument 524 ncp_LayersUnfinished(struct ncp *ncp) in ncp_LayersUnfinished() argument 542 ncp_Close(struct ncp *ncp) in ncp_Close() argument [all …]
|
| H A D | ncp.h | 35 struct ncp { struct 59 extern void ncp_Destroy(struct ncp *); 76 extern int ncp_LayersOpen(struct ncp *); 78 extern void ncp_Close(struct ncp *); 79 extern void ncp2initial(struct ncp *); 85 #define ncp_AddUrgentTcpPort(ncp, p) \ argument 87 #define ncp_AddUrgentUdpPort(ncp, p) \ argument 93 #define ncp_ClearUrgentTcpPorts(ncp) \ argument 95 #define ncp_ClearUrgentUdpPorts(ncp) \ argument 97 #define ncp_ClearUrgentTOS(ncp) (ncp)->cfg.urgent.tos = 0 argument [all …]
|
| H A D | command.c | 741 ipcp_LoadDNS(&arg->bundle->ncp.ipcp); in ResolvCommand() 1562 struct ncp *ncp = &arg->bundle->ncp; in SetInterfaceAddr() local 1570 memset(&ncp->ipcp.cfg.my_range, '\0', sizeof ncp->ipcp.cfg.my_range); in SetInterfaceAddr() 1571 memset(&ncp->ipcp.cfg.peer_range, '\0', sizeof ncp->ipcp.cfg.peer_range); in SetInterfaceAddr() 1572 ncp->ipcp.cfg.HaveTriggerAddress = 0; in SetInterfaceAddr() 1574 iplist_reset(&ncp->ipcp.cfg.peer_list); in SetInterfaceAddr() 1577 if (!ncprange_aton(&ncp->ipcp.cfg.my_range, ncp, arg->argv[arg->argn])) in SetInterfaceAddr() 1582 ncp->ipcp.ifmask = ncp->ipcp.cfg.netmask = in SetInterfaceAddr() 1586 ncp->ipcp.cfg.HaveTriggerAddress = 1; in SetInterfaceAddr() 2541 host = arg->bundle->ncp.ipcp.my_ip; in AddCommand() [all …]
|
| H A D | ipcp.c | 233 if (ncp != cp) { in ipcp_LoadDNS() 235 cp_nons += ncp - cp; in ipcp_LoadDNS() 237 if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) { in ipcp_LoadDNS() 247 for (ncp = cp; isip(*ncp); ncp++) /* Jump over IP */ in ipcp_LoadDNS() 250 ch = *ncp; in ipcp_LoadDNS() 251 *ncp = '\0'; in ipcp_LoadDNS() 254 *ncp = ch; in ipcp_LoadDNS() 257 cp = ncp + strlen(ncp); in ipcp_LoadDNS() 695 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) { in ipcp_SetIPaddress() 1375 struct ncp *ncp = &bundle->ncp; in ipcp_UseHisaddr() local [all …]
|
| H A D | bundle.c | 160 mp_Down(&bundle->ncp.mp); in bundle_NewPhase() 344 if (bundle->ncp.mp.active) { in bundle_LayerDown() 356 ncp2initial(&bundle->ncp); in bundle_LayerDown() 357 mp_Down(&bundle->ncp.mp); in bundle_LayerDown() 381 mp_Down(&bundle->ncp.mp); in bundle_LayerFinish() 429 ncp_Close(&bundle->ncp); in bundle_Close() 432 mp_Down(&bundle->ncp.mp); in bundle_Close() 916 mp_Down(&bundle->ncp.mp); in bundle_Destroy() 930 ncp_Destroy(&bundle->ncp); in bundle_Destroy() 967 ncp2initial(&bundle->ncp); in bundle_LinkClosed() [all …]
|
| H A D | vjcomp.c | 78 u_short cproto = bundle->ncp.ipcp.peer_compproto >> 16; in vj_LayerPush() 84 type = sl_compress_tcp(bp, pip, &bundle->ncp.ipcp.vj.cslc, in vj_LayerPush() 85 &bundle->ncp.ipcp.vj.slstat, in vj_LayerPush() 86 bundle->ncp.ipcp.peer_compproto & 0xff); in vj_LayerPush() 184 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type); in vj_LayerPull()
|
| H A D | ncpaddr.c | 409 ncpaddr_aton(struct ncpaddr *addr, struct ncp *ncp, const char *data) in ncpaddr_aton() argument 413 if (!ncprange_aton(&range, ncp, data)) in ncpaddr_aton() 903 ncprange_aton(struct ncprange *range, struct ncp *ncp, const char *data) in ncprange_aton() argument 912 if (ncp && strncasecmp(data, "HISADDR", len) == 0) { in ncprange_aton() 914 range->ncprange_ip4addr = ncp->ipcp.peer_ip; in ncprange_aton() 925 } else if (ncp && strncasecmp(data, "MYADDR", len) == 0) { in ncprange_aton() 927 range->ncprange_ip4addr = ncp->ipcp.my_ip; in ncprange_aton() 938 } else if (ncp && strncasecmp(data, "DNS0", len) == 0) { in ncprange_aton() 940 range->ncprange_ip4addr = ncp->ipcp.ns.dns[0]; in ncprange_aton() 944 } else if (ncp && strncasecmp(data, "DNS1", len) == 0) { in ncprange_aton() [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 | slcompress.c | 593 arg->bundle->ncp.ipcp.vj.slstat.sls_compressed, in sl_Show() 594 arg->bundle->ncp.ipcp.vj.slstat.sls_packets); in sl_Show() 596 arg->bundle->ncp.ipcp.vj.slstat.sls_misses, in sl_Show() 597 arg->bundle->ncp.ipcp.vj.slstat.sls_searches); in sl_Show() 599 arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin, in sl_Show() 600 arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin); in sl_Show() 602 arg->bundle->ncp.ipcp.vj.slstat.sls_errorin, in sl_Show() 603 arg->bundle->ncp.ipcp.vj.slstat.sls_tossed); in sl_Show()
|
| H A D | iface.c | 474 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how) in iface_Clear() argument 512 ncp_IfaceAddrDeleted(ncp, iface->addr + n); in iface_Clear() 531 iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa, in iface_Add() argument 558 ncp_IfaceAddrAdded(ncp, iface->addr + n); in iface_Add() 564 ncp_IfaceAddrDeleted(ncp, iface->addr + n); in iface_Add() 578 ncp_IfaceAddrAdded(ncp, iface->addr + n); in iface_Add() 611 ncp_IfaceAddrAdded(ncp, iface->addr + n); in iface_Add() 617 iface_Delete(struct iface *iface, struct ncp *ncp, const struct ncpaddr *del) in iface_Delete() argument 632 ncp_IfaceAddrDeleted(ncp, iface->addr + n); in iface_Delete()
|
| H A D | mp.c | 364 ncp_SetLink(&mp->bundle->ncp, &mp->link); in mp_Up() 616 if (!bundle->ncp.mp.active) in mp_Input() 625 mp_Assemble(&bundle->ncp.mp, bp, p); in mp_Input() 668 struct mp *mp = &bundle->ncp.mp; in mp_FillPhysicalQueues() 745 if (!ncp_PushPacket(&bundle->ncp, &mp->out.af, bestlink)) in mp_FillPhysicalQueues() 827 struct mp *mp = &arg->bundle->ncp.mp; in mp_ShowStatus() 959 struct mp *mp = &arg->bundle->ncp.mp; in mp_SetEnddisc() 988 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc() 991 addr = arg->bundle->ncp.ipcp.my_ip; in mp_SetEnddisc() 998 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc() [all …]
|
| H A D | route.c | 562 if (bundle->ncp.ipcp.ns.dns[0].s_addr == INADDR_NONE) in route_Change() 568 if (bundle->ncp.ipcp.ns.dns[1].s_addr == INADDR_NONE) in route_Change() 762 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Set() 763 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; in rt_Set() 766 if (bundle->ncp.cfg.recvpipe > 0) { in rt_Set() 767 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe; in rt_Set() 882 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Update() 883 rtmes.m_rtm.rtm_rmx.rmx_sendpipe = bundle->ncp.cfg.sendpipe; in rt_Update() 887 if (bundle->ncp.cfg.recvpipe > 0) { in rt_Update() 888 rtmes.m_rtm.rtm_rmx.rmx_recvpipe = bundle->ncp.cfg.recvpipe; in rt_Update()
|
| H A D | ip.c | 651 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck() 654 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck() 815 if (tos == IPTOS_LOWDELAY && bundle->ncp.cfg.urgent.tos) in PacketCheck() 818 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport), in PacketCheck() 821 else if (!frag && ncp_IsUrgentTcpLen(&bundle->ncp, datalen)) in PacketCheck() 964 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) { in ipv4_Input() 973 ipcp_AddInOctets(&bundle->ncp.ipcp, nb); in ipv4_Input() 984 if (bundle->ncp.ipv6cp.fsm.state != ST_OPENED) { in ipv6_Input() 993 ipv6cp_AddInOctets(&bundle->ncp.ipv6cp, nb); in ipv6_Input()
|
| H A D | ipv6cp.c | 231 if (!iface_Add(bundle->iface, &bundle->ncp, &myrange, &ipv6cp->hisaddr, in ipcp_SetIPv6address() 236 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6, in ipcp_SetIPv6address() 243 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) { in ipcp_SetIPv6address() 253 route_Change(bundle, bundle->ncp.route, &ipv6cp->myaddr, &ipv6cp->hisaddr); in ipcp_SetIPv6address() 326 struct ipv6cp *ipv6cp = &arg->bundle->ncp.ipv6cp; in ipv6cp_Show() 356 fsm_Input(&bundle->ncp.ipv6cp.fsm, bp); in ipv6cp_Input()
|
| /freebsd-14.2/lib/libc/rpc/ |
| H A D | getnetconfig.c | 271 ncp->flag = 1; in getnetconfig() 276 return(ncp->nc_configs->ncp); in getnetconfig() 279 ncp->nc_configs = ncp->nc_configs->next; in getnetconfig() 280 return(ncp->nc_configs->ncp); in getnetconfig() 419 free(q->ncp); in endnetconfig() 515 free(ncp); in getnetconfigent() 516 ncp = NULL; in getnetconfigent() 525 return(ncp); in getnetconfigent() 633 ncp->nc_nlookups + 1, sizeof(*ncp->nc_lookups))) == NULL) { in parse_ncp() 640 ncp->nc_lookups[ncp->nc_nlookups++] = cp; in parse_ncp() [all …]
|
| H A D | getnetpath.c | 53 struct netconfig *ncp; /* an nconf entry */ member 146 struct netconfig *ncp = NULL; /* temp. holds a netconfig session */ in getnetpath() local 161 if ((ncp = getnetconfig(np_sessionp->nc_handlep)) == NULL) { in getnetpath() 164 } while ((ncp->nc_flag & NC_VISIBLE) == 0); in getnetpath() 165 return (ncp); in getnetpath() 175 if ((ncp = getnetconfigent(npp)) != NULL) { in getnetpath() 178 chainp->ncp = ncp; in getnetpath() 185 return (ncp); in getnetpath() 213 freenetconfigent(chainp->ncp); in endnetpath()
|
| /freebsd-14.2/sys/kern/ |
| H A D | vfs_cache.c | 834 hash = cache_get_hash(ncp->nc_name, ncp->nc_nlen, ncp->nc_dvp); in NCP2BUCKET() 843 hash = cache_get_hash(ncp->nc_name, ncp->nc_nlen, ncp->nc_dvp); in NCP2BUCKETLOCK() 1429 lncp = ncp; in cache_neg_evict_select_entry() 1432 ncp = TAILQ_NEXT(ncp, nc_dst); in cache_neg_evict_select_entry() 1493 ncp = NULL; in cache_neg_evict() 1607 MPASS(vp == ncp->nc_dvp || vp == ncp->nc_vp); in cache_zap_locked_vnode_kl2() 2384 if (ncp != NULL && (ncp->nc_flag & NCF_ISDOTDOT)) { in cache_enter_dotdot_prep() 2825 hash = cache_get_hash(ncp->nc_name, ncp->nc_nlen, in cache_changesize() 3024 __func__, vp, ncp->nc_vp, ncp, ncp->nc_name, ncp->nc_dvp); in cache_validate() 3327 memcpy(buf + *buflen, ncp->nc_name, ncp->nc_nlen); in vn_vptocnp() [all …]
|
| /freebsd-14.2/cddl/usr.sbin/dwatch/libexec/ |
| H A D | vop_readdir | 24 this->ncp = this->vp != NULL ? 60 this->ncp = 0; 65 $PROBE /this->ncp/ /* probe ID $(( $ID + 2 )) (depth 1) */ 68 this->dvp = this->ncp->nc_dvp != NULL ? 69 this->ncp->nc_dvp->v_cache_dst.tqh_first : 0;
|
| H A D | vop_create | 24 this->ncp = this->vp != NULL ? 63 this->ncp = 0; 68 $PROBE /this->ncp/ /* probe ID $(( $ID + 2 )) (depth 1) */ 71 this->dvp = this->ncp->nc_dvp != NULL ? 72 this->ncp->nc_dvp->v_cache_dst.tqh_first : 0;
|
| H A D | vop_symlink | 24 this->ncp = this->vp != NULL ? 64 this->ncp = 0; 69 $PROBE /this->ncp/ /* probe ID $(( $ID + 2 )) (depth 1) */ 72 this->dvp = this->ncp->nc_dvp != NULL ? 73 this->ncp->nc_dvp->v_cache_dst.tqh_first : 0;
|
| /freebsd-14.2/contrib/less/ |
| H A D | cmdbuf.c | 379 char *ncp; in cmd_right() local 387 ncp = cp; in cmd_right() 388 pr = cmd_step_right(&ncp, &width, NULL); in cmd_right() 393 cp = ncp; in cmd_right() 398 pr = cmd_step_right(&ncp, &width, NULL); in cmd_right() 402 cp = ncp; in cmd_right() 412 char *ncp; in cmd_left() local 421 ncp = cp; in cmd_left() 422 while (ncp > cmdbuf) in cmd_left() 424 cmd_step_left(&ncp, &width, &bswidth); in cmd_left() [all …]
|
| /freebsd-14.2/stand/libsa/ |
| H A D | bootp.c | 638 u_char *ncp; in setenv_() local 643 ncp = cp; in setenv_() 648 while (ncp < ep) { in setenv_() 653 tag = *ncp++; /* extract tag and size */ in setenv_() 654 size = *ncp++; in setenv_() 655 cp = ncp; /* current payload */ in setenv_() 656 ncp += size; /* point to the next option */ in setenv_()
|
| /freebsd-14.2/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 367 int ncp; in dumpout() local 372 ncp = 65536; in dumpout() 373 cp = malloc(ncp); in dumpout() 378 gctl_add_param(grq, "output", ncp, cp, in dumpout()
|
| /freebsd-14.2/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; in send_status() local 1301 ncp = statusbuf; in send_status() 1355 writenet(statusbuf, ncp - statusbuf); in send_status() 1359 {printsub('>', statusbuf, ncp - statusbuf); netflush();}); in send_status()
|