XINU
arp.h
Go to the documentation of this file.
1 
7 #define ARP_HALEN 6
9 #define ARP_PALEN 4
11 #define ARP_HTYPE 1
13 #define ARP_PTYPE 0x0800
15 #define ARP_OP_REQ 1
17 #define ARP_OP_RPLY 2
19 #define ARP_SIZ 16
21 #define ARP_RETRY 3
23 #define ARP_TIMEOUT 300 /* Retry timer in milliseconds */
25 
27 #define AR_FREE 0
28 #define AR_PENDING 1
30 #define AR_RESOLVED 2
32 
33 #pragma pack(2)
34 
39 struct arppacket
40 {
65 };
66 #pragma pack()
67 
72 struct arpentry
73 {
81  byte arhaddr[ARP_HALEN];
82 };
83 
85 extern struct arpentry arpcache[];
unsigned char byte
符号なし8ビット値(unsigned char)
Definition: kernel.h:7
byte arp_ethdst[ETH_ADDR_LEN]
Ethernet転送先のMACアドレス
Definition: arp.h:42
byte arp_plen
ARPプロトコルアドレス長さ
Definition: arp.h:54
byte arp_hlen
ARPハードウェアアドレス長さ
Definition: arp.h:52
uint16 arp_ptype
ARPプロトコルタイプ
Definition: arp.h:50
int32 arstate
エントリの状態
Definition: arp.h:75
struct arpentry arpcache[]
ARPキャッシュエントリテーブル
Definition: arp.c:5
byte arp_sndha[ARP_HALEN]
ARP送信者のEthernetアドレス
Definition: arp.h:58
uint32 arpaddr
エントリのIPアドレス
Definition: arp.h:77
byte arp_tarha[ARP_HALEN]
ARPターゲットのEthernetアドレス
Definition: arp.h:62
IP&Ethernet用のARPパケットフォーマット
Definition: arp.h:39
#define ARP_HALEN
EthernetのMACアドレスサイズ
Definition: arp.h:8
uint16 arp_ethtype
Ethernetタイプ領域
Definition: arp.h:46
ARPキャッシュエントリ
Definition: arp.h:72
int int32
符号あり32ビット整数(int)
Definition: kernel.h:11
unsigned short uint16
符号なし16ビット整数(unsigned short)
Definition: kernel.h:17
byte arp_ethsrc[ETH_ADDR_LEN]
Ethernet送信元のMACアドレス
Definition: arp.h:44
int32 pid32
プロセスID
Definition: kernel.h:26
#define ETH_ADDR_LEN
Definition: ether.h:10
uint32 arp_tarpa
ARPターゲットのIPアドレス
Definition: arp.h:64
pid32 arpid
待機中プロセスか-1
Definition: arp.h:79
unsigned int uint32
符号なし32ビット整数(unsigned int)
Definition: kernel.h:15
uint16 arp_htype
ARPハードウェアタイプ
Definition: arp.h:48
uint32 arp_sndpa
ARP送信者のIPアドレス
Definition: arp.h:60
uint16 arp_op
ARPオペレーション
Definition: arp.h:56