pub fn build_arp_packet_pure(
oper: ArpOperation,
sender_mac: [u8; 6],
sender_ip: [u8; 4],
target_mac: [u8; 6],
target_ip: [u8; 4],
out: &mut [u8],
) -> Result<usize, &'static str>Expand description
純粋な ARP パケット(およびイーサネットフレーム)構築関数。 グローバル状態に一切アクセスせず、引数のみから 42 バイトの Ethernet+ARP フレームを組み立てる。