Home
last modified time | relevance | path

Searched refs:ccp (Results 1 – 25 of 40) sorted by relevance

12

/mirbsd/src/usr.sbin/ppp/ppp/
Dccp.c163 struct ccp *ccp; in ccp_ReportStatus() local
167 ccp = &l->ccp; in ccp_ReportStatus()
169 prompt_Printf(arg->prompt, "%s: %s [%s]\n", l->name, ccp->fsm.name, in ccp_ReportStatus()
170 State2Nam(ccp->fsm.state)); in ccp_ReportStatus()
171 if (ccp->fsm.state == ST_OPENED) { in ccp_ReportStatus()
173 protoname(ccp->my_proto), protoname(ccp->his_proto)); in ccp_ReportStatus()
175 ccp->uncompout, ccp->compout, in ccp_ReportStatus()
176 ccp->compin, ccp->uncompin); in ccp_ReportStatus()
179 if (ccp->in.algorithm != -1) in ccp_ReportStatus()
181 (*algorithm[ccp->in.algorithm]->Disp)(&ccp->in.opt)); in ccp_ReportStatus()
[all …]
Dccp.h91 struct ccp { struct
121 #define fsm2ccp(fp) (fp->proto == PROTO_CCP ? (struct ccp *)fp : NULL) argument
134 struct mbuf *(*Read)(void *, struct ccp *, u_short *, struct mbuf *);
135 void (*DictSetup)(void *, struct ccp *, u_short, struct mbuf *);
145 struct mbuf *(*Write)(void *, struct ccp *, struct link *, int, u_short *,
150 extern void ccp_Init(struct ccp *, struct bundle *, struct link *,
152 extern void ccp_Setup(struct ccp *);
153 extern int ccp_Required(struct ccp *);
154 extern int ccp_MTUOverhead(struct ccp *);
159 extern u_short ccp_Proto(struct ccp *);
[all …]
Dpred.c174 Pred1Output(void *v, struct ccp *ccp, struct link *l, int pri, u_short *proto, in Pred1Output() argument
198 ccp->uncompout += orglen; in Pred1Output()
202 ccp->compout += len; in Pred1Output()
206 ccp->compout += orglen; in Pred1Output()
212 *proto = ccp_Proto(ccp); in Pred1Output()
217 Pred1Input(void *v, struct ccp *ccp, u_short *proto, struct mbuf *bp) in Pred1Input() argument
234 ccp->uncompin += len & 0x7fff; in Pred1Input()
237 ccp->compin += olen; in Pred1Input()
241 fsm_Reopen(&ccp->fsm); in Pred1Input()
250 fsm_Reopen(&ccp->fsm); in Pred1Input()
[all …]
Ddeflate.c69 DeflateOutput(void *v, struct ccp *ccp, struct link *l, int pri, u_short *proto, in DeflateOutput() argument
156 ccp->uncompout += ilen; in DeflateOutput()
157 ccp->compout += ilen; /* We measure this stuff too */ in DeflateOutput()
177 ccp->uncompout += ilen; in DeflateOutput()
178 ccp->compout += olen; in DeflateOutput()
183 *proto = ccp_Proto(ccp); in DeflateOutput()
199 DeflateInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mi) in DeflateInput() argument
227 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
264 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
306 ccp_SendResetReq(&ccp->fsm); in DeflateInput()
[all …]
Dmppe.c160 MPPEOutput(void *v, struct ccp *ccp, struct link *l, int pri, u_short *proto, in MPPEOutput() argument
175 ccp->compout += ilen; in MPPEOutput()
176 ccp->uncompout += ilen; in MPPEOutput()
225 *proto = ccp_Proto(ccp); in MPPEOutput()
227 ccp->uncompout += ilen; in MPPEOutput()
228 ccp->compout += len; in MPPEOutput()
243 MPPEInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mp) in MPPEInput() argument
252 ccp->compin += ilen; in MPPEInput()
317 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput()
332 fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, in MPPEInput()
[all …]
Dcommand.c919 if (!arg->cx->physical->link.ccp.fsm.StoppedTimer.load) in ShowStopped()
923 arg->cx->physical->link.ccp.fsm.StoppedTimer.load / SECTICKS); in ShowStopped()
1271 fp = &command_ChooseLink(arg)->ccp.fsm; in OpenCommand()
1313 fp = &command_ChooseLink(arg)->ccp.fsm; in CloseCommand()
1344 struct fsm *fp = arg->cx ? &arg->cx->physical->link.ccp.fsm : in DownCommand()
1345 &arg->bundle->ncp.mp.link.ccp.fsm; in DownCommand()
1392 l->ccp.fsm.StoppedTimer.load = 0; in SetStoppedTimeout()
1397 l->ccp.fsm.StoppedTimer.load = atoi(arg->argv[arg->argn+1]) * SECTICKS; in SetStoppedTimeout()
1724 l->ccp.cfg.deflate.out.winsize = atoi(arg->argv[arg->argn]); in SetVariable()
1725 if (l->ccp.cfg.deflate.out.winsize < 8 || in SetVariable()
[all …]
Dlink.h55 struct ccp ccp; /* Our compression FSM */ member
Dphysical.c227 ccp_Init(&p->link.ccp, dl->bundle, &p->link, &dl->fsmp); in physical_Create()
627 p->link.ccp.fsm.bundle = dl->bundle; in iov2physical()
628 p->link.ccp.fsm.link = &p->link; in iov2physical()
630 memset(&p->link.ccp.fsm.FsmTimer, '\0', sizeof p->link.ccp.fsm.FsmTimer); in iov2physical()
631 memset(&p->link.ccp.fsm.OpenTimer, '\0', sizeof p->link.ccp.fsm.OpenTimer); in iov2physical()
632 memset(&p->link.ccp.fsm.StoppedTimer, '\0', in iov2physical()
633 sizeof p->link.ccp.fsm.StoppedTimer); in iov2physical()
634 p->link.ccp.fsm.parent = &dl->fsmp; in iov2physical()
635 ccp_SetupCallbacks(&p->link.ccp); in iov2physical()
699 timer_Stop(&p->link.ccp.fsm.FsmTimer); in physical2iov()
[all …]
Ddatalink.c244 ccp_Setup(&dl->physical->link.ccp); in datalink_LoginDone()
595 (*dl->parent->LayerUp)(dl->parent->object, &dl->physical->link.ccp.fsm); in datalink_LayerUp()
616 int ccpok = ccp_SetOpenMode(&dl->physical->link.ccp); in datalink_NCPUp()
631 dl->physical->link.ccp.fsm.open_mode = OPEN_PASSIVE; /* override */ in datalink_NCPUp()
651 fsm_Up(&dl->physical->link.ccp.fsm); in datalink_NCPUp()
652 fsm_Open(&dl->physical->link.ccp.fsm); in datalink_NCPUp()
760 fsm2initial(&dl->physical->link.ccp.fsm); in datalink_LayerDown()
921 memcpy(&dl->physical->link.ccp.cfg, &odl->physical->link.ccp.cfg, in datalink_Clone()
922 sizeof dl->physical->link.ccp.cfg); in datalink_Clone()
1011 fsm2initial(&dl->physical->link.ccp.fsm); in datalink_Close()
[all …]
Dmp.c285 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp); in mp_Init()
367 if (ccp_SetOpenMode(&mp->link.ccp)) { in mp_Up()
368 fsm_Up(&mp->link.ccp.fsm); in mp_Up()
369 fsm_Open(&mp->link.ccp.fsm); in mp_Up()
393 fsm2initial(&mp->link.ccp.fsm); in mp_Down()
657 if (l->ccp.fsm.state != ST_OPENED && ccp_Required(&l->ccp)) { in mp_Output()
DMakefile7 acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chap_ms.c \
/mirbsd/src/bin/pax/
Doptions.c1871 const char *ccp; in guess_compress_program() local
1876 if (arcname == NULL || (ccp = strrchr(arcname, '.')) == NULL) { in guess_compress_program()
1880 ++ccp; in guess_compress_program()
1883 if (!strcmp(ccp, "gz") || in guess_compress_program()
1884 !strcmp(ccp, "tgz") || in guess_compress_program()
1885 !strcmp(ccp, "cgz") || in guess_compress_program()
1886 !strcmp(ccp, "ngz") || in guess_compress_program()
1887 !strcmp(ccp, "taz")) { in guess_compress_program()
1893 if (!strcmp(ccp, "xz") || in guess_compress_program()
1894 !strcmp(ccp, "txz") || in guess_compress_program()
[all …]
/mirbsd/src/usr.bin/vi/ex/
Dex_cscope.c113 CC const *ccp; local
140 if ((ccp = lookup_ccmd(cmd)) == NULL) {
146 return (ccp->function(sp, cmdp, p));
825 CC const *ccp; local
828 if ((ccp = lookup_ccmd(cmd)) == NULL) {
834 "Command: %s (%s)\n", ccp->name, ccp->help_msg);
835 ex_printf(sp, " Usage: %s\n", ccp->usage_msg);
841 for (ccp = cscope_cmds; ccp->name != NULL; ++ccp)
842 ex_printf(sp, " %*s: %s\n", 5, ccp->name, ccp->help_msg);
1021 CC const *ccp; local
[all …]
/mirbsd/src/bin/mksh/
Dmain.c189 const char *ccp, **wp; in main_init() local
219 ccp = kshname; in main_init()
221 while ((i = ccp[argi++])) { in main_init()
223 ccp += argi; in main_init()
226 if (*ccp == '-') in main_init()
227 ++ccp; in main_init()
230 if (!*ccp) in main_init()
231 ccp = empty_argv[0]; in main_init()
255 if (!strcmp(ccp, builtin(mkshbuiltins[i].name, in main_init()
267 if (!strcmp(ccp, "sh")) { in main_init()
[all …]
Dexec.c61 const char *s, *ccp; in execute() local
95 (ccp = skip_wdvarname(t->vars[0], true)) != t->vars[0] && in execute()
97 ccp[0] == CHAR && ccp[1] == '=' && ccp[2] == EOS && in execute()
101 size_t n = ccp - t->vars[0] + 2, z; in execute()
357 if (!(ccp = do_selectargs(ap, is_first))) { in execute()
362 setstr(global(t->str), ccp, KSH_UNWIND_ERROR); in execute()
401 ccp = evalstr(t->str, DOTILDE); in execute()
405 gmatchx(ccp, s, false))) { in execute()
641 const char *ccp; in comexec() local
643 ccp = skip_varname(cp, true); in comexec()
[all …]
Dvar.c779 const char *qval, *ccp; in typeset() local
791 ccp = skip_varname(qval, false); in typeset()
792 if (ccp == qval) { in typeset()
808 len = (*ccp == '[') ? array_ref_len(ccp) : 0; in typeset()
809 if (ccp[len]) { in typeset()
1472 const char *ccp = var; in set_array() local
1482 ccp = cp; in set_array()
1484 vp = global(ccp); in set_array()
1488 errorfx(2, "read-only: %s", ccp); in set_array()
1511 while ((ccp = vals[i])) { in set_array()
[all …]
Dfuncs.c1814 const char *ccp; in c_read() local
1850 if ((fd = coproc_getfd(R_OK, &ccp)) < 0) { in c_read()
1851 bi_errorf("%s: %s", "-p", ccp); in c_read()
1874 else if ((fd = check_fd(builtin_opt.optarg, R_OK, &ccp)) < 0) { in c_read()
1875 bi_errorf("%s: %s: %s", "-u", builtin_opt.optarg, ccp); in c_read()
1891 if ((ccp = cstrchr(*wp, '?')) != NULL) { in c_read()
1893 allocd[ccp - *wp] = '\0'; in c_read()
1902 shf_puts(ccp + 1, shl_out); in c_read()
2056 ccp = cp = Xclose(xs, xp); in c_read()
2076 while (bytesread && is_ifsws(*ccp)) { in c_read()
[all …]
/mirbsd/src/libexec/tftpd/
Dtftpd.c358 char *filename, *mode = NULL, *option, *ccp; in tftp() local
396 for (i = 2, ccp = cp; i > 0; ccp++) { in tftp()
397 if (ccp >= buf + size) { in tftp()
406 } else if (*ccp == '\0') in tftp()
417 cp = ccp-1; in tftp()
/mirbsd/src/gnu/usr.bin/binutils/gas/config/
Dm68k-parse.y689 m68k_reg_parse (ccp) in m68k_reg_parse() argument
690 register char **ccp; in m68k_reg_parse()
692 char *start = *ccp;
724 *ccp = p;
741 *ccp = p;
/mirbsd/src/gnu/usr.bin/lynx/src/
DLYMain.c1006 const char *ccp; in main() local
1095 if (((ccp = LYGetEnv("SHELL")) != NULL) in main()
1096 && (strstr(LYPathLeaf(ccp), "sh") != NULL)) in main()
1148 if ((ccp = LYGetEnv("LYNX_TRACE_FILE")) == 0) in main()
1149 ccp = FNAME_LYNX_TRACE; in main()
1152 LYAddPathToHome(LYTraceLogPath, (size_t) LY_MAXPATH, ccp); in main()
1237 if ((ccp = LYGetEnv("LYNX_TEMP_SPACE")) != NULL) in main()
1238 StrAllocCopy(lynx_temp_space, ccp); in main()
1240 else if ((ccp = LYGetEnv("TMPDIR")) != NULL) in main()
1241 StrAllocCopy(lynx_temp_space, ccp); in main()
[all …]
/mirbsd/src/distrib/special/pppd/
DMakefile6 SRCS= auth.c cbcp.c ccp.c chap.c chap_ms.c demand.c fsm.c ipcp.c \
/mirbsd/src/gnu/usr.bin/lynx/WWW/Library/Implementation/
DHTNews.c1043 const char *ccp; in read_article() local
1314 (ccp = HTAnchor_messageID(thisanchor)) && *ccp) { in read_article()
1316 if (strchr(ccp, '<') || strchr(ccp, '&') || in read_article()
1317 strchr(ccp, ' ') || strchr(ccp, ':') || in read_article()
1318 strchr(ccp, '/') || strchr(ccp, '%') || in read_article()
1319 strchr(ccp, ';')) { in read_article()
1320 char *cp1 = HTEscape(ccp, URL_XPALPHAS); in read_article()
1325 StrAllocCat(href, ccp); in read_article()
/mirbsd/src/usr.sbin/pppd/
DMakefile7 SRCS= auth.c cbcp.c ccp.c chap.c chap_ms.c demand.c fsm.c ipcp.c \
/mirbsd/src/usr.sbin/inetd/
Dinetd.c1286 char *cp, *ccp; in getconfigent() local
1296 l = strtol(cp, &ccp, 0); in getconfigent()
1297 if (ccp == cp || l < 0 || l > INT_MAX) { in getconfigent()
1304 if (*ccp == '-') { in getconfigent()
1305 cp = ccp + 1; in getconfigent()
1306 l = strtol(cp, &ccp, 0); in getconfigent()
1307 if (ccp == cp || l < 0 || l > INT_MAX || in getconfigent()
1308 l < sep->se_rpcversl || *ccp) in getconfigent()
1311 } else if (*ccp != '\0') in getconfigent()
/mirbsd/src/gnu/usr.bin/binutils/gas/
Dm68k-parse.c2104 m68k_reg_parse (ccp) in m68k_reg_parse() argument
2105 register char **ccp; in m68k_reg_parse()
2107 char *start = *ccp;
2139 *ccp = p;
2156 *ccp = p;

12