Definition in file ip.h.
Go to the source code of this file.
Data Structures | |
| struct | ip_frame |
| IP datagram header fields. More... | |
Defines | |
| #define | PHY_ADR_LEN ETH_ADDRESS_LEN |
| #define | IP_ICMP 0x01 |
| #define | IP_UDP 17 |
| #define | IP_TCP 6 |
Functions | |
| INT16 | process_ip_in (struct ethernet_frame *) |
| Process received IP frame. | |
| INT16 | process_ip_out (UINT32, UINT8, UINT8, UINT8, UINT8 *, UINT16) |
| Try to send out IP frame. | |
| UINT8 | ip_check_cs (struct ip_frame *) |
| Check IP frame's checksum. | |
| UINT16 | ip_checksum (UINT16, UINT8, UINT8) |
| Used for constructuing IP checksum. | |
| UINT32 | ip_construct_cs (struct ip_frame *) |
| Construct checksum of the IP header. | |
|
|
Lower-layer physical address length Definition at line 69 of file ip.h. Referenced by process_ip_in(). |
|
|
ICMP over IP Definition at line 71 of file ip.h. Referenced by process_icmp_in(), process_ip_in(), and process_ip_out(). |
|
|
UDP over IP Definition at line 72 of file ip.h. Referenced by process_ip_out(), process_udp_in(), and udp_send(). |
|
|
TCP over IP Definition at line 73 of file ip.h. Referenced by process_ip_out(), process_tcp_in(), and process_tcp_out(). |
|
||||||||||||||||||||||||||||
|
Definition at line 300 of file ip.c. References arp_find(), ARP_TEMP_IP, ip_frame::checksum, ip_frame::dip, ip_frame::frags, arp_entry::hwadr, ICMP_BUF, ip_frame::id, ip_construct_cs(), IP_ICMP, ip_id, IP_TCP, IP_UDP, MAXHWALEN, NETWORK_ADD_DATALINK, NETWORK_COMPLETE_SEND, NETWORK_SEND_INITIALIZE, ip_frame::protocol, PROTOCOL_IP, SEND_NETWORK_B, ip_frame::sip, TCP_BUF, ip_frame::tlen, ip_frame::tos, ip_frame::ttl, UDP_BUF, and ip_frame::vihl. Referenced by process_icmp_in(), process_tcp_out(), and udp_send(). |
|
|
Definition at line 476 of file ip.c. References ip_frame::checksum, ip_frame::dip, ip_frame::frags, ip_frame::id, ip_checksum(), ip_frame::opt, ip_frame::protocol, ip_frame::sip, ip_frame::tlen, ip_frame::tos, ip_frame::ttl, and ip_frame::vihl. Referenced by process_ip_in(). |
|
||||||||||||||||
|
Definition at line 541 of file ip.c. Referenced by ip_check_cs(), ip_construct_cs(), process_icmp_in(), process_tcp_out(), process_udp_in(), tcp_check_cs(), and udp_send(). |
|
|
Definition at line 419 of file ip.c. References ip_frame::dip, ip_frame::frags, ip_frame::id, ip_checksum(), ip_frame::opt, ip_frame::protocol, ip_frame::sip, ip_frame::tlen, ip_frame::tos, ip_frame::ttl, and ip_frame::vihl. Referenced by process_ip_out(). |
1.2.18