Lines Matching refs:ipaddr
198 * @param pcb RAW PCB to be bound with a local address ipaddr.
199 * @param ipaddr local IP address to bind with. Use IP4_ADDR_ANY to
210 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
212 if ((pcb == NULL) || (ipaddr == NULL)) {
215 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr);
226 * @param pcb RAW PCB to be connected with remote address ipaddr and port.
227 * @param ipaddr remote IP address to connect with.
234 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr)
236 if ((pcb == NULL) || (ipaddr == NULL)) {
239 ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr);
272 * @param ipaddr the destination address of the IP packet
276 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr)
284 if ((pcb == NULL) || (ipaddr == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr)) {
292 IP_IS_V6(ipaddr) ? IP6_HLEN : IP_HLEN);
325 netif = ip_route(IP46_ADDR_ANY(IP_GET_TYPE(ipaddr)), ipaddr);
327 netif = ip_route(&pcb->local_ip, ipaddr);
332 ip_addr_debug_print(RAW_DEBUG | LWIP_DBG_LEVEL_WARNING, ipaddr);
341 if (IP_IS_V4(ipaddr))
344 if (!ip_get_option(pcb, SOF_BROADCAST) && ip_addr_isbroadcast(ipaddr, netif)) {
357 src_ip = ip_netif_get_local_ip(netif, ipaddr);
374 if (IP_IS_V6(ipaddr) && pcb->chksum_reqd) {
375 u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(ipaddr));
382 err = ip_output_if(q, src_ip, ipaddr, pcb->ttl, pcb->tos, pcb->protocol, netif);
513 /* The PCB is bound to the old ipaddr and