Searched refs:startcapreq (Results 1 – 2 of 2) sorted by relevance
/external/libpcap/ |
D | pcap-rpcap.c | 1032 struct rpcap_startcapreq *startcapreq; /* start capture request message */ in pcap_startcapture_remote() local 1145 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote() 1151 memset(startcapreq, 0, sizeof(struct rpcap_startcapreq)); in pcap_startcapture_remote() 1155 startcapreq->read_timeout = htonl(fp->opt.timeout); in pcap_startcapture_remote() 1160 sscanf(portdata, "%d", (int *)&(startcapreq->portdata)); /* cast to avoid a compiler warning */ in pcap_startcapture_remote() 1161 startcapreq->portdata = htons(startcapreq->portdata); in pcap_startcapture_remote() 1164 startcapreq->snaplen = htonl(fp->snapshot); in pcap_startcapture_remote() 1165 startcapreq->flags = 0; in pcap_startcapture_remote() 1168 startcapreq->flags |= RPCAP_STARTCAPREQ_FLAG_PROMISC; in pcap_startcapture_remote() 1170 startcapreq->flags |= RPCAP_STARTCAPREQ_FLAG_DGRAM; in pcap_startcapture_remote() [all …]
|
/external/libpcap/rpcapd/ |
D | daemon.c | 1569 struct rpcap_startcapreq startcapreq; // start capture request message in daemon_msg_startcap_req() local 1575 status = rpcapd_recv(pars->sockctrl_in, (char *) &startcapreq, in daemon_msg_startcap_req() 1586 startcapreq.flags = ntohs(startcapreq.flags); in daemon_msg_startcap_req() 1598 ntohl(startcapreq.snaplen), in daemon_msg_startcap_req() 1599 …(startcapreq.flags & RPCAP_STARTCAPREQ_FLAG_PROMISC) ? 1 : 0 /* local device, other flags not need… in daemon_msg_startcap_req() 1600 ntohl(startcapreq.read_timeout), in daemon_msg_startcap_req() 1615 …serveropen_dp = (startcapreq.flags & RPCAP_STARTCAPREQ_FLAG_SERVEROPEN) || (startcapreq.flags & RP… in daemon_msg_startcap_req() 1634 hints.ai_socktype = (startcapreq.flags & RPCAP_STARTCAPREQ_FLAG_DGRAM) ? SOCK_DGRAM : SOCK_STREAM; in daemon_msg_startcap_req() 1640 pcap_snprintf(portdata, sizeof portdata, "%d", ntohs(startcapreq.portdata)); in daemon_msg_startcap_req()
|