Home
last modified time | relevance | path

Searched refs:ipcp (Results 1 – 22 of 22) sorted by relevance

/freebsd/usr.sbin/ppp/
H A Dipcp.c163 ipcp_AddInOctets(struct ipcp *ipcp, int n) in ipcp_AddInOctets() argument
165 throughput_addin(&ipcp->throughput, n); in ipcp_AddInOctets()
169 ipcp_AddOutOctets(struct ipcp *ipcp, int n) in ipcp_AddOutOctets() argument
171 throughput_addout(&ipcp->throughput, n); in ipcp_AddOutOctets()
175 ipcp_LoadDNS(struct ipcp *ipcp) in ipcp_LoadDNS() argument
179 ipcp->ns.dns[0].s_addr = ipcp->ns.dns[1].s_addr = INADDR_NONE; in ipcp_LoadDNS()
181 if (ipcp->ns.resolv != NULL) { in ipcp_LoadDNS()
182 free(ipcp->ns.resolv); in ipcp_LoadDNS()
183 ipcp->ns.resolv = NULL; in ipcp_LoadDNS()
185 if (ipcp->ns.resolv_nons != NULL) { in ipcp_LoadDNS()
[all …]
H A Dipcp.h45 struct ipcp { struct
103 #define fsm2ipcp(fp) (fp->proto == PROTO_IPCP ? (struct ipcp *)fp : NULL) argument
104 #define IPCP_QUEUES(ipcp) (sizeof ipcp->Queue / sizeof ipcp->Queue[0]) argument
111 extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
113 extern void ipcp_Destroy(struct ipcp *);
114 extern void ipcp_Setup(struct ipcp *, u_int32_t);
115 extern void ipcp_SetLink(struct ipcp *, struct link *);
119 extern void ipcp_AddInOctets(struct ipcp *, int);
120 extern void ipcp_AddOutOctets(struct ipcp *, int);
124 extern void ipcp_IfaceAddrAdded(struct ipcp *, const struct iface_addr *);
[all …]
H A Dvjcomp.c78 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()
115 VjUncompressTcp(struct ipcp *ipcp, struct mbuf *bp, u_char type) in VjUncompressTcp() argument
129 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
130 (ipcp->my_compproto >> 8) & 255); in VjUncompressTcp()
149 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
150 (ipcp->my_compproto >> 8) & 255); in VjUncompressTcp()
184 return VjUncompressTcp(&bundle->ncp.ipcp, bp, type); in vj_LayerPull()
H A Dncp.c118 ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link, in ncp_Init()
129 ipcp_Destroy(&ncp->ipcp); in ncp_Destroy()
160 fsm_Up(&ncp->ipcp.fsm); in ncp_fsmStart()
161 fsm_Open(&ncp->ipcp.fsm); in ncp_fsmStart()
181 ipcp_IfaceAddrAdded(&ncp->ipcp, addr); in ncp_IfaceAddrAdded()
195 ipcp_IfaceAddrDeleted(&ncp->ipcp, addr); in ncp_IfaceAddrDeleted()
201 ipcp_SetLink(&ncp->ipcp, l); in ncp_SetLink()
217 struct ipcp *ipcp = &ncp->ipcp; in ncp_Enqueue() local
229 if (pri >= IPCP_QUEUES(ipcp)) { in ncp_Enqueue()
238 m_enqueue(ipcp->Queue + pri, bp); in ncp_Enqueue()
[all …]
H A Dcommand.c538 oin = bundle->ncp.ipcp.throughput.OctetsIn; in command_Expand()
539 oout = bundle->ncp.ipcp.throughput.OctetsOut; in command_Expand()
540 pin = bundle->ncp.ipcp.throughput.PacketsIn; in command_Expand()
541 pout = bundle->ncp.ipcp.throughput.PacketsOut; in command_Expand()
552 nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp.ipcp.ns.dns[0]); in command_Expand()
553 nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]); in command_Expand()
558 nargv[arg] = substip(nargv[arg], "HISADDR", bundle->ncp.ipcp.peer_ip); in command_Expand()
564 bundle->ncp.ipcp.throughput.OctetsIn); in command_Expand()
566 bundle->ncp.ipcp.throughput.OctetsOut); in command_Expand()
568 bundle->ncp.ipcp.throughput.PacketsIn); in command_Expand()
[all …]
H A Dslcompress.c591 arg->bundle->ncp.ipcp.vj.slstat.sls_compressed, in sl_Show()
592 arg->bundle->ncp.ipcp.vj.slstat.sls_packets); in sl_Show()
594 arg->bundle->ncp.ipcp.vj.slstat.sls_misses, in sl_Show()
595 arg->bundle->ncp.ipcp.vj.slstat.sls_searches); in sl_Show()
597 arg->bundle->ncp.ipcp.vj.slstat.sls_compressedin, in sl_Show()
598 arg->bundle->ncp.ipcp.vj.slstat.sls_uncompressedin); in sl_Show()
600 arg->bundle->ncp.ipcp.vj.slstat.sls_errorin, in sl_Show()
601 arg->bundle->ncp.ipcp.vj.slstat.sls_tossed); in sl_Show()
H A Dncp.h51 struct ipcp ipcp; /* Our IPCP FSM */ member
H A Dauth.c223 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select()
233 ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr); in auth_Select()
260 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select()
282 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select()
H A Dvjcomp.h31 struct ipcp;
H A Dfilter.h93 struct ipcp;
H A Dmp.c988 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc()
989 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); in mp_SetEnddisc()
991 addr = arg->bundle->ncp.ipcp.my_ip; in mp_SetEnddisc()
994 mp->cfg.enddisc.len = sizeof arg->bundle->ncp.ipcp.my_ip.s_addr; in mp_SetEnddisc()
998 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) in mp_SetEnddisc()
999 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); in mp_SetEnddisc()
1001 addr = arg->bundle->ncp.ipcp.my_ip; in mp_SetEnddisc()
H A Dncpaddr.c914 range->ncprange_ip4addr = ncp->ipcp.peer_ip; in ncprange_aton()
927 range->ncprange_ip4addr = ncp->ipcp.my_ip; in ncprange_aton()
940 range->ncprange_ip4addr = ncp->ipcp.ns.dns[0]; in ncprange_aton()
946 range->ncprange_ip4addr = ncp->ipcp.ns.dns[1]; in ncprange_aton()
H A DMakefile8 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
H A DREADME.changes79 `set {lcp,ccp,ipcp,chap,pap}retry' for the other timers. These timeout
84 o `show msext' and `show vj' are part of `show ipcp'
H A Dip.c962 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) { in ipv4_Input()
971 ipcp_AddInOctets(&bundle->ncp.ipcp, nb); in ipv4_Input()
H A Dbundle.c592 bundle->ncp.ipcp.my_ip.s_addr) { in bundle_DescriptorRead()
1692 if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) { in bundle_SetMode()
1704 ipcp_InterfaceUp(&bundle->ncp.ipcp); in bundle_SetMode()
1869 struct in_addr *dns = bundle->ncp.ipcp.ns.dns; in bundle_AdjustDNS()
H A Droute.c562 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()
H A Dmain.c422 ncprange_family(&bundle->ncp.ipcp.cfg.peer_range) == AF_UNSPEC) { in main()
H A Dprompt.c104 if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED) in prompt_Display()
H A Dradius.c433 ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip); in radius_Process()
1340 bundle->links, RAD_ALIVE, &bundle->ncp.ipcp.throughput); in radius_alive()
H A Dfsm.c921 fsm_Close(&fp->bundle->ncp.ipcp.fsm); in FsmRecvProtoRej()
/freebsd/share/examples/ppp/
H A Dppp.conf.sample563 set log phase chat connect lcp ipcp command
572 set log phase lcp ipcp command