Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #414 from peugnezb/correctifs
Bug fixes to gencode.c/gencode.h and pcap-linux.c If tp version is not valid, we don't do anything in the switch, and thus don't set req.tp_frame_nr, but we later use it. (This "shouldn't happen", as we should never use a TPACKET_ version we don't handle, but this catches that case in case it can happen.) The variable "len" needs to be initialized to the buffer size "&bpf_extensions" - it's a value-result parameter in getsockopt(), which should be set to the size of the buffer being passed. Make the mask length parameter in some gencode.c routines unsigned. Close a socket file descriptor in the right place.
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters