Lines Matching refs:us
82 static void cbcp_recvreq __P((cbcp_state *us, char *pckt, int len));
83 static void cbcp_resp __P((cbcp_state *us));
84 static void cbcp_up __P((cbcp_state *us));
85 static void cbcp_recvack __P((cbcp_state *us, char *pckt, int len));
86 static void cbcp_send __P((cbcp_state *us, u_char code, u_char *buf, int len));
108 cbcp_state *us;
110 us = &cbcp[iface];
111 memset(us, 0, sizeof(cbcp_state));
112 us->us_unit = iface;
113 us->us_type |= (1 << CB_CONF_NO);
121 cbcp_state *us = &cbcp[iface];
124 dbglog("want: %d", us->us_type);
126 if (us->us_type == CB_CONF_USER)
127 dbglog("phone no: %s", us->us_number);
148 cbcp_state *us = &cbcp[unit];
166 us->us_id = id;
167 cbcp_recvreq(us, inp, len);
175 if (id != us->us_id)
177 us->us_id, id);
179 cbcp_recvack(us, inp, len);
283 cbcp_recvreq(us, pckt, pcktlen)
284 cbcp_state *us;
303 us->us_allowed |= (1 << type);
331 cbcp_resp(us);
335 cbcp_resp(us)
336 cbcp_state *us;
343 cb_type = us->us_allowed & us->us_type;
350 len = 3 + 1 + strlen(us->us_number) + 1;
354 BCOPY(us->us_number, bufp, strlen(us->us_number) + 1);
355 cbcp_send(us, CBCP_RESP, buf, len);
365 cbcp_send(us, CBCP_RESP, buf, len);
375 cbcp_send(us, CBCP_RESP, buf, len);
382 cbcp_send(us, code, buf, len)
383 cbcp_state *us;
398 PUTCHAR(us->us_id, outp);
404 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
408 cbcp_recvack(us, pckt, len)
409 cbcp_state *us;
435 cbcp_up(us);
440 cbcp_up(us)
441 cbcp_state *us;