Skip to content

Commit

Permalink
User-level ToDevice: Don't balk when reading from a PCAP file.
Browse files Browse the repository at this point in the history
Jaeyong Yoo reported this bug and suggested a (slightly different)
fix.
  • Loading branch information
kohler committed Sep 21, 2011
1 parent e3e9daf commit 0d19b20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elements/userlevel/todevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ ToDevice::initialize(ErrorHandler *errh)
return -1;
_my_pcap = true;
}
_fd = pcap_fileno(_pcap);
/* _my_fd = false by default */
}
#endif

Expand Down

0 comments on commit 0d19b20

Please sign in to comment.