ReactOS 0.4.16-dev-125-g798ea90
|
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/mem.h"
#include "lwip/ip.h"
#include "lwip/inet.h"
#include "lwip/netif.h"
#include "lwip/icmp.h"
#include "lwip/udp.h"
#include "lwip/tcp_impl.h"
#include "lwip/stats.h"
#include "arch/perf.h"
Go to the source code of this file.
Functions | |
void | ip_init (void) |
struct netif * | ip_route (struct ip_addr *dest) |
static void | ip_forward (struct pbuf *p, struct ip_hdr *iphdr) |
void | ip_input (struct pbuf *p, struct netif *inp) |
err_t | ip_output_if (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto, struct netif *netif) |
err_t | ip_output (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto) |
Definition at line 96 of file ip6.c.
Referenced by ip_input().
This function is called by the network interface device driver when an IP packet is received. The function does the basic checks of the IP header such as packet size being at least larger than the header size etc. If the packet was not destined for us, the packet is forwarded (using ip_forward). The IP checksum is always checked.
Finally, the packet is sent to the upper layer protocol input function.
p | the received IP packet (p->payload points to IP header) |
inp | the netif on which this packet was received |
Definition at line 157 of file ip6.c.
err_t ip_output | ( | struct pbuf * | p, |
struct ip_addr * | src, | ||
struct ip_addr * | dest, | ||
u8_t | ttl, | ||
u8_t | proto | ||
) |
Definition at line 317 of file ip6.c.
err_t ip_output_if | ( | struct pbuf * | p, |
struct ip_addr * | src, | ||
struct ip_addr * | dest, | ||
u8_t | ttl, | ||
u8_t | proto, | ||
struct netif * | netif | ||
) |
Definition at line 260 of file ip6.c.
Referenced by ip_output().
Definition at line 75 of file ip6.c.
Referenced by ip_forward(), and ip_output().