Structs§
- ArpPacket
Info - 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