def arp_ip(opcode, src_mac, src_ip, dst_mac, dst_ip):
 return arp(ARP_HW_TYPE_ETHERNET, ether.ETH_TYPE_IP, 6, 4, opcode, src_mac, src_ip, dst_mac, dst_ip)

def arp_ip ( opcode , src_mac , src_ip , dst_mac , dst_ip ) : return arp ( ARP_HW_TYPE_ETHERNET , ether . ETH_TYPE_IP , 6 , 4 , opcode , src_mac , src_ip , dst_mac , dst_ip )
a convenient wrapper for ipv4 arp for ethernet .