Home
last modified time | relevance | path

Searched refs:dst_ip (Results 1 – 19 of 19) sorted by relevance

/components/net/lwip/lwip-2.0.3/src/core/
A Dudp.c503 const ip_addr_t *dst_ip, u16_t dst_port) in udp_sendto() argument
517 const ip_addr_t *dst_ip_route = dst_ip; in udp_sendto_chksum()
519 if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_chksum()
528 if (IP_IS_V6(dst_ip)) { in udp_sendto_chksum()
608 if ((pcb == NULL) || (dst_ip == NULL) || !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_if_chksum()
614 if (IP_IS_V6(dst_ip)) { in udp_sendto_if_chksum()
682 !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_if_src_chksum()
690 IP_IS_V4(dst_ip) && in udp_sendto_if_src_chksum()
692 ip_addr_isbroadcast(dst_ip, netif)) { in udp_sendto_if_src_chksum()
779 q->tot_len, chklen, src_ip, dst_ip); in udp_sendto_if_src_chksum()
[all …]
/components/net/lwip/lwip-2.1.2/src/core/
A Dudp.c521 const ip_addr_t *dst_ip, u16_t dst_port) in udp_sendto() argument
540 if (!IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_chksum()
551 if (ip_addr_ismulticast(dst_ip)) { in udp_sendto_chksum()
564 if (IP_IS_V4(dst_ip)) in udp_sendto_chksum()
584 netif = ip_route(&pcb->local_ip, dst_ip); in udp_sendto_chksum()
645 if (!IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_if_chksum()
651 if (IP_IS_V6(dst_ip)) { in udp_sendto_if_chksum()
728 !IP_ADDR_PCB_VERSION_MATCH(pcb, dst_ip)) { in udp_sendto_if_src_chksum()
736 IP_IS_V4(dst_ip) && in udp_sendto_if_src_chksum()
738 ip_addr_isbroadcast(dst_ip, netif)) { in udp_sendto_if_src_chksum()
[all …]
A Draw.c420 raw_sendto_if_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_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()
437 IP_IS_V6(dst_ip) ? IP6_HLEN : IP_HLEN); in raw_sendto_if_src()
454 err = ip_output_if_hdrincl(p, src_ip, dst_ip, netif); in raw_sendto_if_src()
488 if (IP_IS_V4(dst_ip)) { in raw_sendto_if_src()
490 if (!ip_get_option(pcb, SOF_BROADCAST) && ip_addr_isbroadcast(dst_ip, netif)) { in raw_sendto_if_src()
503 if (((pcb->flags & RAW_FLAGS_MULTICAST_LOOP) != 0) && ip_addr_ismulticast(dst_ip)) { in raw_sendto_if_src()
511 if (IP_IS_V6(dst_ip) && pcb->chksum_reqd) { in raw_sendto_if_src()
520 ttl = (ip_addr_ismulticast(dst_ip) ? raw_get_multicast_ttl(pcb) : pcb->ttl); in raw_sendto_if_src()
[all …]
/components/net/lwip/lwip-2.0.3/src/apps/snmp/
A Dsnmp_raw.c66 const ip_addr_t* dst_ip; in snmp_get_local_ip_for_dst() local
70 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
72 if ((dst_if != NULL) && (dst_ip != NULL)) { in snmp_get_local_ip_for_dst()
73 ip_addr_copy(*result, *dst_ip); in snmp_get_local_ip_for_dst()
A Dsnmp_netconn.c98 const ip_addr_t* dst_ip; in snmp_get_local_ip_for_dst() local
102 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
104 if ((dst_if != NULL) && (dst_ip != NULL)) { in snmp_get_local_ip_for_dst()
105 ip_addr_copy(*result, *dst_ip); in snmp_get_local_ip_for_dst()
/components/net/lwip/lwip-2.1.2/src/apps/snmp/
A Dsnmp_raw.c67 const ip_addr_t *dst_ip; in snmp_get_local_ip_for_dst() local
71 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
73 if ((dst_if != NULL) && (dst_ip != NULL)) { in snmp_get_local_ip_for_dst()
74 ip_addr_copy(*result, *dst_ip); in snmp_get_local_ip_for_dst()
A Dsnmp_netconn.c99 const ip_addr_t *dst_ip; in snmp_get_local_ip_for_dst() local
103 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
105 if ((dst_if != NULL) && (dst_ip != NULL)) { in snmp_get_local_ip_for_dst()
106 ip_addr_copy(*result, *dst_ip); in snmp_get_local_ip_for_dst()
/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dudp.h126 const ip_addr_t *dst_ip, u16_t dst_port,
129 const ip_addr_t *dst_ip, u16_t dst_port,
132 const ip_addr_t *dst_ip, u16_t dst_port);
137 const ip_addr_t *dst_ip, u16_t dst_port,
141 const ip_addr_t *dst_ip, u16_t dst_port,
146 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif,
/components/net/lwip/lwip-1.4.1/src/core/
A Dudp.c492 ip_addr_t *dst_ip, u16_t dst_port) argument
495 return udp_sendto_chksum(pcb, p, dst_ip, dst_port, 0, 0);
500 udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip, argument
510 netif = ip_route((ip_addr_ismulticast(dst_ip))?(&(pcb->multicast_ip)):(dst_ip));
512 netif = ip_route(dst_ip);
518 ip4_addr1_16(dst_ip), ip4_addr2_16(dst_ip), ip4_addr3_16(dst_ip), ip4_addr4_16(dst_ip)));
525 return udp_sendto_if(pcb, p, dst_ip, dst_port, netif);
550 ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) argument
553 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, 0, 0);
558 udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *dst_ip, argument
[all …]
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dudp.h131 const ip_addr_t *dst_ip, u16_t dst_port,
134 const ip_addr_t *dst_ip, u16_t dst_port,
137 const ip_addr_t *dst_ip, u16_t dst_port);
142 const ip_addr_t *dst_ip, u16_t dst_port,
146 const ip_addr_t *dst_ip, u16_t dst_port,
151 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif,
A Draw.h113 err_t raw_sendto_if_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, st…
/components/net/lwip/lwip-1.4.1/src/include/lwip/
A Dudp.h133 ip_addr_t *dst_ip, u16_t dst_port,
136 ip_addr_t *dst_ip, u16_t dst_port);
141 ip_addr_t *dst_ip, u16_t dst_port,
145 ip_addr_t *dst_ip, u16_t dst_port,
/components/net/lwip/lwip-1.4.1/test/unit/tcp/
A Dtcp_helper.c41 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
65 iphdr->dest.addr = dst_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()
A Dtcp_helper.h32 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/components/net/lwip/lwip-2.1.2/test/unit/tcp/
A Dtcp_helper.c47 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
72 iphdr->dest.addr = ip_2_ip4(dst_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()
A Dtcp_helper.h38 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/components/net/lwip/lwip-2.0.3/test/unit/tcp/
A Dtcp_helper.c42 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* dst_ip, in tcp_create_segment_wnd() argument
67 iphdr->dest.addr = ip_2_ip4(dst_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()
A Dtcp_helper.h32 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
/components/net/lwip/lwip-1.4.1/src/core/snmp/
A Dmsg_out.c217 ip_addr_t dst_ip; in snmp_send_trap() local
229 ip_addr_copy(dst_ip, dst_if->ip_addr); in snmp_send_trap()
231 trap_msg.sip_raw[0] = ip4_addr1(&dst_ip); in snmp_send_trap()
232 trap_msg.sip_raw[1] = ip4_addr2(&dst_ip); in snmp_send_trap()
233 trap_msg.sip_raw[2] = ip4_addr3(&dst_ip); in snmp_send_trap()
234 trap_msg.sip_raw[3] = ip4_addr4(&dst_ip); in snmp_send_trap()

Completed in 59 milliseconds