Lines Matching refs:frame
61 char *frame;
92 frame = malloc(framemax);
93 if (frame == NULL)
94 novm("demand frame");
221 * Calls loop_frame when a complete frame has been accumulated.
246 if (loop_frame((unsigned char *)frame, framelen))
268 frame[framelen++] = c;
275 * loop_frame - given a frame obtained from the loopback,
277 * to transmit this frame later, put it on the pending queue.
285 loop_frame(frame, len)
286 unsigned char *frame;
291 /* dbglog("from loop: %P", frame, len); */
294 if ((PPP_PROTOCOL(frame) & 0x8000) != 0)
296 if (!active_packet(frame, len))
303 memcpy(pkt->data, frame, len);