| /mirbsd/src/usr.sbin/ppp/ppp/ |
| D | lcp.c | 162 struct lcp *lcp; in lcp_ReportStatus() local 165 lcp = &l->lcp; in lcp_ReportStatus() 167 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, lcp->fsm.name, in lcp_ReportStatus() 168 State2Nam(lcp->fsm.state)); in lcp_ReportStatus() 172 lcp->his_mru, (u_long)lcp->his_accmap, in lcp_ReportStatus() 173 lcp->his_protocomp ? "on" : "off", in lcp_ReportStatus() 174 lcp->his_acfcomp ? "on" : "off", in lcp_ReportStatus() 175 (u_long)lcp->his_magic, lcp->his_mrru, in lcp_ReportStatus() 176 lcp->his_shortseq ? "on" : "off", lcp->his_reject); in lcp_ReportStatus() 180 lcp->want_mru, (u_long)lcp->want_accmap, in lcp_ReportStatus() [all …]
|
| D | lqr.c | 75 SendEchoReq(struct lcp *lcp) in SendEchoReq() argument 77 struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc; in SendEchoReq() 80 echo.magic = htonl(lcp->want_magic); in SendEchoReq() 83 fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++, in SendEchoReq() 91 struct lcp *lcp = fsm2lcp(fp); in lqr_RecvEcho() local 102 if (lqr.magic != 0 && lqr.magic != lcp->his_magic && in lqr_RecvEcho() 103 lqr.magic != lcp->want_magic) { in lqr_RecvEcho() 105 " got 0x%08x\n", fp->link->name, lcp->his_magic, lqr.magic); in lqr_RecvEcho() 139 SendLqrData(struct lcp *lcp) in SendLqrData() argument 144 extra = proto_WrapperOctets(lcp, PROTO_LQR) + in SendLqrData() [all …]
|
| D | lcp.h | 49 struct lcp { struct 132 #define fsm2lcp(fp) (fp->proto == PROTO_LCP ? (struct lcp *)fp : NULL) 134 extern void lcp_Init(struct lcp *, struct bundle *, struct link *, 136 extern void lcp_Setup(struct lcp *, int); 138 extern void lcp_SendProtoRej(struct lcp *, u_char *, int); 139 extern int lcp_SendIdentification(struct lcp *); 140 extern void lcp_RecvIdentification(struct lcp *, char *); 143 extern void lcp_SetupCallbacks(struct lcp *);
|
| D | chap.c | 457 int lanman = chap->auth.physical->link.lcp.his_authtype == 0x80 && in chap_Read() 459 IsAccepted(chap->auth.physical->link.lcp.cfg.chap80lm)) || in chap_Read() 460 !IsAccepted(chap->auth.physical->link.lcp.cfg.chap80nt)); in chap_Read() 470 chap_Respond(chap, name, key, chap->auth.physical->link.lcp.his_authtype in chap_Read() 511 if (authp->physical->link.lcp.want_authtype == 0x80) in chap_ChallengeInit() 513 else if (authp->physical->link.lcp.want_authtype == 0x81) in chap_ChallengeInit() 532 authp->physical->link.lcp.want_authtype); in chap_Challenge() 541 if (authp->physical->link.lcp.want_authtype == 0x81) in chap_Challenge() 558 if (authp->physical->link.lcp.want_authtype == 0x81) { in chap_Success() 578 authp->physical->link.lcp.auth_ineed = 0; in chap_Success() [all …]
|
| D | proto.c | 50 proto_WrapperOctets(struct lcp *lcp, u_short proto) in proto_WrapperOctets() argument 52 return (lcp->his_protocomp && !(proto & 0xff00)) ? 1 : 2; in proto_WrapperOctets() 76 bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp, in proto_LayerPush() 77 acf_WrapperOctets(&l->lcp, *proto)); in proto_LayerPush()
|
| D | acf.c | 53 acf_WrapperOctets(struct lcp *lcp, u_short proto) in acf_WrapperOctets() argument 55 return (proto == PROTO_LCP || lcp->his_acfcomp == 0) ? 2 : 0; in acf_WrapperOctets() 64 if (*proto == PROTO_LCP || l->lcp.his_acfcomp == 0) { in acf_LayerPush() 84 if (!p->link.lcp.want_acfcomp) { in acf_LayerPull()
|
| D | datalink.c | 239 hdlc_Init(&dl->physical->hdlc, &dl->physical->link.lcp); in datalink_LoginDone() 242 lcp_Setup(&dl->physical->link.lcp, dl->state == DATALINK_READY ? in datalink_LoginDone() 243 0 : dl->physical->link.lcp.cfg.openmode); in datalink_LoginDone() 247 fsm_Up(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 248 fsm_Open(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 576 struct lcp *lcp = &dl->physical->link.lcp; in datalink_LayerUp() local 580 lcp->auth_ineed = lcp->want_auth; in datalink_LayerUp() 581 lcp->auth_iwait = lcp->his_auth; in datalink_LayerUp() 582 if (lcp->his_auth || lcp->want_auth) { in datalink_LayerUp() 586 Auth2Nam(lcp->his_auth, lcp->his_authtype), in datalink_LayerUp() [all …]
|
| D | hdlc.h | 56 struct lcp; 72 struct lcp *owner; /* parent LCP */ 103 extern void hdlc_Init(struct hdlc *, struct lcp *); 113 extern int hdlc_WrapperOctets(struct lcp *, u_short);
|
| D | fsm.c | 228 lcp_SendIdentification(&fp->link->lcp); in fsm_Output() 397 lcp_SendIdentification(&fp->link->lcp); in FsmSendConfigReq() 509 if (fp->proto == PROTO_CCP && fp->link->lcp.fsm.state == ST_OPENED) { in FsmRecvConfigReq() 517 lcp_SendProtoRej(&fp->link->lcp, MBUF_CTOP(bp), bp->m_len); in FsmRecvConfigReq() 587 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 601 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 608 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 663 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigAck() 821 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigRej() 938 struct lcp *lcp = fsm2lcp(fp); in FsmRecvProtoRej() local [all …]
|
| D | command.c | 260 Concatinate(arg->cx->physical->link.lcp.cfg.ident, in IdentCommand() 261 sizeof arg->cx->physical->link.lcp.cfg.ident, in IdentCommand() 273 return lcp_SendIdentification(&arg->cx->physical->link.lcp) ? 0 : 1; in SendIdentification() 912 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) in ShowStopped() 916 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped() 1228 if (arg->cx->physical->link.lcp.fsm.state > ST_CLOSED) { in TerminalCommand() 1230 State2Nam(arg->cx->physical->link.lcp.fsm.state)); in TerminalCommand() 1262 if (cx->physical->link.lcp.fsm.state == ST_OPENED) in OpenCommand() 1263 fsm_Reopen(&cx->physical->link.lcp.fsm); in OpenCommand() 1272 if (fp->link->lcp.fsm.state != ST_OPENED) in OpenCommand() [all …]
|
| D | lqr.h | 65 struct lcp; 75 extern void lqr_Start(struct lcp *); 76 extern void lqr_reStart(struct lcp *);
|
| D | hdlc.c | 99 hdlc_Init(struct hdlc *hdlc, struct lcp *lcp) in hdlc_Init() argument 102 hdlc->lqm.owner = lcp; in hdlc_Init() 141 hdlc_WrapperOctets(struct lcp *lcp, u_short proto) in hdlc_WrapperOctets() argument
|
| D | acf.h | 29 struct lcp; 31 extern int acf_WrapperOctets(struct lcp *, u_short);
|
| D | physical.c | 204 hdlc_Init(&p->hdlc, &p->link.lcp); in physical_Create() 226 lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp); in physical_Create() 570 if (p->link.lcp.fsm.state <= ST_CLOSED) { in physical_DescriptorRead() 618 p->link.lcp.fsm.bundle = dl->bundle; in iov2physical() 619 p->link.lcp.fsm.link = &p->link; in iov2physical() 620 memset(&p->link.lcp.fsm.FsmTimer, '\0', sizeof p->link.lcp.fsm.FsmTimer); in iov2physical() 621 memset(&p->link.lcp.fsm.OpenTimer, '\0', sizeof p->link.lcp.fsm.OpenTimer); in iov2physical() 622 memset(&p->link.lcp.fsm.StoppedTimer, '\0', in iov2physical() 623 sizeof p->link.lcp.fsm.StoppedTimer); in iov2physical() 624 p->link.lcp.fsm.parent = &dl->fsmp; in iov2physical() [all …]
|
| D | proto.h | 59 struct lcp; 61 extern int proto_WrapperOctets(struct lcp *, u_short);
|
| D | pap.c | 158 authp->physical->link.lcp.auth_ineed = 0; in pap_Success() 162 if (authp->physical->link.lcp.auth_iwait == 0) in pap_Success() 287 if (p->link.lcp.auth_iwait == PROTO_PAP) { in pap_Input() 288 p->link.lcp.auth_iwait = 0; in pap_Input() 289 if (p->link.lcp.auth_ineed == 0) in pap_Input()
|
| D | mp.c | 284 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL); in mp_Init() 299 struct lcp *lcp = &dl->physical->link.lcp; in mp_Up() local 313 if (mp->local_mrru != lcp->want_mrru || in mp_Up() 314 mp->peer_mrru != lcp->his_mrru || in mp_Up() 315 mp->local_is12bit != lcp->want_shortseq || in mp_Up() 316 mp->peer_is12bit != lcp->his_shortseq) { in mp_Up() 325 mp->local_mrru = lcp->want_mrru; in mp_Up() 326 mp->peer_mrru = lcp->his_mrru; in mp_Up() 327 mp->local_is12bit = lcp->want_shortseq; in mp_Up() 328 mp->peer_is12bit = lcp->his_shortseq; in mp_Up() [all …]
|
| D | link.h | 54 struct lcp lcp; /* Our line control FSM */ member
|
| D | mppe.c | 482 struct lcp *lcp = &fp->link->lcp; in MPPEUsable() local 483 ok = (lcp->want_auth == PROTO_CHAP && lcp->want_authtype == 0x81) || in MPPEUsable() 484 (lcp->his_auth == PROTO_CHAP && lcp->his_authtype == 0x81); in MPPEUsable()
|
| D | async.h | 44 struct lcp;
|
| D | ccp.c | 489 if (fp->link->lcp.fsm.state == ST_OPENED) in CcpLayerFinish() 491 fsm_Close(&fp->link->lcp.fsm); in CcpLayerFinish() 517 fsm_Close(&fp->link->lcp.fsm); in CcpLayerUp() 642 fsm_Close(&fp->link->lcp.fsm); in CcpDecodeConfig() 653 fsm_Close(&fp->link->lcp.fsm); in CcpDecodeConfig()
|
| /mirbsd/src/sys/net/ |
| D | if_spppsubr.c | 410 static const struct cp lcp = { variable 443 &lcp, /* IDX_LCP */ 536 sppp_cp_input(&lcp, sp, m); in sppp_input() 672 lcp.Open(sp); in sppp_output() 871 sp->pp_up = lcp.Up; in sppp_attach() 872 sp->pp_down = lcp.Down; in sppp_attach() 1016 lcp.Close(sp); in sppp_ioctl() 1022 lcp.Open(sp); in sppp_ioctl() 1031 if (ifr->ifr_mtu < 128 || ifr->ifr_mtu > sp->lcp.their_mru) { in sppp_ioctl() 1040 if (*(short*)data < 128 || *(short*)data > sp->lcp.their_mru) { in sppp_ioctl() [all …]
|
| /mirbsd/src/etc/ppp/ |
| D | options.sample | 15 lcp-echo-failure 2 16 lcp-echo-interval 90
|
| /mirbsd/src/distrib/special/pppd/ |
| D | Makefile | 7 ipxcp.c lcp.c magic.c main.c options.c sys-bsd.c upap.c
|
| /mirbsd/src/usr.sbin/pppd/ |
| D | Makefile | 8 ipxcp.c lcp.c magic.c main.c options.c sys-bsd.c upap.c
|