Skip to content

Commit

Permalink
PF_RING fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdavidgraham committed Sep 14, 2013
1 parent 19a91b2 commit bfd1d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rawsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int rawsock_recv_packet(
&hdr,
0 /* return immediately */
);
if (err == PF_RING_ERROR_NO_PKT_AVAILABLE) {
if (err == PF_RING_ERROR_NO_PKT_AVAILABLE || hdr.caplen == 0) {
PFRING.poll(adapter->ring, 1);
if (control_c_pressed)
return 1;
Expand Down

0 comments on commit bfd1d5d

Please sign in to comment.