Skip to content
Snippets Groups Projects
Commit a3292811 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Bugfix: Let packet_socket_receive honor the direction when using libpcap.


When using libpcap, the function packet_socket_receive was ignoring the
direction. If there were inbound packets sniffed the following try to
read the packet from the tun descriptor blocked.
This patch makes packet_socket_receive aware of the direction and therefore
the libpcap implementation has the same functionality as the Linux one.
It just uses two pcap handles, one for each direction.

Tested on FreeBSD.

Signed-off-by: default avatarMichael Tuexen <tuexen@fh-muenster.de>
parent 65e035f8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment