"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pcap-bt-linux.c" between
libpcap-1.10.0.tar.gz and libpcap-1.10.1.tar.gz

About: libpcap is a packet filter library used by tools like tcpdump.

pcap-bt-linux.c  (libpcap-1.10.0):pcap-bt-linux.c  (libpcap-1.10.1)
skipping to change at line 343 skipping to change at line 343
do { do {
ret = recvmsg(handle->fd, &msg, 0); ret = recvmsg(handle->fd, &msg, 0);
if (handle->break_loop) if (handle->break_loop)
{ {
handle->break_loop = 0; handle->break_loop = 0;
return -2; return -2;
} }
} while ((ret == -1) && (errno == EINTR)); } while ((ret == -1) && (errno == EINTR));
if (ret < 0) { if (ret < 0) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
/* Nonblocking mode, no data */
return 0;
}
pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE,
errno, "Can't receive packet"); errno, "Can't receive packet");
return -1; return -1;
} }
pkth.caplen = (bpf_u_int32)ret; pkth.caplen = (bpf_u_int32)ret;
/* get direction and timestamp*/ /* get direction and timestamp*/
cmsg = CMSG_FIRSTHDR(&msg); cmsg = CMSG_FIRSTHDR(&msg);
while (cmsg) { while (cmsg) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)