TypeError handle_arp_request missing 1 required positional argument ifnamedef handle_arp_packetpacket eth_header = packetETH_HEADER_LEN eth_type = structunpack!H eth_header12140 if eth_type =
在调用handle_arp_request()函数时,缺少ifname参数。需要在调用handle_arp_request()函数时传入ifname参数,例如:
handle_arp_request(packet, ifname)
原文地址: https://www.cveoy.top/t/topic/fq3y 著作权归作者所有。请勿转载和采集!