Lines Matching refs:c

2 * ppp.c - Network Point to Point Protocol program file.
4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
5 * portions Copyright (c) 1997 by Global Election Systems Inc.
39 * Copyright (c) 1994 The Australian National University.
66 * Copyright (c) 1989 Carnegie Mellon University.
158 #define ESCAPE_P(accm, c) ((accm)[(c) >> 3] & pppACCMMask[c & 0x07])
706 int c;
709 if((c = sio_write(pc->fd, b->payload, b->len)) != b->len) {
711 ("PPP nPut: incomplete sio_write(fd:%"SZT_F", len:%d, c: 0x%"X8_F") c = %d\n", (size_t)pc->fd, b->len, c, c));
733 pppAppend(u_char c, struct pbuf *nb, ext_accm *outACCM)
752 if (outACCM && ESCAPE_P(*outACCM, c)) {
754 *((u_char*)nb->payload + nb->len++) = c ^ PPP_TRANS;
756 *((u_char*)nb->payload + nb->len++) = c;
818 u_char c;
904 c = (protocol >> 8) & 0xFF;
905 fcsOut = PPP_FCS(fcsOut, c);
906 tailMB = pppAppend(c, tailMB, &pc->outACCM);
908 c = protocol & 0xFF;
909 fcsOut = PPP_FCS(fcsOut, c);
910 tailMB = pppAppend(c, tailMB, &pc->outACCM);
920 c = *sPtr++;
923 fcsOut = PPP_FCS(fcsOut, c);
926 tailMB = pppAppend(c, tailMB, &pc->outACCM);
931 c = ~fcsOut & 0xFF;
932 tailMB = pppAppend(c, tailMB, &pc->outACCM);
933 c = (~fcsOut >> 8) & 0xFF;
934 tailMB = pppAppend(c, tailMB, &pc->outACCM);
1077 u_char c;
1109 c = *s++;
1112 fcsOut = PPP_FCS(fcsOut, c);
1115 tailMB = pppAppend(c, tailMB, &pc->outACCM);
1119 c = ~fcsOut & 0xFF;
1120 tailMB = pppAppend(c, tailMB, &pc->outACCM);
1121 c = (~fcsOut >> 8) & 0xFF;
1122 tailMB = pppAppend(c, tailMB, &pc->outACCM);