Komponenty | |
struct | arp_ethernet_packet |
struct | arp_entry |
Funkcje | |
void | arp_transmit (struct netif *nif, short opcode, struct ethernet_addr packet_destination, struct ethernet_addr sender_eth, struct ip_address sender_ip, struct ethernet_address target_eth, struct ip_address target_ip) |
void | arp_transmit (struct netif *nif, short opcode, struct ethernet_address destination_eth, struct ethernet_address target_eth, struct ip_address target_ip) |
void | arp_transmit_request (struct netif *nif, struct ethernet_address destination_eth, struct ip_address target_ip) |
void | arp_transmit_reply (struct netif *nif, struct ethernet_address target_eth, struct ip_address target_ip) |
int | arp_entry_cmp (struct arp_entry a, struct arp_entry b) |
struct IPC::Lock::lock_t | arp_cache_lock (const_cast< char * >("arp_cache")) |
void | arp_cache_insert (struct netif *nif, struct ip_address ip_addr, struct ethernet_address eth_addr) |
struct Option< struct ethernet_address > | arp_get_cached_ether (struct ip_address ip) |
int | arp_request_timer (struct arp_entry *arp, int T) |
struct Option< struct ethernet_address > | arp_get_ether (struct ip_address ip) |
void | init () |
proste operacje na sieci porozumiewa sie z pci32 by znalezc karte sieciowa 3c556 | |
void | processArpPacket (struct netbuf *nb) |
Zmienne | |
struct Memory::Heap::heapbox | arp_heapbox |
struct Net::Arp::arp_ethernet_packet | packed |
struct AvlTree< struct arp_entry, arp_entry_cmp > * | arp_cache |
struct AvlTree< uint32, generic_cmp< uint32 > > * | arp_pom |
void Net::Arp::arp_cache_insert | ( | struct netif * | nif, | |
struct ip_address | ip_addr, | |||
struct ethernet_address | eth_addr | |||
) |
Definicja w linii 196 pliku arp.cpp.
Odwołuje się do arp_cache, arp_cache_lock(), arp_get_cached_ether(), assert, Net::ethernet_address::d, ENTER_CRITICAL, Thread::i, Net::ip_address::ip, Net::IP::ip_onNewArpEntry(), kprintf(), IPC::Lock::lock_t::lock() i IPC::Lock::lock_t::ulock().
Odwołania w processArpPacket() i VarieteThread().
struct IPC::Lock::lock_t Net::Arp::arp_cache_lock | ( | const_cast< char * > | "arp_cache" | ) | [read] |
Odwołania w arp_cache_insert().
int Net::Arp::arp_entry_cmp | ( | struct arp_entry | a, | |
struct arp_entry | b | |||
) |
struct Collection::Option< struct ethernet_address > Net::Arp::arp_get_cached_ether | ( | struct ip_address | ip | ) | [read] |
Definicja w linii 235 pliku arp.cpp.
Odwołuje się do arp_cache, Collection::Option< T >::get() i Collection::Option< T >::isNone().
Odwołania w arp_cache_insert(), arp_get_ether() i arp_request_timer().
struct Collection::Option< struct ethernet_address > Net::Arp::arp_get_ether | ( | struct ip_address | ip | ) | [read] |
Definicja w linii 260 pliku arp.cpp.
Odwołuje się do Thread::Timer::add(), arp_get_cached_ether(), arp_heapbox, arp_request_timer(), e3c556_nif, Collection::Option< T >::isNone(), Memory::Heap::heapbox::malloc() i null.
Odwołania w Net::IP::ip_transmit().
int Net::Arp::arp_request_timer | ( | struct arp_entry * | arp, | |
int | T | |||
) |
Definicja w linii 244 pliku arp.cpp.
Odwołuje się do Thread::Timer::add(), arp_get_cached_ether(), arp_heapbox, arp_transmit_request(), Memory::Heap::heapbox::free() i PRNG::nextUint32().
Odwołania w arp_get_ether().
void Net::Arp::arp_transmit | ( | struct netif * | nif, | |
short | opcode, | |||
struct ethernet_address | destination_eth, | |||
struct ethernet_address | target_eth, | |||
struct ip_address | target_ip | |||
) |
Definicja w linii 65 pliku arp.cpp.
Odwołuje się do Net::netbuf::data, dbPrintInt(), dbSetRow(), Net::netif::eth_addr, Net::eth_transmit(), Net::htons(), Net::Arp::arp_ethernet_packet::hw_size, Net::Arp::arp_ethernet_packet::hw_type, Net::netif::ip_addr, Net::netbuf::len, Net::netbuf_alloc(), Net::Arp::arp_ethernet_packet::opcode, Net::Arp::arp_ethernet_packet::prot_size, Net::Arp::arp_ethernet_packet::prot_type, Net::Arp::arp_ethernet_packet::sender_eth, Net::Arp::arp_ethernet_packet::sender_ip, Net::Arp::arp_ethernet_packet::target_eth, Net::Arp::arp_ethernet_packet::target_ip i testifdbg.
void Net::Arp::arp_transmit | ( | struct netif * | nif, | |
short | opcode, | |||
struct ethernet_addr | packet_destination, | |||
struct ethernet_addr | sender_eth, | |||
struct ip_address | sender_ip, | |||
struct ethernet_address | target_eth, | |||
struct ip_address | target_ip | |||
) |
Odwołania w arp_transmit_reply() i arp_transmit_request().
void Net::Arp::arp_transmit_reply | ( | struct netif * | nif, | |
struct ethernet_address | target_eth, | |||
struct ip_address | target_ip | |||
) |
Definicja w linii 105 pliku arp.cpp.
Odwołuje się do arp_transmit().
Odwołania w processArpPacket().
void Net::Arp::arp_transmit_request | ( | struct netif * | nif, | |
struct ethernet_address | destination_eth, | |||
struct ip_address | target_ip | |||
) |
Definicja w linii 86 pliku arp.cpp.
Odwołuje się do arp_transmit(), Net::netbuf::data, Net::netif::eth_addr, Net::eth_transmit(), Net::htons(), Net::Arp::arp_ethernet_packet::hw_size, Net::Arp::arp_ethernet_packet::hw_type, Net::netif::ip_addr, Net::netbuf_alloc(), Net::Arp::arp_ethernet_packet::opcode, Net::Arp::arp_ethernet_packet::prot_size, Net::Arp::arp_ethernet_packet::prot_type, Net::Arp::arp_ethernet_packet::sender_eth, Net::Arp::arp_ethernet_packet::sender_ip, Net::Arp::arp_ethernet_packet::target_eth i Net::Arp::arp_ethernet_packet::target_ip.
Odwołania w arp_request_timer().
void Net::Arp::init | ( | ) |
proste operacje na sieci porozumiewa sie z pci32 by znalezc karte sieciowa 3c556
ustawienie timera ktory seeduje linear congruential generator DEF_SECOND/32 na sekunde i czeka na pierwsze seedowanie. w momencie gdy rtc timer pracuje, malo mozliwe jest by parzystosc rdtsc() zmieniala sie miedzy wywolaniami rdtsc_runner() w przewidywalny sposob
Definicja w linii 279 pliku arp.cpp.
Odwołuje się do Memory::Heap::allocate_heapbox(), arp_cache i arp_heapbox.
Odwołania w main().
struct AvlTree< struct arp_entry, arp_entry_cmp >* Net::Arp::arp_cache |
Definicja w linii 193 pliku arp.cpp.
Odwołania w arp_cache_insert(), arp_get_cached_ether() i init().
struct AvlTree< uint32, generic_cmp< uint32 > >* Net::Arp::arp_pom |