Lines Matching refs:netif
58 #include "lwip/netif.h"
151 udp_input(struct pbuf *p, struct netif *inp)
504 struct netif *netif;
510 netif = ip_route((ip_addr_ismulticast(dst_ip))?(&(pcb->multicast_ip)):(dst_ip));
512 netif = ip_route(dst_ip);
516 if (netif == NULL) {
523 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
525 return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
531 * The netif used for sending can be specified.
534 * on a netif that is still down.
540 * @param netif the netif used for sending.
550 ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
553 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0);
559 u16_t dst_port, struct netif *netif, u8_t have_chksum,
570 if (!ip_get_option(pcb, SOF_BROADCAST) && ip_addr_isbroadcast(dst_ip, netif)) {
629 src_ip = &(netif->ip_addr);
632 * this could be an old address if netif->ip_addr has changed */
633 if (!ip_addr_cmp(&(pcb->local_ip), &(netif->ip_addr))) {
692 NETIF_SET_HWADDRHINT(netif, &pcb->addr_hint);
693 err = ip_output_if(q, src_ip, dst_ip, pcb->ttl, pcb->tos, IP_PROTO_UDPLITE, netif);
694 NETIF_SET_HWADDRHINT(netif, NULL);
727 NETIF_SET_HWADDRHINT(netif, &pcb->addr_hint);
728 err = ip_output_if(q, src_ip, dst_ip, pcb->ttl, pcb->tos, IP_PROTO_UDP, netif);
729 NETIF_SET_HWADDRHINT(netif, NULL);
871 struct netif *netif;
873 if ((netif = ip_route(&(pcb->remote_ip))) == NULL) {
881 pcb->local_ip = netif->ip_addr;