/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ipcp.h | 30 * $FreeBSD: stable/11/usr.sbin/ppp/ipcp.h 330449 2018-03-05 07:26:05Z eadler $ 47 struct ipcp { struct 105 #define fsm2ipcp(fp) (fp->proto == PROTO_IPCP ? (struct ipcp *)fp : NULL) 106 #define IPCP_QUEUES(ipcp) (sizeof ipcp->Queue / sizeof ipcp->Queue[0]) 113 extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *, 115 extern void ipcp_Destroy(struct ipcp *); 116 extern void ipcp_Setup(struct ipcp *, u_int32_t); 117 extern void ipcp_SetLink(struct ipcp *, struc [all...] |
H A D | ipcp.c | 30 * $FreeBSD: stable/11/usr.sbin/ppp/ipcp.c 330449 2018-03-05 07:26:05Z eadler $ 79 #include "ipcp.h" 165 ipcp_AddInOctets(struct ipcp *ipcp, int n) argument 167 throughput_addin(&ipcp->throughput, n); 171 ipcp_AddOutOctets(struct ipcp *ipcp, int n) argument 173 throughput_addout(&ipcp->throughput, n); 177 ipcp_LoadDNS(struct ipcp *ipcp) argument 286 ipcp_WriteDNS(struct ipcp *ipcp) argument 334 ipcp_RestoreDNS(struct ipcp *ipcp) argument 363 struct ipcp *ipcp = &arg->bundle->ncp.ipcp; local 449 ipcp_Init(struct ipcp *ipcp, struct bundle *bundle, struct link *l, const struct fsm_parent *parent) argument 502 ipcp_Destroy(struct ipcp *ipcp) argument 517 ipcp_SetLink(struct ipcp *ipcp, struct link *l) argument 523 ipcp_Setup(struct ipcp *ipcp, u_int32_t mask) argument 622 ipcp_proxyarp(struct ipcp *ipcp, int (*proxyfun)(struct bundle *, struct in_addr), const struct iface_addr *addr) argument 665 ipcp_SetIPaddress(struct ipcp *ipcp, struct in_addr myaddr, struct in_addr hisaddr) argument 742 struct ipcp *ipcp = fsm2ipcp(fp); local 763 struct ipcp *ipcp = fsm2ipcp(fp); local 824 struct ipcp *ipcp = fsm2ipcp(fp); local 837 struct ipcp *ipcp = fsm2ipcp(fp); local 848 ipcp_IfaceAddrAdded(struct ipcp *ipcp, const struct iface_addr *addr) argument 860 ipcp_IfaceAddrDeleted(struct ipcp *ipcp, const struct iface_addr *addr) argument 872 struct ipcp *ipcp = fsm2ipcp(fp); local 910 ipcp_InterfaceUp(struct ipcp *ipcp) argument 935 struct ipcp *ipcp = fsm2ipcp(fp); local 980 ipcp_ValidateReq(struct ipcp *ipcp, struct in_addr ip, struct fsm_decode *dec) argument 1061 struct ipcp *ipcp = fsm2ipcp(fp); local 1361 struct ipcp *ipcp = &bundle->ncp.ipcp; local 1378 struct ipcp *ipcp = &ncp->ipcp; local 1431 ipcp_QueueLen(struct ipcp *ipcp) argument 1444 ipcp_PushPacket(struct ipcp *ipcp, struct link *l) argument [all...] |
H A D | vjcomp.h | 33 struct ipcp;
|
H A D | vjcomp.c | 57 #include "ipcp.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); 117 VjUncompressTcp(struct ipcp *ipcp, struct mbuf *bp, u_char type) argument 131 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat, 132 (ipcp [all...] |
H A D | ncp.c | 60 #include "ipcp.h" 120 ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link, 131 ipcp_Destroy(&ncp->ipcp); 162 fsm_Up(&ncp->ipcp.fsm); 163 fsm_Open(&ncp->ipcp.fsm); 183 ipcp_IfaceAddrAdded(&ncp->ipcp, addr); 197 ipcp_IfaceAddrDeleted(&ncp->ipcp, addr); 203 ipcp_SetLink(&ncp->ipcp, l); 219 struct ipcp *ipcp local 291 struct ipcp *ipcp = &ncp->ipcp; local [all...] |
H A D | filter.h | 95 struct ipcp;
|
H A D | slcompress.c | 70 #include "ipcp.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 | ncp.h | 52 struct ipcp ipcp; /* Our IPCP FSM */ member in struct:ncp
|
H A D | command.c | 77 #include "ipcp.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; 554 nargv[arg] = substip(nargv[arg], "DNS0", bundle->ncp.ipcp.ns.dns[0]); 555 nargv[arg] = substip(nargv[arg], "DNS1", bundle->ncp.ipcp.ns.dns[1]); 560 nargv[arg] = substip(nargv[arg], "HISADDR", bundle->ncp.ipcp.peer_ip); 566 bundle->ncp.ipcp.throughput.OctetsIn); 568 bundle->ncp.ipcp [all...] |
H A D | Makefile | 9 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
|
H A D | auth.c | 66 #include "ipcp.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);
|
H A D | mp.c | 68 #include "ipcp.h" 990 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) 991 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); 993 addr = arg->bundle->ncp.ipcp.my_ip; 996 mp->cfg.enddisc.len = sizeof arg->bundle->ncp.ipcp.my_ip.s_addr; 1000 if (arg->bundle->ncp.ipcp.my_ip.s_addr == INADDR_ANY) 1001 ncprange_getip4addr(&arg->bundle->ncp.ipcp.cfg.my_range, &addr); 1003 addr = arg->bundle->ncp.ipcp.my_ip;
|
H A D | ncpaddr.c | 58 #include "ipcp.h" 916 range->ncprange_ip4addr = ncp->ipcp.peer_ip; 929 range->ncprange_ip4addr = ncp->ipcp.my_ip; 942 range->ncprange_ip4addr = ncp->ipcp.ns.dns[0]; 948 range->ncprange_ip4addr = ncp->ipcp.ns.dns[1];
|
H A D | main.c | 78 #include "ipcp.h" 424 ncprange_family(&bundle->ncp.ipcp.cfg.peer_range) == AF_UNSPEC) {
|
H A D | prompt.c | 64 #include "ipcp.h" 106 if (p->bundle->ncp.ipcp.fsm.state == ST_OPENED)
|
H A D | route.c | 70 #include "ipcp.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)
|
H A D | ip.c | 68 #include "ipcp.h" 962 if (bundle->ncp.ipcp.fsm.state != ST_OPENED) { 971 ipcp_AddInOctets(&bundle->ncp.ipcp, nb);
|
H A D | bundle.c | 73 #include "ipcp.h" 594 bundle->ncp.ipcp.my_ip.s_addr) { 1697 if (bundle->ncp.ipcp.peer_ip.s_addr == INADDR_ANY) { 1709 ipcp_InterfaceUp(&bundle->ncp.ipcp); 1874 struct in_addr *dns = bundle->ncp.ipcp.ns.dns;
|
H A D | radius.c | 80 #include "ipcp.h" 435 ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip); 1342 bundle->links, RAD_ALIVE, &bundle->ncp.ipcp.throughput);
|
H A D | fsm.c | 56 #include "ipcp.h" 923 fsm_Close(&fp->bundle->ncp.ipcp.fsm);
|
/freebsd-11-stable/sys/net/ |
H A D | if_sppp.h | 109 struct sipcp ipcp; /* IPCP params */ member in struct:sppp_parms 163 struct sipcp ipcp; /* IPCP params */ member in struct:sppp
|
H A D | if_spppsubr.c | 92 * being one of "lcp", "ipcp", "cisco", "chap", "pap", etc. 400 static const struct cp ipcp = { variable in typeref:struct:cp 407 "ipcp", 446 &ipcp, /* IDX_IPCP */ 597 sppp_cp_input(&ipcp, sp, m); 869 (sp->ipcp.flags & IPCP_VJ) && ip->ip_p == IPPROTO_TCP) 871 sp->ipcp.compress_cid)) { 2833 sp->ipcp.opts = 0; 2834 sp->ipcp.flags = 0; 2845 sppp_up_event(&ipcp, s [all...] |