Komponenty | |
struct | pbuf |
struct | route_t |
struct | ip_header |
struct | netif_and_ip |
Wyliczenia | |
enum | route_flags { scope_link = 0x01, scope_host = 0x02, scope_link = 0x01, scope_host = 0x02 } |
enum | route_flags { scope_link = 0x01, scope_host = 0x02, scope_link = 0x01, scope_host = 0x02 } |
Funkcje | |
struct ip_address | my_ip_address () |
struct netmask_t | my_netmask () |
void | onIpReception (struct netbuf *nb) |
int | ip_outbound_cmp (struct Tuple2< struct ip_address, struct netbuf * > a, struct Tuple2< struct ip_address, struct netbuf * > b) |
int | ip_outbound_cmp_by_first (struct Tuple2< struct ip_address, struct netbuf * > a, struct Tuple2< struct ip_address, struct netbuf * > b) |
struct IPC::Lock::lock_t | ip_outbound_lock (const_cast< char * >("ip_outbound")) |
void | init () |
proste operacje na sieci porozumiewa sie z pci32 by znalezc karte sieciowa 3c556 | |
void | ip_onNewArpEntry (struct Net::Arp::arp_entry arp) |
uint16 | count_checksum_iph (struct ip_header *iph) |
void | ip_transmit (struct ip_address ip_addr, uint8 tos, uint8 prot, struct packet_t *pb) |
void | ip_transmit (struct ip_address ip_addr, uint8 tos, uint8 prot, struct pbuf *pb) |
int | ip_poll (struct pbuf *&pb) |
void | route_add (struct route_t) |
bool | route_find (struct ip_address ip, struct netif_and_ip &rt) |
void | ip_transmit (struct netif *nif, struct ip_address ip_addr, uint8 tos, uint8 prot, struct pbuf *pb) |
Zmienne | |
struct AvlTree< struct Tuple2 < struct ip_address, struct netbuf * >, ip_outbound_cmp > * | ip_outbound |
enum Net::IP::route_flags |
Definicja w linii 1023 pliku ip.old.2.cpp.
enum Net::IP::route_flags |
uint16 Net::IP::count_checksum_iph | ( | struct ip_header * | iph | ) |
Definicja w linii 124 pliku ip.cpp.
Odwołuje się do Net::IP::ip_header::checksum i Net::count_checksum16().
Odwołania w ip_transmit(), onIpReception() i print().
void Net::IP::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 104 pliku ip.cpp.
Odwołuje się do ip_outbound i ip_outbound_cmp().
Odwołania w main().
void Net::IP::ip_onNewArpEntry | ( | struct Net::Arp::arp_entry | arp | ) |
Definicja w linii 109 pliku ip.cpp.
Odwołuje się do Collection::Tuple2< A, B >::_2, Net::Arp::arp_entry::eth_addr, Net::eth_transmit(), Collection::Option< T >::get(), Net::Arp::arp_entry::ip_addr, ip_outbound, ip_outbound_cmp_by_first(), ip_outbound_lock(), IPC::Lock::lock_t::lock(), Net::netbuf::nif, null i IPC::Lock::lock_t::ulock().
Odwołania w Net::Arp::arp_cache_insert().
int Net::IP::ip_outbound_cmp | ( | struct Tuple2< struct ip_address, struct netbuf * > | a, | |
struct Tuple2< struct ip_address, struct netbuf * > | b | |||
) |
Definicja w linii 88 pliku ip.cpp.
Odwołuje się do Collection::Tuple2< A, B >::_1, Collection::Tuple2< A, B >::_2 i Net::ip_address::ip.
Odwołania w init().
int Net::IP::ip_outbound_cmp_by_first | ( | struct Tuple2< struct ip_address, struct netbuf * > | a, | |
struct Tuple2< struct ip_address, struct netbuf * > | b | |||
) |
Definicja w linii 97 pliku ip.cpp.
Odwołuje się do Collection::Tuple2< A, B >::_1 i Net::ip_address::ip.
Odwołania w ip_onNewArpEntry().
struct IPC::Lock::lock_t Net::IP::ip_outbound_lock | ( | const_cast< char * > | "ip_outbound" | ) | [read] |
Odwołania w ip_onNewArpEntry() i ip_transmit().
int Net::IP::ip_poll | ( | struct pbuf *& | pb | ) |
void Net::IP::ip_transmit | ( | struct netif * | nif, | |
struct ip_address | ip_addr, | |||
uint8 | tos, | |||
uint8 | prot, | |||
struct pbuf * | pb | |||
) |
Definicja w linii 1879 pliku ip.old.2.cpp.
Odwołuje się do alert(), alert2(), Net::Arp::arp_get_ether(), Thread::Timer::avltree_insert_with_timer(), Net::count_checksum16(), DEF_SECOND, eth_transmit(), htons, Net::netif::ip_addr, ip_outbound, ip_outbound_lock(), IPC::Lock::lock_t::lock() i IPC::Lock::lock_t::ulock().
Definicja w linii 142 pliku ip.cpp.
Odwołuje się do Net::Arp::arp_get_ether(), assert, Thread::Timer::avltree_insert_with_timer(), Net::IP::ip_header::checksum, complain, count_checksum_iph(), Net::IP::pbuf::data, DEF_SECOND, e3c556_nif, Net::IP::pbuf::end, Net::eth_transmit(), Net::IP::ip_header::flags_fo, Collection::Option< T >::get(), Net::IP::ip_header::hdr_len, Net::htons(), Net::IP::ip_header::iden, Net::netif::ip_addr, Net::IP::pbuf::ip_data_off, Net::IP::pbuf::ip_off, ip_outbound, ip_outbound_lock(), Collection::Option< T >::isNone(), Net::IP::ip_header::len, IPC::Lock::lock_t::lock(), null, Net::IP::ip_header::prot, Net::IP::ip_header::source_ip, Net::IP::ip_header::target_ip, testif, Net::IP::ip_header::tos, Net::IP::ip_header::ttl, IPC::Lock::lock_t::ulock() i Net::IP::ip_header::version.
void Net::IP::ip_transmit | ( | struct ip_address | ip_addr, | |
uint8 | tos, | |||
uint8 | prot, | |||
struct packet_t * | pb | |||
) |
Definicja w linii 132 pliku ip.cpp.
Odwołuje się do Net::packet_t::buf, Net::packet_t::capacity, Net::IP::pbuf::data, Net::packet_t::end, Net::IP::pbuf::end, Net::IP::pbuf::ip_data_off, kmalloc, Net::IP::pbuf::len i Net::packet_t::off.
Odwołania w Net::ICMP::icmp_transmit() i VarieteThread().
struct netmask_t Net::IP::my_netmask | ( | ) | [read] |
void Net::IP::onIpReception | ( | struct netbuf * | nb | ) |
ip dmux
Definicja w linii 53 pliku ip.cpp.
Odwołuje się do Net::IP::ip_header::checksum, complain, count_checksum_iph(), Net::netbuf::data, Net::IP::ip_header::flags_fo, Net::netbuf_free(), Net::ntohs(), print(), println, Net::ICMP::processDatagram() i Net::IP::ip_header::prot.
Odwołania w Net::EthernetFrameDemultiplexingThread().
void Net::IP::route_add | ( | struct | route_t | ) |
uint32 Net::IP::route_find | ( | struct ip_address | ip, | |
struct netif_and_ip & | rt | |||
) |
struct AvlTree< struct Tuple2< struct ip_address, struct netbuf * >, ip_outbound_cmp > * Net::IP::ip_outbound [read] |