47 #include "lwip/inet.h"
49 #include "lwip/icmp.h"
96 ip_forward(
struct pbuf *p,
struct ip_hdr *iphdr)
113 if (--iphdr->
hoplim == 0) {
204 ip_forward(p, iphdr);
220 LWIP_ASSERT(
"Can't move over header in packet", 0);
262 u8_t proto,
struct netif *netif)
296 dest = &(iphdr->
dest);
307 return netif->
output(netif, p, dest);
330 #if LWIP_NETIF_HWADDRHINT
344 netif->addr_hint = addr_hint;
345 err =
ip_output_if(p, src, dest, ttl, tos, proto, netif);
346 netif->addr_hint =
NULL;
371 (
ntohl(iphdr->src.addr[0]) >> 16) & 0xffff,
372 ntohl(iphdr->src.addr[0]) & 0xffff));
374 (
ntohl(iphdr->src.addr[1]) >> 16) & 0xffff,
375 ntohl(iphdr->src.addr[1]) & 0xffff));
377 (
ntohl(iphdr->src.addr[2]) >> 16) & 0xffff,
378 ntohl(iphdr->src.addr[2]) & 0xffff));
380 (
ntohl(iphdr->src.addr[3]) >> 16) & 0xffff,
381 ntohl(iphdr->src.addr[3]) & 0xffff));