/freebsd/usr.sbin/ppp/ |
H A D | lcp.c | 159 struct lcp *lcp; in lcp_ReportStatus() local 162 lcp = &l->lcp; in lcp_ReportStatus() 164 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, lcp->fsm.name, in lcp_ReportStatus() 165 State2Nam(lcp->fsm.state)); in lcp_ReportStatus() 169 lcp->his_mru, (u_long)lcp->his_accmap, in lcp_ReportStatus() 170 lcp->his_protocomp ? "on" : "off", in lcp_ReportStatus() 171 lcp->his_acfcomp ? "on" : "off", in lcp_ReportStatus() 172 (u_long)lcp->his_magic, lcp->his_mrru, in lcp_ReportStatus() 173 lcp->his_shortseq ? "on" : "off", lcp->his_reject); in lcp_ReportStatus() 177 lcp->want_mru, (u_long)lcp->want_accmap, in lcp_ReportStatus() [all …]
|
H A 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() 112 || lqr.signature == lcp->want_magic) { /* some implementations return the wrong magic */ in lqr_RecvEcho() 140 SendLqrData(struct lcp *lcp) in SendLqrData() argument [all …]
|
H A 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 *);
|
H A D | chap.c | 454 int lanman = chap->auth.physical->link.lcp.his_authtype == 0x80 && in chap_Read() 456 IsAccepted(chap->auth.physical->link.lcp.cfg.chap80lm)) || in chap_Read() 457 !IsAccepted(chap->auth.physical->link.lcp.cfg.chap80nt)); in chap_Read() 469 , chap->auth.physical->link.lcp.his_authtype, lanman in chap_Read() 509 if (authp->physical->link.lcp.want_authtype == 0x80) in chap_ChallengeInit() 511 else if (authp->physical->link.lcp.want_authtype == 0x81) in chap_ChallengeInit() 530 authp->physical->link.lcp.want_authtype); in chap_Challenge() 539 if (authp->physical->link.lcp.want_authtype == 0x81) in chap_Challenge() 556 if (authp->physical->link.lcp.want_authtype == 0x81) { in chap_Success() 576 authp->physical->link.lcp.auth_ineed = 0; in chap_Success() [all …]
|
H A 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() 85 if (!p->link.lcp.want_acfcomp) { in acf_LayerPull()
|
H A 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()
|
H A D | datalink.c | 237 hdlc_Init(&dl->physical->hdlc, &dl->physical->link.lcp); in datalink_LoginDone() 240 lcp_Setup(&dl->physical->link.lcp, dl->state == DATALINK_READY ? in datalink_LoginDone() 241 0 : dl->physical->link.lcp.cfg.openmode); in datalink_LoginDone() 245 fsm_Up(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 246 fsm_Open(&dl->physical->link.lcp.fsm); in datalink_LoginDone() 574 struct lcp *lcp = &dl->physical->link.lcp; in datalink_LayerUp() local 578 lcp->auth_ineed = lcp->want_auth; in datalink_LayerUp() 579 lcp->auth_iwait = lcp->his_auth; in datalink_LayerUp() 580 if (lcp->his_auth || lcp->want_auth) { in datalink_LayerUp() 584 Auth2Nam(lcp->his_auth, lcp->his_authtype), in datalink_LayerUp() [all …]
|
H A D | fsm.c | 223 lcp_SendIdentification(&fp->link->lcp); in fsm_Output() 392 lcp_SendIdentification(&fp->link->lcp); in FsmSendConfigReq() 504 if (fp->proto == PROTO_CCP && fp->link->lcp.fsm.state == ST_OPENED) { in FsmRecvConfigReq() 512 lcp_SendProtoRej(&fp->link->lcp, MBUF_CTOP(bp), bp->m_len); in FsmRecvConfigReq() 582 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 596 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 603 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigReq() 658 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigAck() 817 lcp_SendIdentification(&fp->link->lcp); in FsmRecvConfigRej() 935 struct lcp *lcp = fsm2lcp(fp); in FsmRecvProtoRej() local [all …]
|
H A D | lqr.h | 65 struct lcp; 75 extern void lqr_Start(struct lcp *); 76 extern void lqr_reStart(struct lcp *);
|
H A D | hdlc.h | 56 struct lcp; 72 struct lcp *owner; /* parent LCP */ 104 extern void hdlc_Init(struct hdlc *, struct lcp *);
|
H A D | command.c | 266 Concatinate(arg->cx->physical->link.lcp.cfg.ident, in IdentCommand() 267 sizeof arg->cx->physical->link.lcp.cfg.ident, in IdentCommand() 279 return lcp_SendIdentification(&arg->cx->physical->link.lcp) ? 0 : 1; in SendIdentification() 948 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) in ShowStopped() 952 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped() 1262 if (arg->cx->physical->link.lcp.fsm.state > ST_CLOSED) { in TerminalCommand() 1264 State2Nam(arg->cx->physical->link.lcp.fsm.state)); in TerminalCommand() 1296 if (cx->physical->link.lcp.fsm.state == ST_OPENED) in OpenCommand() 1297 fsm_Reopen(&cx->physical->link.lcp.fsm); in OpenCommand() 1306 if (fp->link->lcp.fsm.state != ST_OPENED) in OpenCommand() [all …]
|
H A D | acf.h | 29 struct lcp; 31 extern int acf_WrapperOctets(struct lcp *, u_short);
|
H A D | physical.c | 183 hdlc_Init(&p->hdlc, &p->link.lcp); in physical_Create() 205 lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp); in physical_Create() 545 if (p->link.lcp.fsm.state <= ST_CLOSED) { in physical_DescriptorRead() 593 p->link.lcp.fsm.bundle = dl->bundle; in iov2physical() 594 p->link.lcp.fsm.link = &p->link; in iov2physical() 595 memset(&p->link.lcp.fsm.FsmTimer, '\0', sizeof p->link.lcp.fsm.FsmTimer); in iov2physical() 596 memset(&p->link.lcp.fsm.OpenTimer, '\0', sizeof p->link.lcp.fsm.OpenTimer); in iov2physical() 597 memset(&p->link.lcp.fsm.StoppedTimer, '\0', in iov2physical() 598 sizeof p->link.lcp.fsm.StoppedTimer); in iov2physical() 599 p->link.lcp.fsm.parent = &dl->fsmp; in iov2physical() [all …]
|
H A D | pap.c | 154 authp->physical->link.lcp.auth_ineed = 0; in pap_Success() 158 if (authp->physical->link.lcp.auth_iwait == 0) in pap_Success() 283 if (p->link.lcp.auth_iwait == PROTO_PAP) { in pap_Input() 284 p->link.lcp.auth_iwait = 0; in pap_Input() 285 if (p->link.lcp.auth_ineed == 0) in pap_Input()
|
H A D | proto.h | 59 struct lcp; 61 extern int proto_WrapperOctets(struct lcp *, u_short);
|
H A 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 …]
|
H A D | link.h | 54 struct lcp lcp; /* Our line control FSM */ member
|
H A D | mppe.c | 447 struct lcp *lcp = &fp->link->lcp; in MPPEUsable() local 448 ok = (lcp->want_auth == PROTO_CHAP && lcp->want_authtype == 0x81) || in MPPEUsable() 449 (lcp->his_auth == PROTO_CHAP && lcp->his_authtype == 0x81); in MPPEUsable()
|
H A D | hdlc.c | 99 hdlc_Init(struct hdlc *hdlc, struct lcp *lcp) in hdlc_Init() argument 102 hdlc->lqm.owner = lcp; in hdlc_Init()
|
H A D | async.h | 44 struct lcp;
|
H A D | ccp.c | 490 if (fp->link->lcp.fsm.state == ST_OPENED) in CcpLayerFinish() 492 fsm_Close(&fp->link->lcp.fsm); in CcpLayerFinish() 518 fsm_Close(&fp->link->lcp.fsm); in CcpLayerUp() 644 fsm_Close(&fp->link->lcp.fsm); in CcpDecodeConfig() 655 fsm_Close(&fp->link->lcp.fsm); in CcpDecodeConfig()
|
H A D | udp.c | 316 if (p->link.lcp.cfg.openmode != OPEN_PASSIVE) { in udp_Create() 319 p->link.lcp.cfg.openmode = OPEN_PASSIVE; in udp_Create()
|
H A D | cbcp.c | 316 struct lcp *lcp = &cbcp->p->link.lcp; in cbcp_Up() local 327 if (lcp->want_callback.opmask) { in cbcp_Up()
|
/freebsd/usr.bin/tftp/ |
H A D | main.c | 451 char *lcp; in put() local 458 lcp = argv[argc - 1]; in put() 459 targ = strrchr(lcp, ':'); in put() 461 if (lcp[0] == '[' && lcp[strlen(lcp) - 1] == ']') { in put() 462 lcp[strlen(lcp) - 1] = '\0'; in put() 463 lcp++; in put() 465 setpeer0(lcp, NULL); in put() 573 char *lcp; in get() local 576 lcp = argv[n]; in get() 577 if (lcp[0] == '[' && lcp[strlen(lcp) - 1] == ']') { in get() [all …]
|
/freebsd/sys/geom/multipath/ |
H A D | g_multipath.c | 141 struct g_consumer *lcp; in g_multipath_fault() local 148 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault() 149 if (lcp->provider == NULL || in g_multipath_fault() 150 (lcp->index & (MP_LOST | MP_NEW))) in g_multipath_fault() 152 if (sc->sc_ndisks > 1 && lcp == cp) in g_multipath_fault() 156 sc->sc_name, lcp->provider->name); in g_multipath_fault() 158 sc->sc_name, lcp->provider->name); in g_multipath_fault() 159 lcp->index &= ~MP_FAIL; in g_multipath_fault() 165 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault() 166 if ((lcp->index & MP_BAD) == 0) { in g_multipath_fault() [all …]
|