Defines | |
#define | IP_PROTOCOL_ICMP |
Protocol identifier of the ICMP protocol. | |
#define | IP_PROTOCOL_TCP |
Protocol identifier of the TCP protocol. | |
#define | IP_PROTOCOL_UDP |
Protocol identifier of the UDP protocol. | |
#define | ip_get_buffer() |
Retrieves a pointer to the IP transmit buffer. | |
#define | ip_get_buffer_size() |
Retrieves the maximum payload size of the transmit buffer. | |
Functions | |
void | ip_init (const uint8_t *ip, const uint8_t *netmask, const uint8_t *gateway) |
Initializes the IP layer and optionally assigns IP address, netmask and gateway. | |
bool | ip_handle_packet (const struct ip_header *packet, uint16_t packet_len) |
Forwards incoming packets to the appropriate higher-level protocol. | |
bool | ip_send_packet (const uint8_t *ip_dest, uint8_t protocol, uint16_t data_len) |
Sends data from the transmit buffer to a remote host. | |
const uint8_t * | ip_get_address () |
Retrieves the current IP address. | |
void | ip_set_address (const uint8_t *ip_local) |
Configures a new IP address. | |
const uint8_t * | ip_get_netmask () |
Retrieves the current IP netmask. | |
void | ip_set_netmask (const uint8_t *netmask) |
Configures a new IP netmask. | |
const uint8_t * | ip_get_gateway () |
Retrieves the current IP gateway. | |
void | ip_set_gateway (const uint8_t *gateway) |
Configures a new IP gateway. | |
const uint8_t * | ip_get_broadcast () |
Retrieves the broadcast address. |