Lines Matching refs:dest

120  * @param dest the destination IP address for which to find the route
121 * @return the netif on which to send to reach dest
124 ip_route(ip_addr_t *dest)
129 netif = LWIP_HOOK_IP4_ROUTE(dest);
139 if (ip_addr_netcmp(dest, &(netif->ip_addr), &(netif->netmask))) {
147 ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
162 * @param dest the destination IP address
384 ip_addr_copy(current_iphdr_dest, iphdr->dest);
404 LWIP_DEBUGF(IP_DEBUG, ("ip_input: iphdr->dest 0x%"X32_F" netif->ip_addr 0x%"X32_F" (0x%"X32_F", 0x%"X32_F", 0x%"X32_F")\n",
405 ip4_addr_get_u32(&iphdr->dest), ip4_addr_get_u32(&netif->ip_addr),
406 ip4_addr_get_u32(&iphdr->dest) & ip4_addr_get_u32(&netif->netmask),
408 ip4_addr_get_u32(&iphdr->dest) & ~ip4_addr_get_u32(&netif->netmask)));
460 ntohs(udphdr->dest)));
461 if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) {
624 protocol header; if dest == IP_HDRINCL, p already includes an IP
628 * @param dest the destination IP address to send the packet to
641 ip_output_if(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
646 return ip_output_if_opt(p, src, dest, ttl, tos, proto, netif, NULL, 0);
655 err_t ip_output_if_opt(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
673 if (dest != IP_HDRINCL) {
722 /* dest cannot be NULL here */
723 ip_addr_copy(iphdr->dest, *dest);
725 chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF;
726 chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16;
768 ip_addr_copy(dest_addr, iphdr->dest);
769 dest = &dest_addr;
778 if (ip_addr_cmp(dest, &netif->ip_addr)) {
781 return netif_loop_output(netif, p, dest);
785 netif_loop_output(netif, p, dest);
792 return ip_frag(p, netif, dest);
797 return netif->output(netif, p, dest);
805 protocol header; if dest == IP_HDRINCL, p already includes an IP
809 * @param dest the destination IP address to send the packet to
818 ip_output(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
827 if ((netif = ip_route(dest)) == NULL) {
829 ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
834 return ip_output_if(p, src, dest, ttl, tos, proto, netif);
842 protocol header; if dest == IP_HDRINCL, p already includes an IP
846 * @param dest the destination IP address to send the packet to
857 ip_output_hinted(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
867 if ((netif = ip_route(dest)) == NULL) {
869 ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest)));
875 err = ip_output_if(p, src, dest, ttl, tos, proto, netif);
917 LWIP_DEBUGF(IP_DEBUG, ("| %3"U16_F" | %3"U16_F" | %3"U16_F" | %3"U16_F" | (dest)\n",
918 ip4_addr1_16(&iphdr->dest),
919 ip4_addr2_16(&iphdr->dest),
920 ip4_addr3_16(&iphdr->dest),
921 ip4_addr4_16(&iphdr->dest)));