hortinstein / node-dash-button

A small module to emit events when an Amazon Dash Button is pressed
949 stars 94 forks source link

Restrict pcap to only ARP packets #33

Closed danthegoodman closed 7 years ago

danthegoodman commented 8 years ago

This fixes two problems:

  1. My logs were filling up with messages like: node_pcap: EthernetFrame() - Don't know how to decode ethertype 34958.
  2. According to the pcap documentation, not filtering can lead to dropped packets.
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 98.039% when pulling 67b7651493b94792a33261ec672ce94deec069c4 on danthegoodman:arp-only into c79bffc15764365336559763496c00c24ef8b1a7 on hortinstein:master.