-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The code to insert VLAN tags was assuming Ethernet packets; that's not the case, for example, if you're capturing on the "any" device, as the packet headers aren't Ethernet headers. Have a flag in the pcap structure to indicate whether to check for and add VLAN tags, and set it only if we're using PF_PACKET sockets, we're getting Ethernet headers, and, if we're using the memory-mapped capture mechanism, it's not version 1. This should fix SourceForge bug 3525828.
- Loading branch information
Showing
2 changed files
with
51 additions
and
22 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