Lines Matching defs:ipaddr
217 * @param pcb RAW PCB to be bound with a local address ipaddr.
218 * @param ipaddr local IP address to bind with. Use IP4_ADDR_ANY to
229 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
232 if ((pcb == NULL) || (ipaddr == NULL)) {
235 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
278 * @param pcb RAW PCB to be connected with remote address ipaddr and port.
279 * @param ipaddr remote IP address to connect with.
286 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
289 if ((pcb == NULL) || (ipaddr == NULL)) {
292 ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
358 * @param ipaddr the destination address of the IP packet
362 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr)
367 if ((pcb == NULL) || (ipaddr == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr)) {
385 if (ip_addr_ismulticast(ipaddr)) {
400 netif = ip_route(&pcb->local_ip, ipaddr, group);
402 netif = ip_route(&pcb->local_ip, ipaddr);
409 ip_addr_debug_print(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ipaddr);
415 src_ip = ip_netif_get_local_ip(netif, ipaddr);
426 return raw_sendto_if_src(pcb, p, ipaddr, netif, src_ip);
696 /* The PCB is bound to the old ipaddr and