158 |
static void |
static void |
159 |
ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) |
ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) |
160 |
{ |
{ |
161 |
static struct netif *netif; |
struct netif *netif; |
162 |
|
|
163 |
PERF_START; |
PERF_START; |
164 |
|
|
539 |
ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, |
ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, |
540 |
u8_t ttl, u8_t proto) |
u8_t ttl, u8_t proto) |
541 |
{ |
{ |
542 |
static struct netif *netif; |
struct netif *netif; |
|
|
|
543 |
|
|
544 |
if((netif = ip_route(dest)) == NULL) { |
if((netif = ip_route(dest)) == NULL) { |
545 |
DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr)); |
DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr)); |