Function on_arp_packet

Source
pub fn on_arp_packet<CC, BC>(
    core_ctx: &mut CC,
    bindings_ctx: &mut BC,
    device_id: &CC::DeviceId,
    sender_addr: Ipv4Addr,
    target_addr: Ipv4Addr,
) -> IpAddressState
where CC: IpDeviceHandler<Ipv4, BC>,
Expand description

Dispatches a received ARP packet (Request or Reply) to the IP layer.

Returns the IpAddressState of target_addr on device.