Lines Matching defs:ptc
266 struct ppptun_control *ptc;
268 if (ctrllen != sizeof (*ptc)) {
273 ptc = (struct ppptun_control *)ctrlbuf;
276 switch (ptc->ptc_action) {
278 logdbg("test reply for discriminator %X", ptc->ptc_discrim);
286 ptc->ptc_rsessid, ptc->ptc_name);
288 ptc->ptc_rsessid);
289 ptc->ptc_action = PTCA_CONTROL;
290 ctrl.len = sizeof (*ptc);
291 ctrl.buf = (caddr_t)ptc;
302 logdbg("%s unplumbed", ptc->ptc_name);
306 logwarn("bad control data on %s for session %u", ptc->ptc_name,
307 ptc->ptc_rsessid);
311 logdbg("unexpected code %d from driver", ptc->ptc_action);
320 ehost(&ptc->ptc_address), ptc->ptc_name);
331 poe_codename(poep->poep_code), ehost(&ptc->ptc_address));
334 logdbg("Recv from %s/%s: %s", ehost(&ptc->ptc_address), ptc->ptc_name,
338 retv = locate_service(poep, datalen, ptc->ptc_name, &ptc->ptc_address,
361 (void) strncpy(ptn.ptn_name, ptc->ptc_name, sizeof (ptn.ptn_name));
368 if (launch && launch_service(tunfd, poep, srvp, ptc))
372 ctrl.len = sizeof (*ptc);
373 ctrl.buf = (caddr_t)ptc;
377 logerr("putmsg %s: %s", ptc->ptc_name, mystrerror(errno));
380 logdbg("Send to %s/%s: %s", ehost(&ptc->ptc_address),
381 ptc->ptc_name, poe_codename(poep->poep_code));