Lines Matching refs:ctl
187 struct strbuf ctl = { in pcap_read_dlpi() local
219 ctl.buf = (char *)ctlbuf; in pcap_read_dlpi()
220 ctl.maxlen = MAXDLBUF; in pcap_read_dlpi()
221 ctl.len = 0; in pcap_read_dlpi()
222 if (getmsg(p->fd, &ctl, &data, &flags) < 0) { in pcap_read_dlpi()
1160 struct strbuf ctl; local
1163 ctl.maxlen = 0;
1164 ctl.len = len;
1165 ctl.buf = ptr;
1168 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) {
1180 struct strbuf ctl; local
1192 ctl.maxlen = MAXDLBUF;
1193 ctl.len = 0;
1194 ctl.buf = bufp;
1197 if (getmsg(fd, &ctl, (struct strbuf*)NULL, &flags) < 0) {
1203 dlp = MAKE_DL_PRIMITIVES(ctl.buf);
1251 if (ctl.len < size) {
1254 what, ctl.len, size);
1257 return (ctl.len);
1538 struct strbuf ctl, data; local
1555 ctl.maxlen = 0;
1556 ctl.len = dlen;
1557 ctl.buf = (void *)buf;
1563 return (putmsg(fd, &ctl, &data, 0));
1648 struct strbuf ctl; local
1658 ctl.maxlen = DL_HP_PPA_ACK_SIZE;
1659 ctl.len = 0;
1660 ctl.buf = (char *)buf;
1676 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1681 if (ctl.len == -1) {
1687 dlp = (dl_hp_ppa_ack_t *)ctl.buf;
1695 if ((size_t)ctl.len < DL_HP_PPA_ACK_SIZE) {
1698 ctl.len, (unsigned long)DL_HP_PPA_ACK_SIZE);
1708 ctl.maxlen = dlp->dl_length;
1709 ctl.len = 0;
1710 ctl.buf = (char *)ppa_data_buf;
1712 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1718 if (ctl.len == -1) {
1723 if ((u_int)ctl.len < dlp->dl_length) {
1726 ctl.len, (unsigned long)dlp->dl_length);