Skip to content

Commit

Permalink
Merge pull request #33 from danthegoodman/arp-only
Browse files Browse the repository at this point in the history
Restrict pcap to only ARP packets
  • Loading branch information
hortinstein authored Jul 27, 2016
2 parents c79bffc + 67b7651 commit 40b0905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var int_array_to_hex = require('./helpers.js').int_array_to_hex;

var create_session = function (arp_interface) {
try {
var session = pcap.createSession(arp_interface);
var session = pcap.createSession(arp_interface, 'arp');
} catch (err) {
console.error(err);
console.error("Failed to create pcap session: couldn't find devices to listen on.\n" + "Try running with elevated privileges via 'sudo'");
Expand Down

0 comments on commit 40b0905

Please sign in to comment.