Permalink
Browse files

Set pcap to filter by source port

As an optimization, reduce the work the vm has to do by filtering on
source port.
  • Loading branch information...
1 parent 4cd2b10 commit 6cccb7ad53daad443b83221fc72419fe4ad929cf @msantos committed Sep 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/perv.erl
View
2 src/perv.erl
@@ -44,7 +44,7 @@
c % monitored connections
}).
--define(EPCAP_DEFAULT_ARG, [{filter, "tcp and port 80"},
+-define(EPCAP_DEFAULT_ARG, [{filter, "tcp and src port 80"},
{interface, "wlan0"},
{promiscuous, true},
{chroot, "priv/tmp"}]).

0 comments on commit 6cccb7a

Please sign in to comment.