Home | History | Annotate | Download | only in pppd

Lines Matching defs:us

103 static void cbcp_recvreq (cbcp_state *us, u_char *pckt, int len);
104 static void cbcp_resp (cbcp_state *us);
105 static void cbcp_up (cbcp_state *us);
106 static void cbcp_recvack (cbcp_state *us, u_char *pckt, int len);
107 static void cbcp_send (cbcp_state *us, int code, u_char *buf, int len);
127 cbcp_state *us;
129 us = &cbcp[iface];
130 memset(us, 0, sizeof(cbcp_state));
131 us->us_unit = iface;
132 us->us_type |= (1 << CB_CONF_NO);
139 cbcp_state *us = &cbcp[iface];
142 dbglog("want: %d", us->us_type);
144 if (us->us_type == CB_CONF_USER)
145 dbglog("phone no: %s", us->us_number);
162 cbcp_state *us = &cbcp[unit];
186 us->us_id = id;
187 cbcp_recvreq(us, inp, len);
196 if (debug && id != us->us_id)
198 us->us_id, id);
200 cbcp_recvack(us, inp, len);
302 cbcp_recvreq(cbcp_state *us, u_char *pckt, int pcktlen)
326 us->us_allowed |= (1 << type);
360 cbcp_resp(us);
364 cbcp_resp(cbcp_state *us)
372 cb_type = us->us_allowed & us->us_type;
377 lcp_down(us->us_unit);
382 slen = strlen(us->us_number);
392 BCOPY(us->us_number, bufp, slen + 1);
393 cbcp_send(us, CBCP_RESP, buf, len);
403 cbcp_send(us, CBCP_RESP, buf, len);
412 cbcp_send(us, CBCP_RESP, buf, len);
413 start_networks(us->us_unit);
419 cbcp_send(cbcp_state *us, int code, u_char *buf, int len)
431 PUTCHAR(us->us_id, outp);
437 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
441 cbcp_recvack(cbcp_state *us, u_char *pckt, int len)
468 cbcp_up(us);
477 cbcp_up(cbcp_state *us)