Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
raw_priv.h File Reference
raw API internal implementations (do not use in application code) More...
Go to the source code of this file.
Typedefs | |
typedef enum raw_input_state | raw_input_state_t |
return codes for raw_input | |
Enumerations | |
enum | raw_input_state |
return codes for raw_input More... | |
Functions | |
raw_input_state_t | raw_input (struct pbuf *p, struct netif *inp) |
Determine if in incoming IP packet is covered by a RAW PCB and if so, pass it to a user-provided receive callback function. | |
void | raw_netif_ip_addr_changed (const ip_addr_t *old_addr, const ip_addr_t *new_addr) |
This function is called from netif.c when address is changed. |
Detailed Description
raw API internal implementations (do not use in application code)
Definition in file raw_priv.h.
Typedef Documentation
typedef enum raw_input_state raw_input_state_t |
return codes for raw_input
Enumeration Type Documentation
enum raw_input_state |
return codes for raw_input
Definition at line 51 of file raw_priv.h.
Function Documentation
raw_input_state_t raw_input | ( | struct pbuf * | p, |
struct netif * | inp | ||
) |
Determine if in incoming IP packet is covered by a RAW PCB and if so, pass it to a user-provided receive callback function.
Given an incoming IP datagram (as a chain of pbufs) this function finds a corresponding RAW PCB and calls the corresponding receive callback function.
- Parameters:
-
p pbuf to be demultiplexed to a RAW PCB. inp network interface on which the datagram was received.
- Returns:
- - 1 if the packet has been eaten by a RAW PCB receive callback function. The caller MAY NOT not reference the packet any longer, and MAY NOT call pbuf_free().
- - 0 if packet is not eaten (pbuf is still referenced by the caller).
Definition at line 135 of file lwip_raw.c.
This function is called from netif.c when address is changed.
- Parameters:
-
old_addr IP address of the netif before change new_addr IP address of the netif after change
Definition at line 655 of file lwip_raw.c.
Generated on Tue Jul 12 2022 13:55:18 by
