IP API. More...
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/err.h"
#include "lwip/netif.h"
#include "lwip/ip4.h"
#include "lwip/ip6.h"
#include "lwip/prot/ip.h"
Go to the source code of this file.
Data Structures | |
struct | ip_pcb |
struct | ip_globals |
Global variables of this module, kept in a struct for efficient access using base+index. More... | |
Macros | |
#define | LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p) LWIP_ASSERT("p->ref == 1", (p)->ref == 1) |
pbufs passed to IP must have a ref-count of 1 as their payload pointer gets altered as the packet is passed down the stack More... | |
#define | IP_PCB |
This is the common part of all PCB types. More... | |
#define | ip_current_netif() (ip_data.current_netif) |
Get the interface that accepted the current packet. More... | |
#define | ip_current_input_netif() (ip_data.current_input_netif) |
Get the interface that received the current packet. More... | |
#define | ip_current_header_tot_len() (ip_data.current_ip_header_tot_len) |
Total header length of ip(6)_current_header() (i.e. More... | |
#define | ip_current_src_addr() (&ip_data.current_iphdr_src) |
Source IP address of current_header. More... | |
#define | ip_current_dest_addr() (&ip_data.current_iphdr_dest) |
Destination IP address of current_header. More... | |
#define | ip_current_src_addr() (&ip_data.current_iphdr_src) |
Source IP address of current_header. More... | |
#define | ip_current_dest_addr() (&ip_data.current_iphdr_dest) |
Destination IP address of current_header. More... | |
#define | ip_get_option(pcb, opt) ((pcb)->so_options & (opt)) |
Gets an IP pcb option (SOF_* flags) More... | |
#define | ip_set_option(pcb, opt) ((pcb)->so_options = (u8_t)((pcb)->so_options | (opt))) |
Sets an IP pcb option (SOF_* flags) More... | |
#define | ip_reset_option(pcb, opt) ((pcb)->so_options = (u8_t)((pcb)->so_options & ~(opt))) |
Resets an IP pcb option (SOF_* flags) More... | |
IP API.
Definition in file ip.h.
#define ip_current_dest_addr | ( | ) | (&ip_data.current_iphdr_dest) |
#define ip_current_dest_addr | ( | ) | (&ip_data.current_iphdr_dest) |
#define ip_current_header_tot_len | ( | ) | (ip_data.current_ip_header_tot_len) |
#define ip_current_input_netif | ( | ) | (ip_data.current_input_netif) |
#define ip_current_netif | ( | ) | (ip_data.current_netif) |
#define ip_current_src_addr | ( | ) | (&ip_data.current_iphdr_src) |
#define ip_current_src_addr | ( | ) | (&ip_data.current_iphdr_src) |
#define ip_get_option | ( | pcb, | |
opt | |||
) | ((pcb)->so_options & (opt)) |
#define IP_PCB |
This is the common part of all PCB types.
It needs to be at the beginning of a PCB type definition. It is located here so that changes to this common part are made in one location instead of having to change all PCB structs.
#define ip_reset_option | ( | pcb, | |
opt | |||
) | ((pcb)->so_options = (u8_t)((pcb)->so_options & ~(opt))) |
#define ip_set_option | ( | pcb, | |
opt | |||
) | ((pcb)->so_options = (u8_t)((pcb)->so_options | (opt))) |