Home
last modified time | relevance | path

Searched refs:src_ip (Results 1 – 15 of 15) sorted by relevance

/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/
H A Draw.c357 const ip_addr_t *src_ip; in raw_sendto() local
392 src_ip = ip_netif_get_local_ip(netif, ipaddr); in raw_sendto()
394 if (src_ip == NULL) { in raw_sendto()
400 src_ip = &pcb->local_ip; in raw_sendto()
403 return raw_sendto_if_src(pcb, p, ipaddr, netif, src_ip); in raw_sendto()
421 struct netif *netif, const ip_addr_t *src_ip) in raw_sendto_if_src() argument
430 if ((pcb == NULL) || (dst_ip == NULL) || (netif == NULL) || (src_ip == NULL) || in raw_sendto_if_src()
431 !IP_ADDR_PCB_VERSION_MATCH(pcb, src_ip) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in raw_sendto_if_src()
454 err = ip_output_if_hdrincl(p, src_ip, dst_ip, netif); in raw_sendto_if_src()
512 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); in raw_sendto_if_src()
[all …]
H A Dudp.c638 const ip_addr_t *src_ip; in udp_sendto_if_chksum() local
654 src_ip = ip6_select_source_address(netif, ip_2_ip6(dst_ip)); in udp_sendto_if_chksum()
655 if (src_ip == NULL) { in udp_sendto_if_chksum()
665 src_ip = &pcb->local_ip; in udp_sendto_if_chksum()
677 src_ip = netif_ip_addr4(netif); in udp_sendto_if_chksum()
686 src_ip = &pcb->local_ip; in udp_sendto_if_chksum()
690 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); in udp_sendto_if_chksum()
692 return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip); in udp_sendto_if_chksum()
700 … const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) in udp_sendto_if_src() argument
703 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0, src_ip); in udp_sendto_if_src()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/
H A Dudp.c606 const ip_addr_t *src_ip; in udp_sendto_if_chksum() local
616 src_ip = ip6_select_source_address(netif, ip_2_ip6(dst_ip)); in udp_sendto_if_chksum()
617 if (src_ip == NULL) { in udp_sendto_if_chksum()
627 src_ip = &pcb->local_ip; in udp_sendto_if_chksum()
639 src_ip = netif_ip_addr4(netif); in udp_sendto_if_chksum()
648 src_ip = &pcb->local_ip; in udp_sendto_if_chksum()
652 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); in udp_sendto_if_chksum()
654 return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip); in udp_sendto_if_chksum()
662 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) in udp_sendto_if_src() argument
665 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0, src_ip); in udp_sendto_if_src()
[all …]
H A Draw.c280 const ip_addr_t *src_ip; in raw_sendto() local
357 src_ip = ip_netif_get_local_ip(netif, ipaddr); in raw_sendto()
359 if (src_ip == NULL) { in raw_sendto()
368 src_ip = &pcb->local_ip; in raw_sendto()
375 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(ipaddr)); in raw_sendto()
382 err = ip_output_if(q, src_ip, ipaddr, pcb->ttl, pcb->tos, pcb->protocol, netif); in raw_sendto()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Draw.c207 ip_addr_t *src_ip; in raw_sendto() local
260 src_ip = &(netif->ip_addr); in raw_sendto()
263 src_ip = &(pcb->local_ip); in raw_sendto()
267 err = ip_output_if (q, src_ip, ipaddr, pcb->ttl, pcb->tos, pcb->protocol, netif); in raw_sendto()
H A Dudp.c564 ip_addr_t *src_ip; local
629 src_ip = &(netif->ip_addr);
644 src_ip = &(pcb->local_ip);
672 udphdr->chksum = inet_chksum_pseudo_partial(q, src_ip, dst_ip,
693 err = ip_output_if(q, src_ip, dst_ip, pcb->ttl, pcb->tos, IP_PROTO_UDPLITE, netif);
707 udpchksum = inet_chksum_pseudo_partial(q, src_ip, dst_ip, IP_PROTO_UDP,
714 udpchksum = inet_chksum_pseudo(q, src_ip, dst_ip, IP_PROTO_UDP, q->tot_len);
728 err = ip_output_if(q, src_ip, dst_ip, pcb->ttl, pcb->tos, IP_PROTO_UDP, netif);
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/test/unit/tcp/
H A Dtcp_helper.c41 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
66 iphdr->src.addr = src_ip->addr; in tcp_create_segment_wnd()
95 tcphdr->chksum = inet_chksum_pseudo(p, src_ip, dst_ip, in tcp_create_segment_wnd()
105 tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment() argument
109 return tcp_create_segment_wnd(src_ip, dst_ip, src_port, dst_port, data, in tcp_create_segment()
H A Dtcp_helper.h32 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/unit/tcp/
H A Dtcp_helper.c42 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
68 iphdr->src.addr = ip_2_ip4(src_ip)->addr; in tcp_create_segment_wnd()
98 IP_PROTO_TCP, p->tot_len, src_ip, dst_ip); in tcp_create_segment_wnd()
107 tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment() argument
111 return tcp_create_segment_wnd(src_ip, dst_ip, src_port, dst_port, data, in tcp_create_segment()
H A Dtcp_helper.h32 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/unit/tcp/
H A Dtcp_helper.c47 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
73 iphdr->src.addr = ip_2_ip4(src_ip)->addr; in tcp_create_segment_wnd()
103 IP_PROTO_TCP, p->tot_len, src_ip, dst_ip); in tcp_create_segment_wnd()
112 tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment() argument
116 return tcp_create_segment_wnd(src_ip, dst_ip, src_port, dst_port, data, in tcp_create_segment()
H A Dtcp_helper.h38 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/
H A Dudp.h130 struct netif *netif, const ip_addr_t *src_ip);
147 u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip);
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/
H A Dudp.h135 struct netif *netif, const ip_addr_t *src_ip);
152 u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip);
H A Draw.h113 …w_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, struct netif *netif, const ip_addr_t *src_ip);