From 67b7651493b94792a33261ec672ce94deec069c4 Mon Sep 17 00:00:00 2001 From: Danny Kirchmeier Date: Thu, 14 Jul 2016 13:14:40 -0500 Subject: [PATCH] Restrict pcap to only ARP packets --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0e56076..1183abe 100644 --- a/index.js +++ b/index.js @@ -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'");