Home
last modified time | relevance | path

Searched refs:rpcap_header (Results 1 – 5 of 5) sorted by relevance

/external/libpcap/
Dpcap-rpcap.c159 static int rpcap_recv_msg_header(SOCKET sock, struct rpcap_header *header, char *errbuf);
160 static int rpcap_check_msg_ver(SOCKET sock, uint8 expected_ver, struct rpcap_header *header, char *…
161 static int rpcap_check_msg_type(SOCKET sock, uint8 request_type, struct rpcap_header *header, uint1…
162 static int rpcap_process_msg_header(SOCKET sock, uint8 ver, uint8 request_type, struct rpcap_header
375 struct rpcap_header *header; /* general header according to the RPCAP format */ in pcap_read_nocb_remote()
424 header = (struct rpcap_header *) p->buffer; in pcap_read_nocb_remote()
425 net_pkt_header = (struct rpcap_pkthdr *) ((char *)p->buffer + sizeof(struct rpcap_header)); in pcap_read_nocb_remote()
426 net_pkt_data = (u_char *)p->buffer + sizeof(struct rpcap_header) + sizeof(struct rpcap_pkthdr); in pcap_read_nocb_remote()
443 if ((size_t)msglen < sizeof(struct rpcap_header)) in pcap_read_nocb_remote()
453 if ((size_t)msglen < sizeof(struct rpcap_header) + plen) in pcap_read_nocb_remote()
[all …]
Drpcap-protocol.c92 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, RPCAP_MSG_ERROR, errcode, length); in rpcap_senderror()
94 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in rpcap_senderror()
135 rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint32 length) in rpcap_createhdr()
137 memset(header, 0, sizeof(struct rpcap_header)); in rpcap_createhdr()
Drpcap-protocol.h194 struct rpcap_header struct
446 extern void rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint3…
Dpcap-rpcap-int.h72 void rpcap_createhdr(struct rpcap_header *header, uint8 type, uint16 value, uint32 length);
/external/libpcap/rpcapd/
Ddaemon.c133 static int rpcapd_recv_msg_header(SOCKET sock, struct rpcap_header *headerp);
144 struct rpcap_header header; // RPCAP message general header in daemon_serviceloop()
971 struct rpcap_header header; // RPCAP message general header in daemon_msg_auth_req()
1093 …if (sock_send(pars->sockctrl_out, (char *) &header, sizeof (struct rpcap_header), errbuf, PCAP_ERR… in daemon_msg_auth_req()
1321 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, in daemon_msg_findallif_req()
1326 rpcap_createhdr((struct rpcap_header *) sendbuf, pars->protocol_version, in daemon_msg_findallif_req()
1495 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in daemon_msg_open_req()
1499 rpcap_createhdr((struct rpcap_header *) sendbuf, pars->protocol_version, in daemon_msg_open_req()
1706 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in daemon_msg_startcap_req()
1710 rpcap_createhdr((struct rpcap_header *) sendbuf, pars->protocol_version, in daemon_msg_startcap_req()
[all …]