Home | History | Annotate | Download | only in libpcap

Lines Matching defs:header

94 	struct rpcap_header header;	/* structure that keeps the general header of the rpcap protocol */
399 rpcap_createhdr(&header, RPCAP_MSG_FINDALLIF_REQ, 0, 0);
401 if (sock_send(sockctrl, (char *)&header, sizeof(struct rpcap_header), errbuf, PCAP_ERRBUF_SIZE) == -1)
404 if (sock_recv(sockctrl, (char *)&header, sizeof(struct rpcap_header), SOCK_RECEIVEALL_YES, errbuf, PCAP_ERRBUF_SIZE) == -1)
408 retval = rpcap_checkmsg(errbuf, sockctrl, &header, RPCAP_MSG_FINDALLIF_REPLY, RPCAP_MSG_ERROR, 0);
436 nif = ntohs(header.value);
623 if (totread != ntohl(header.plen))
625 if (sock_discard(sockctrl, ntohl(header.plen) - totread, errbuf, PCAP_ERRBUF_SIZE) == 1)
656 if (totread != ntohl(header.plen))
658 if (sock_discard(sockctrl, ntohl(header.plen) - totread, NULL, 0) == 1)
1163 struct rpcap_header header;
1166 rpcap_createhdr(&header, RPCAP_MSG_CLOSE, 0, 0);
1169 sock_send(temp->sockctrl, (char *)&header, sizeof(struct rpcap_header), errbuf, PCAP_ERRBUF_SIZE);