|
XINU
|
#include <xinu.h>
Go to the source code of this file.
Functions | |
| int32 | arp_alloc () |
| void | arp_hton (struct arppacket *pktptr) |
| void | arp_in (struct arppacket *pktptr) |
| void | arp_init (void) |
| void | arp_ntoh (struct arppacket *pktptr) |
| status | arp_resolve (uint32 nxthop, byte mac[ETH_ADDR_LEN]) |
Variables | |
| struct arpentry | arpcache [ARP_SIZ] |
| ARPキャッシュエントリテーブル More... | |
| int32 arp_alloc | ( | void | ) |
Definition at line 298 of file arp.c.
References AR_FREE, AR_RESOLVED, ARP_SIZ, arpcache, arpentry::arstate, kprintf(), memset(), NULLCH, and SYSERR.
Referenced by arp_in(), and arp_resolve().


| void arp_hton | ( | struct arppacket * | pktptr | ) |
Definition at line 348 of file arp.c.
References arppacket::arp_htype, arppacket::arp_op, arppacket::arp_ptype, arppacket::arp_sndpa, arppacket::arp_tarpa, htonl, and htons.
Referenced by arp_in(), and arp_resolve().

| void arp_in | ( | struct arppacket * | pktptr | ) |
Definition at line 158 of file arp.c.
References AR_FREE, AR_PENDING, AR_RESOLVED, arpentry::arhaddr, arp_alloc(), arppacket::arp_ethdst, arppacket::arp_ethsrc, arppacket::arp_ethtype, ARP_HALEN, arppacket::arp_hlen, arp_hton(), ARP_HTYPE, arppacket::arp_htype, arp_ntoh(), arppacket::arp_op, ARP_OP_RPLY, ARP_PALEN, arppacket::arp_plen, ARP_PTYPE, arppacket::arp_ptype, ARP_SIZ, arppacket::arp_sndha, arppacket::arp_sndpa, arppacket::arp_tarha, arppacket::arp_tarpa, arpentry::arpaddr, arpcache, arpentry::arpid, arpentry::arstate, disable(), ETH_ARP, eth_hton(), ETHER0, network::ethucast, FALSE, freebuf(), network::ipucast, network::ipvalid, kprintf(), memcpy(), NetData, OK, restore(), send(), SYSERR, TRUE, and write().
Referenced by netin().


| void arp_init | ( | void | ) |
Definition at line 11 of file arp.c.
References AR_FREE, ARP_SIZ, arpcache, and arpentry::arstate.
Referenced by net_init().

| void arp_ntoh | ( | struct arppacket * | pktptr | ) |
Definition at line 333 of file arp.c.
References arppacket::arp_htype, arppacket::arp_op, arppacket::arp_ptype, arppacket::arp_sndpa, arppacket::arp_tarpa, ntohl, and ntohs.
Referenced by arp_in().

Definition at line 24 of file arp.c.
References AR_FREE, AR_PENDING, AR_RESOLVED, arpentry::arhaddr, arp_alloc(), arppacket::arp_ethdst, arppacket::arp_ethsrc, arppacket::arp_ethtype, ARP_HALEN, arppacket::arp_hlen, arp_hton(), ARP_HTYPE, arppacket::arp_htype, arppacket::arp_op, ARP_OP_REQ, ARP_PALEN, arppacket::arp_plen, ARP_PTYPE, arppacket::arp_ptype, ARP_RETRY, ARP_SIZ, arppacket::arp_sndha, arppacket::arp_sndpa, arppacket::arp_tarha, arppacket::arp_tarpa, ARP_TIMEOUT, arpentry::arpaddr, arpcache, arpentry::arpid, arpentry::arstate, currpid, disable(), ETH_ARP, eth_hton(), network::ethbcast, ETHER0, network::ethucast, IP_BCAST, network::ipbcast, network::ipucast, memcpy(), memset(), NetData, OK, recvclr(), recvtime(), restore(), SYSERR, TIMEOUT, and write().

ARPキャッシュエントリテーブル
Definition at line 5 of file arp.c.
Referenced by arp_alloc(), arp_dmp(), arp_in(), arp_init(), and arp_resolve().
1.8.13