Lines Matching refs:us
97 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len));
98 static void cbcp_resp __P((cbcp_state *us));
99 static void cbcp_up __P((cbcp_state *us));
100 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len));
101 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len));
123 cbcp_state *us;
125 us = &cbcp[iface];
126 memset(us, 0, sizeof(cbcp_state));
127 us->us_unit = iface;
128 us->us_type |= (1 << CB_CONF_NO);
136 cbcp_state *us = &cbcp[iface];
139 dbglog("want: %d", us->us_type);
141 if (us->us_type == CB_CONF_USER)
142 dbglog("phone no: %s", us->us_number);
163 cbcp_state *us = &cbcp[unit];
187 us->us_id = id;
188 cbcp_recvreq(us, inp, len);
197 if (debug && id != us->us_id)
199 us->us_id, id);
201 cbcp_recvack(us, inp, len);
305 cbcp_recvreq(us, pckt, pcktlen)
306 cbcp_state *us;
327 us->us_allowed |= (1 << type);
360 cbcp_resp(us);
364 cbcp_resp(us)
365 cbcp_state *us;
373 cb_type = us->us_allowed & us->us_type;
378 lcp_down(us->us_unit);
383 slen = strlen(us->us_number);
393 BCOPY(us->us_number, bufp, slen + 1);
394 cbcp_send(us, CBCP_RESP, buf, len);
404 cbcp_send(us, CBCP_RESP, buf, len);
413 cbcp_send(us, CBCP_RESP, buf, len);
414 start_networks(us->us_unit);
420 cbcp_send(us, code, buf, len)
421 cbcp_state *us;
436 PUTCHAR(us->us_id, outp);
442 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
446 cbcp_recvack(us, pckt, len)
447 cbcp_state *us;
473 cbcp_up(us);
482 cbcp_up(us)
483 cbcp_state *us;