from scapy.layers.l2 import Ether from scapy.layers.inet import IP, UDP from scapy.layers.dhcp import BOOTP, DHCP from scapy.contrib.pppoe import PPPoEDiscovery, PPPoE from scapy.all import sendp, get_if_hwaddr, sniff import time