import pcap from 'pcap' ; const PACKET_FILTER = '(arp or (udp and src port 68 and dst port 67 and udp[247:4] == 0x63350103)) and src host 0.0.0.0' ; export function createCaptureSession ( interfaceName ) { return pcap . createSession ( interfaceName , PACKET_FILTER ) ; }