Skip to main content

Module arp

Module arp 

Source

Structs§

ArpPacketInfo
ARP パケットの純粋解析情報

Enums§

ArpOperation
ARP オペレーション種別 (RFC 826)

Statics§

ETH_CNT_ARP
ETH_CNT_ERR
ETH_CNT_IPV4
【2026-07-30診断】Ethernet 振り分けの種別カウンタ。
ETH_CNT_OTHER

Functions§

arp_cache_lines
arp_cache_lookup 🔒
arp_cache_upsert 🔒
表の操作判断そのものは純粋モジュール arp_cache へ委譲する (満杯時の LRU 退避等はホスト側ユニットテストで検証済み。 tests/src/test_arp_cache.rs)。ここは age の採番・グローバル配列への アクセス・ログ出力という副作用のみを担当する。
build_arp_packet_pure
純粋な ARP パケット(およびイーサネットフレーム)構築関数。 グローバル状態に一切アクセスせず、引数のみから 42 バイトの Ethernet+ARP フレームを組み立てる。
build_arp_request
build_ethernet_frame_pure
純粋な イーサネットフレーム構築関数。
build_usb_ethernet_ipv4_frame 🔒
eth_dispatch_counts
種別カウンタのスナップショット (ipv4, arp, other, err)。
get_next_hop_ip
get_next_hop_ip_pure
純粋な Next-hop IP 決定ロジック。
ingest_ethernet_frame
ingest_nic_ethernet_frame
ingest_nic_ipv4_packet
nic_pop_tx_ipv4_packet
nic_take_tx_ipv4_chunk
parse_arp_packet 🔒
parse_arp_packet_pure
純粋な ARP パケット解析関数。 入力フレームの検証を行い、純粋な ArpPacketInfo を返す。
parse_ipv4_packet 🔒
transmit_nic_ethernet_frame
transmit_nic_ipv4_packet