Home
last modified time | relevance | path

Searched refs:lcp (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-10-stable/usr.sbin/ppp/
Dlcp.c159 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 …]
Dlqr.c75 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 …]
Dlcp.h49 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 *);
Dchap.c454 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 …]
Dacf.c53 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()
Dproto.c50 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()
Ddatalink.c237 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 …]
Dfsm.c223 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 …]
Dlqr.h65 struct lcp;
75 extern void lqr_Start(struct lcp *);
76 extern void lqr_reStart(struct lcp *);
Dhdlc.h56 struct lcp;
72 struct lcp *owner; /* parent LCP */
104 extern void hdlc_Init(struct hdlc *, struct lcp *);
Dcommand.c266 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()
944 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) in ShowStopped()
948 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped()
1258 if (arg->cx->physical->link.lcp.fsm.state > ST_CLOSED) { in TerminalCommand()
1260 State2Nam(arg->cx->physical->link.lcp.fsm.state)); in TerminalCommand()
1292 if (cx->physical->link.lcp.fsm.state == ST_OPENED) in OpenCommand()
1293 fsm_Reopen(&cx->physical->link.lcp.fsm); in OpenCommand()
1302 if (fp->link->lcp.fsm.state != ST_OPENED) in OpenCommand()
[all …]
Dacf.h29 struct lcp;
31 extern int acf_WrapperOctets(struct lcp *, u_short);
Dphysical.c192 hdlc_Init(&p->hdlc, &p->link.lcp); in physical_Create()
214 lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp); in physical_Create()
558 if (p->link.lcp.fsm.state <= ST_CLOSED) { in physical_DescriptorRead()
606 p->link.lcp.fsm.bundle = dl->bundle; in iov2physical()
607 p->link.lcp.fsm.link = &p->link; in iov2physical()
608 memset(&p->link.lcp.fsm.FsmTimer, '\0', sizeof p->link.lcp.fsm.FsmTimer); in iov2physical()
609 memset(&p->link.lcp.fsm.OpenTimer, '\0', sizeof p->link.lcp.fsm.OpenTimer); in iov2physical()
610 memset(&p->link.lcp.fsm.StoppedTimer, '\0', in iov2physical()
611 sizeof p->link.lcp.fsm.StoppedTimer); in iov2physical()
612 p->link.lcp.fsm.parent = &dl->fsmp; in iov2physical()
[all …]
Dpap.c154 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()
Dproto.h59 struct lcp;
61 extern int proto_WrapperOctets(struct lcp *, u_short);
Dmp.c284 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 …]
Dlink.h54 struct lcp lcp; /* Our line control FSM */ member
Dmppe.c447 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()
Dhdlc.c99 hdlc_Init(struct hdlc *hdlc, struct lcp *lcp) in hdlc_Init() argument
102 hdlc->lqm.owner = lcp; in hdlc_Init()
Dasync.h44 struct lcp;
/freebsd-10-stable/sys/net/
Dif_spppsubr.c395 static const struct cp lcp = { variable
448 &lcp, /* IDX_LCP */
581 sppp_cp_input(&lcp, sp, m); in sppp_input()
833 lcp.Open(sp); in sppp_output()
1236 lcp.Close(sp); in sppp_ioctl()
1247 lcp.Close(sp); in sppp_ioctl()
1251 lcp.Open(sp); in sppp_ioctl()
1268 if (ifr->ifr_mtu < 128 || ifr->ifr_mtu > sp->lcp.their_mru) in sppp_ioctl()
1275 if (*(short*)data < 128 || *(short*)data > sp->lcp.their_mru) in sppp_ioctl()
1547 sp->rst_counter[cp->protoidx] = sp->lcp.max_configure; in sppp_cp_input()
[all …]
Dif_sppp.h108 struct slcp lcp; /* LCP params */ member
162 struct slcp lcp; /* LCP params */ member
/freebsd-10-stable/usr.bin/tftp/
Dmain.c440 char *lcp; in put() local
447 lcp = argv[argc - 1]; in put()
448 targ = strrchr(lcp, ':'); in put()
450 if (lcp[0] == '[' && lcp[strlen(lcp) - 1] == ']') { in put()
451 lcp[strlen(lcp) - 1] = '\0'; in put()
452 lcp++; in put()
454 setpeer0(lcp, NULL); in put()
553 char *lcp; in get() local
556 lcp = argv[n]; in get()
557 if (lcp[0] == '[' && lcp[strlen(lcp) - 1] == ']') { in get()
[all …]
/freebsd-10-stable/contrib/subversion/subversion/libsvn_ra_serf/
Dlog.c199 svn_log_changed_path2_t *lcp; in collect_path() local
204 lcp = svn_log_changed_path2_create(result_pool); in collect_path()
205 lcp->action = action; in collect_path()
206 lcp->copyfrom_rev = SVN_INVALID_REVNUM; in collect_path()
219 lcp->copyfrom_path = apr_pstrdup(result_pool, copyfrom_path); in collect_path()
220 lcp->copyfrom_rev = (svn_revnum_t)rev; in collect_path()
224 lcp->node_kind = svn_node_kind_from_word(svn_hash_gets(attrs, "node-kind")); in collect_path()
225 lcp->text_modified = svn_tristate__from_word(svn_hash_gets(attrs, in collect_path()
227 lcp->props_modified = svn_tristate__from_word(svn_hash_gets(attrs, in collect_path()
231 svn_hash_sets(paths, path, lcp); in collect_path()
/freebsd-10-stable/sys/geom/multipath/
Dg_multipath.c131 struct g_consumer *lcp; in g_multipath_fault() local
138 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
139 if (lcp->provider == NULL || in g_multipath_fault()
140 (lcp->index & (MP_LOST | MP_NEW))) in g_multipath_fault()
142 if (sc->sc_ndisks > 1 && lcp == cp) in g_multipath_fault()
146 sc->sc_name, lcp->provider->name); in g_multipath_fault()
147 lcp->index &= ~MP_FAIL; in g_multipath_fault()
153 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
154 if ((lcp->index & MP_BAD) == 0) { in g_multipath_fault()
155 sc->sc_active = lcp; in g_multipath_fault()
[all …]

12