Komponenty | |
struct | icmp_header |
Funkcje | |
void | processDatagram (struct Net::netbuf *nb) |
uint16 | count_checksum16_icmph (struct icmp_header *icmph, uint32 len) |
void | icmp_transmit (struct ip_address ip_addr, struct Net::packet_t *p, uint8 type, uint8 code, uint32 data) |
void | icmp_transmit_echo_request (struct ip_address ip_addr) |
void | icmp_transmit_echo_reply (struct ip_address ip_addr, struct Net::packet_t *p, uint32 data) |
Zmienne | |
volatile uint64 | next_icmp_error = 0 |
Definicja w linii 66 pliku icmp.cpp.
Odwołuje się do assert, Net::ICMP::icmp_header::checksum i Net::count_checksum16().
Odwołania w icmp_transmit() i processDatagram().
void Net::ICMP::icmp_transmit | ( | struct ip_address | ip_addr, | |
struct Net::packet_t * | p, | |||
uint8 | type, | |||
uint8 | code, | |||
uint32 | data | |||
) |
p | zaalokowany bufor, p->dt do &p->dt[len] wskazuja na dane przeslane wewnatrz wiadomosci icmp nie moze byc zbyt dlugie zeby przez IP przeszlo | |
data | a field in the icmp header |
Definicja w linii 75 pliku icmp.cpp.
Odwołuje się do Net::packet_t::buf, Net::ICMP::icmp_header::checksum, Net::ICMP::icmp_header::code, count_checksum16_icmph(), Net::ICMP::icmp_header::data, Net::packet_t::end, Net::IP::ip_transmit(), null, Net::packet_t::off, testif i Net::ICMP::icmp_header::type.
Odwołania w processDatagram().
void Net::ICMP::icmp_transmit_echo_reply | ( | struct ip_address | ip_addr, | |
struct Net::packet_t * | p, | |||
uint32 | data | |||
) |
void Net::ICMP::icmp_transmit_echo_request | ( | struct ip_address | ip_addr | ) |
void Net::ICMP::processDatagram | ( | struct Net::netbuf * | nb | ) |
Definicja w linii 33 pliku icmp.cpp.
Odwołuje się do Net::packet_t::buf, Net::ICMP::icmp_header::checksum, complain, count_checksum16_icmph(), Net::ICMP::icmp_header::data, Net::netbuf::data, Net::ICMP::icmp_header::dt, Net::packet_t::end, Net::IP::ip_header::hdr_len, Thread::i, icmp_transmit(), INTERVAL_BETWEEN_ICMP_ERRORS, Net::IP::ip_header::len, memmove(), next_icmp_error, Net::ntohs(), Net::packet_t::off, Net::pbuf_alloc(), prin, println, Net::IP::ip_header::source_ip, Net::ICMP::icmp_header::type i Arch::x86::RTC::up_time.
Odwołania w Net::IP::onIpReception().
volatile uint64 Net::ICMP::next_icmp_error = 0 |
when the next icmp error or echo reply message may be sent
Definicja w linii 31 pliku icmp.cpp.
Odwołania w processDatagram().