XINU
Data Structures | Macros | Variables
arp.h File Reference

ARPのパケットフォーマットやキャッシュに関する定義 More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  arpentry
 ARPキャッシュエントリ More...
 
struct  arppacket
 IP&Ethernet用のARPパケットフォーマット More...
 

Macros

#define AR_FREE   0
 ARPキャッシュエントリ状態:スロットが未使用 More...
 
#define AR_PENDING   1
 ARPキャッシュエントリ状態:解決中 More...
 
#define AR_RESOLVED   2
 ARPキャッシュエントリ状態:エントリが正常 More...
 
#define ARP_HALEN   6
 EthernetのMACアドレスサイズ More...
 
#define ARP_HTYPE   1
 Ethernetハードウェアタイプ More...
 
#define ARP_OP_REQ   1
 リクエストオペコード More...
 
#define ARP_OP_RPLY   2
 リプライオペコード More...
 
#define ARP_PALEN   4
 IPアドレスサイズ More...
 
#define ARP_PTYPE   0x0800
 IPプロトコルタイプ More...
 
#define ARP_RETRY   3
 ARPリクエストのリトライ回数 More...
 
#define ARP_SIZ   16
 キャシュ中のエントリ数 More...
 
#define ARP_TIMEOUT   300 /* Retry timer in milliseconds */
 [ms]毎のリトライタイマ More...
 

Variables

struct arpentry arpcache []
 ARPキャッシュエントリテーブル More...
 

Detailed Description

ARPのパケットフォーマットやキャッシュに関する定義

ARP(Address Resolution Protocolは、IPアドレスからEthernetのMACアドレスの情報を得られるプロトコル

Definition in file arp.h.

Macro Definition Documentation

◆ AR_FREE

#define AR_FREE   0

ARPキャッシュエントリ状態:スロットが未使用

Definition at line 27 of file arp.h.

Referenced by arp_alloc(), arp_dmp(), arp_in(), arp_init(), and arp_resolve().

◆ AR_PENDING

#define AR_PENDING   1

ARPキャッシュエントリ状態:解決中

Definition at line 29 of file arp.h.

Referenced by arp_dmp(), arp_in(), and arp_resolve().

◆ AR_RESOLVED

#define AR_RESOLVED   2

ARPキャッシュエントリ状態:エントリが正常

Definition at line 31 of file arp.h.

Referenced by arp_alloc(), arp_dmp(), arp_in(), and arp_resolve().

◆ ARP_HALEN

#define ARP_HALEN   6

EthernetのMACアドレスサイズ

Definition at line 8 of file arp.h.

Referenced by arp_dmp(), arp_dump(), arp_in(), and arp_resolve().

◆ ARP_HTYPE

#define ARP_HTYPE   1

Ethernetハードウェアタイプ

Definition at line 12 of file arp.h.

Referenced by arp_in(), arp_resolve(), pdump(), and pdumph().

◆ ARP_OP_REQ

#define ARP_OP_REQ   1

リクエストオペコード

Definition at line 16 of file arp.h.

Referenced by arp_resolve(), pdump(), and pdumph().

◆ ARP_OP_RPLY

#define ARP_OP_RPLY   2

リプライオペコード

Definition at line 18 of file arp.h.

Referenced by arp_in(), pdump(), and pdumph().

◆ ARP_PALEN

#define ARP_PALEN   4

IPアドレスサイズ

Definition at line 10 of file arp.h.

Referenced by arp_in(), and arp_resolve().

◆ ARP_PTYPE

#define ARP_PTYPE   0x0800

IPプロトコルタイプ

Definition at line 14 of file arp.h.

Referenced by arp_in(), arp_resolve(), pdump(), and pdumph().

◆ ARP_RETRY

#define ARP_RETRY   3

ARPリクエストのリトライ回数

Definition at line 22 of file arp.h.

Referenced by arp_resolve().

◆ ARP_SIZ

#define ARP_SIZ   16

キャシュ中のエントリ数

Definition at line 20 of file arp.h.

Referenced by arp_alloc(), arp_dmp(), arp_in(), arp_init(), and arp_resolve().

◆ ARP_TIMEOUT

#define ARP_TIMEOUT   300 /* Retry timer in milliseconds */

[ms]毎のリトライタイマ

Definition at line 24 of file arp.h.

Referenced by arp_resolve().

Variable Documentation

◆ arpcache

struct arpentry arpcache[]

ARPキャッシュエントリテーブル

Definition at line 5 of file arp.c.

Referenced by arp_alloc(), arp_dmp(), arp_in(), arp_init(), and arp_resolve().