/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | acf.h | 29 struct lcp; 31 extern int acf_WrapperOctets(struct lcp *, u_short);
|
H A D | lcp.c | 60 #include "lcp.h" 159 struct lcp *lcp; local 162 lcp = &l->lcp; 164 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, lcp->fsm.name, 165 State2Nam(lcp->fsm.state)); 169 lcp->his_mru, (u_long)lcp->his_accmap, 170 lcp 240 lcp_SetupCallbacks(struct lcp *lcp) argument 249 lcp_Init(struct lcp *lcp, struct bundle *bundle, struct link *l, const struct fsm_parent *parent) argument 286 lcp_Setup(struct lcp *lcp, int openmode) argument 362 struct lcp *lcp = fsm2lcp(fp); local 383 struct lcp *lcp = fsm2lcp(fp); local 492 lcp_SendProtoRej(struct lcp *lcp, u_char *option, int count) argument 500 lcp_SendIdentification(struct lcp *lcp) argument 528 lcp_RecvIdentification(struct lcp *lcp, char *data) argument 556 struct lcp *lcp = fsm2lcp(fp); local 576 struct lcp *lcp = fsm2lcp(fp); local 621 lcp_auth_nak(struct lcp *lcp, struct fsm_decode *dec) argument 663 struct lcp *lcp = fsm2lcp(fp); local [all...] |
H A D | lqr.c | 51 #include "lcp.h" 75 SendEchoReq(struct lcp *lcp) argument 77 struct hdlc *hdlc = &link2physical(lcp->fsm.link)->hdlc; 80 echo.magic = htonl(lcp->want_magic); 83 fsm_Output(&lcp->fsm, CODE_ECHOREQ, hdlc->lqm.echo.seq_sent++, 91 struct lcp *lcp = fsm2lcp(fp); local 102 if (lqr.magic != 0 && lqr.magic != lcp->his_magic && 103 lqr.magic != lcp 140 SendLqrData(struct lcp *lcp) argument 165 struct lcp *lcp = (struct lcp *)v; local 205 struct lcp *lcp = p->hdlc.lqm.owner; local 268 lqr_Setup(struct lcp *lcp) argument 310 lqr_Start(struct lcp *lcp) argument 320 lqr_reStart(struct lcp *lcp) 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 | lqr.h | 65 struct lcp; 75 extern void lqr_Start(struct lcp *); 76 extern void lqr_reStart(struct lcp *);
|
H A D | proto.h | 59 struct lcp; 61 extern int proto_WrapperOctets(struct lcp *, u_short);
|
H A D | async.h | 44 struct lcp;
|
H A D | acf.c | 45 #include "lcp.h" 53 acf_WrapperOctets(struct lcp *lcp, u_short proto) argument 55 return (proto == PROTO_LCP || lcp->his_acfcomp == 0) ? 2 : 0; 64 if (*proto == PROTO_LCP || l->lcp.his_acfcomp == 0) { 85 if (!p->link.lcp.want_acfcomp) {
|
H A D | proto.c | 45 #include "lcp.h" 50 proto_WrapperOctets(struct lcp *lcp, u_short proto) argument 52 return (lcp->his_protocomp && !(proto & 0xff00)) ? 1 : 2; 76 bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp, 77 acf_WrapperOctets(&l->lcp, *proto));
|
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 | chap.c | 63 #include "lcp.h" 454 int lanman = chap->auth.physical->link.lcp.his_authtype == 0x80 && 456 IsAccepted(chap->auth.physical->link.lcp.cfg.chap80lm)) || 457 !IsAccepted(chap->auth.physical->link.lcp.cfg.chap80nt)); 469 , chap->auth.physical->link.lcp.his_authtype, lanman 509 if (authp->physical->link.lcp.want_authtype == 0x80) 511 else if (authp->physical->link.lcp.want_authtype == 0x81) 530 authp->physical->link.lcp.want_authtype); 539 if (authp->physical->link.lcp.want_authtype == 0x81) 556 if (authp->physical->link.lcp [all...] |
H A D | link.h | 54 struct lcp lcp; /* Our line control FSM */ member in struct:link
|
H A D | datalink.c | 53 #include "lcp.h" 237 hdlc_Init(&dl->physical->hdlc, &dl->physical->link.lcp); 240 lcp_Setup(&dl->physical->link.lcp, dl->state == DATALINK_READY ? 241 0 : dl->physical->link.lcp.cfg.openmode); 245 fsm_Up(&dl->physical->link.lcp.fsm); 246 fsm_Open(&dl->physical->link.lcp.fsm); 574 struct lcp *lcp = &dl->physical->link.lcp; local 578 lcp [all...] |
H A D | fsm.c | 57 #include "lcp.h" 223 lcp_SendIdentification(&fp->link->lcp); 392 lcp_SendIdentification(&fp->link->lcp); 504 if (fp->proto == PROTO_CCP && fp->link->lcp.fsm.state == ST_OPENED) { 512 lcp_SendProtoRej(&fp->link->lcp, MBUF_CTOP(bp), bp->m_len); 582 lcp_SendIdentification(&fp->link->lcp); 596 lcp_SendIdentification(&fp->link->lcp); 603 lcp_SendIdentification(&fp->link->lcp); 658 lcp_SendIdentification(&fp->link->lcp); 817 lcp_SendIdentification(&fp->link->lcp); 935 struct lcp *lcp = fsm2lcp(fp); local 951 struct lcp *lcp = fsm2lcp(fp); local [all...] |
H A D | pap.c | 52 #include "lcp.h" 154 authp->physical->link.lcp.auth_ineed = 0; 158 if (authp->physical->link.lcp.auth_iwait == 0) 283 if (p->link.lcp.auth_iwait == PROTO_PAP) { 284 p->link.lcp.auth_iwait = 0; 285 if (p->link.lcp.auth_ineed == 0)
|
H A D | physical.c | 70 #include "lcp.h" 192 hdlc_Init(&p->hdlc, &p->link.lcp); 214 lcp_Init(&p->link.lcp, dl->bundle, &p->link, &dl->fsmp); 558 if (p->link.lcp.fsm.state <= ST_CLOSED) { 607 p->link.lcp.fsm.bundle = dl->bundle; 608 p->link.lcp.fsm.link = &p->link; 609 memset(&p->link.lcp.fsm.FsmTimer, '\0', sizeof p->link.lcp.fsm.FsmTimer); 610 memset(&p->link.lcp.fsm.OpenTimer, '\0', sizeof p->link.lcp [all...] |
H A D | command.c | 73 #include "lcp.h" 266 Concatinate(arg->cx->physical->link.lcp.cfg.ident, 267 sizeof arg->cx->physical->link.lcp.cfg.ident, 279 return lcp_SendIdentification(&arg->cx->physical->link.lcp) ? 0 : 1; 855 "Close an FSM", "close [lcp|ccp]", NULL}, 867 "Generate a down event", "down [ccp|lcp]", NULL}, 885 "Open an FSM", "open! [lcp|ccp|ipcp]", (void *)1}, 944 if (!arg->cx->physical->link.lcp.fsm.StoppedTimer.load) 948 arg->cx->physical->link.lcp.fsm.StoppedTimer.load / SECTICKS); 1002 {"lcp", NUL [all...] |
H A D | mp.c | 68 #include "lcp.h" 284 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL); 299 struct lcp *lcp = &dl->physical->link.lcp; local 313 if (mp->local_mrru != lcp->want_mrru || 314 mp->peer_mrru != lcp->his_mrru || 315 mp->local_is12bit != lcp->want_shortseq || 316 mp->peer_is12bit != lcp->his_shortseq) { 325 mp->local_mrru = lcp [all...] |
H A D | mppe.c | 50 #include "lcp.h" 447 struct lcp *lcp = &fp->link->lcp; local 448 ok = (lcp->want_auth == PROTO_CHAP && lcp->want_authtype == 0x81) || 449 (lcp->his_auth == PROTO_CHAP && lcp->his_authtype == 0x81);
|
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 \
|
/freebsd-9.3-release/sys/net/ |
H A D | if_spppsubr.c | 95 * being one of "lcp", "ipcp", "cisco", "chap", "pap", etc. 395 static const struct cp lcp = { variable in typeref:struct:cp 396 PPP_LCP, IDX_LCP, CP_LCP, "lcp", 448 &lcp, /* IDX_LCP */ 581 sppp_cp_input(&lcp, sp, m); 836 lcp.Open(sp); 1256 lcp.Close(sp); 1267 lcp.Close(sp); 1271 lcp.Open(sp); 1288 if (ifr->ifr_mtu < 128 || ifr->ifr_mtu > sp->lcp [all...] |
H A D | if_sppp.h | 108 struct slcp lcp; /* LCP params */ member in struct:sppp_parms 162 struct slcp lcp; /* LCP params */ member in struct:sppp
|
/freebsd-9.3-release/usr.bin/tftp/ |
H A D | main.c | 441 char *lcp; local 448 lcp = argv[argc - 1]; 449 targ = rindex(lcp, ':'); 451 if (lcp[0] == '[' && lcp[strlen(lcp) - 1] == ']') { 452 lcp[strlen(lcp) - 1] = '\0'; 453 lcp++; 455 setpeer0(lcp, NUL 547 char *lcp; local [all...] |
/freebsd-9.3-release/sys/geom/multipath/ |
H A D | g_multipath.c | 123 struct g_consumer *lcp; local 130 LIST_FOREACH(lcp, &gp->consumer, consumer) { 131 if (lcp->provider == NULL || 132 (lcp->index & (MP_LOST | MP_NEW))) 134 if (sc->sc_ndisks > 1 && lcp == cp) 138 sc->sc_name, lcp->provider->name); 139 lcp->index &= ~MP_FAIL; 145 LIST_FOREACH(lcp, &gp->consumer, consumer) { 146 if ((lcp->index & MP_BAD) == 0) { 147 sc->sc_active = lcp; 595 struct g_consumer *lcp, *first_good_cp = NULL; local [all...] |
/freebsd-9.3-release/sbin/spppcontrol/ |
H A D | spppcontrol.c | 161 else if (startswith("lcp-timeout=")) { 171 errx(EX_DATAERR, "bad lcp timeout value: %s", 173 spr.defs.lcp.timeout = to; 224 printf("\tlcp-timeout=%d ms\n", sp->defs.lcp.timeout);
|