Home
last modified time | relevance | path

Searched refs:local_ip (Results 1 – 25 of 33) sorted by relevance

12

/third_party/lwip/src/core/
Draw.c81 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { in raw_input_local_match()
101 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip))) { in raw_input_local_match()
108 if (ip_addr_isany(&pcb->local_ip) || in raw_input_local_match()
109 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { in raw_input_local_match()
227 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); in raw_bind()
232 if (IP_IS_V6(&pcb->local_ip) && in raw_bind()
233 ip6_addr_lacks_zone(ip_2_ip6(&pcb->local_ip), IP6_UNKNOWN)) { in raw_bind()
234 ip6_addr_select_zone(ip_2_ip6(&pcb->local_ip), ip_2_ip6(&pcb->local_ip)); in raw_bind()
290 ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip)); in raw_connect()
309 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { in raw_disconnect()
[all …]
Dudp.c145 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { in udp_input_local_match()
164 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || in udp_input_local_match()
166 … ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { in udp_input_local_match()
173 if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { in udp_input_local_match()
256 ip_addr_debug_print_val(UDP_DEBUG, pcb->local_ip); in udp_input()
271 …if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_… in udp_input()
273 … if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) { in udp_input()
281 else if (!ip_addr_isany(&pcb->local_ip)) { in udp_input()
578 netif = ip4_route_src(ip_2_ip4(&pcb->local_ip), &pcb->mcast_ip4); in udp_sendto_chksum()
588 netif = ip_route(&pcb->local_ip, dst_ip); in udp_sendto_chksum()
[all …]
Dtcp.c360 tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, in tcp_close_shutdown()
618 tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port); in tcp_abandon()
728 if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) && in tcp_bind()
729 (ip_addr_isany(&cpcb->local_ip) || in tcp_bind()
731 ip_addr_cmp(&cpcb->local_ip, ipaddr))) { in tcp_bind()
742 || (IP_GET_TYPE(ipaddr) != IP_GET_TYPE(&pcb->local_ip)) in tcp_bind()
745 ip_addr_set(&pcb->local_ip, ipaddr); in tcp_bind()
874 ip_addr_cmp(&lpcb->local_ip, &pcb->local_ip)) { in tcp_listen_with_backlog_and_err()
897 IP_SET_TYPE_VAL(lpcb->remote_ip, pcb->local_ip.type); in tcp_listen_with_backlog_and_err()
899 ip_addr_copy(lpcb->local_ip, pcb->local_ip); in tcp_listen_with_backlog_and_err()
[all …]
Dtcp_out.c1291 netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip); in tcp_output()
1297 if (ip_addr_isany(&pcb->local_ip)) { in tcp_output()
1298 const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); in tcp_output() local
1299 if (local_ip == NULL) { in tcp_output()
1302 ip_addr_copy(pcb->local_ip, *local_ip); in tcp_output()
1573 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1582 … seg->p->tot_len, TCPH_HDRLEN_BYTES(seg->tcphdr), &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1601 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1608 err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl, in tcp_output_segment()
1982 const ip_addr_t *local_ip, const ip_addr_t *remote_ip, in tcp_rst() argument
[all …]
Dtcp_in.c265 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
298 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
327 if (IP_IS_ANY_TYPE_VAL(lpcb->local_ip)) {
336 if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
339 } else if (ip_addr_isany(&lpcb->local_ip)) {
676 ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
706 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
870 pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip);
Daltcp_tcp.c506 return &pcb->local_ip; in altcp_tcp_get_ip()
/third_party/lwip/src/apps/snmp/
Dsnmp_mib2_tcp.c175 value->u32 = ip_2_ip4(&pcb->local_ip)->addr; in tcp_ConnTable_get_cell_value_core()
206 ip4_addr_t local_ip; in tcp_ConnTable_get_cell_value() local
218 …snmp_oid_to_ip4(&row_oid[0], &local_ip); /* we know it succeeds because of oid_in_range check abov… in tcp_ConnTable_get_cell_value()
229 if (IP_IS_V4_VAL(pcb->local_ip) && in tcp_ConnTable_get_cell_value()
230 ip4_addr_cmp(&local_ip, ip_2_ip4(&pcb->local_ip)) && (local_port == pcb->local_port)) { in tcp_ConnTable_get_cell_value()
272 if (IP_IS_V4_VAL(pcb->local_ip)) { in tcp_ConnTable_get_next_cell_instance_and_value()
273 snmp_ip4_to_oid(ip_2_ip4(&pcb->local_ip), &test_oid[0]); in tcp_ConnTable_get_next_cell_instance_and_value()
332 ip_addr_t local_ip, remote_ip; in tcp_ConnectionTable_get_cell_value() local
342 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in tcp_ConnectionTable_get_cell_value()
358 if (ip_addr_cmp(&local_ip, &pcb->local_ip) && in tcp_ConnectionTable_get_cell_value()
[all …]
Dsnmp_mib2_udp.c120 ip_addr_t local_ip, remote_ip; in udp_endpointTable_get_cell_value() local
128 idx += snmp_oid_to_ip_port(&row_oid[idx], row_oid_len - idx, &local_ip, &local_port); in udp_endpointTable_get_cell_value()
150 if (ip_addr_cmp(&local_ip, &pcb->local_ip) && in udp_endpointTable_get_cell_value()
187 idx += snmp_ip_port_to_oid(&pcb->local_ip, pcb->local_port, &test_oid[idx]); in udp_endpointTable_get_next_cell_instance_and_value()
233 value->u32 = ip_2_ip4(&pcb->local_ip)->addr; in udp_Table_get_cell_value_core()
265 if (IP_IS_V4_VAL(pcb->local_ip)) { in udp_Table_get_cell_value()
266 if (ip4_addr_cmp(&ip, ip_2_ip4(&pcb->local_ip)) && (port == pcb->local_port)) { in udp_Table_get_cell_value()
293 if (IP_IS_V4_VAL(pcb->local_ip)) { in udp_Table_get_next_cell_instance_and_value()
294 snmp_ip4_to_oid(ip_2_ip4(&pcb->local_ip), &test_oid[0]); in udp_Table_get_next_cell_instance_and_value()
Dsnmp_raw.c71 ip_route_get_local_ip(&udp_pcb->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
Dsnmp_netconn.c103 ip_route_get_local_ip(&conn->pcb.udp->local_ip, dst, dst_if, dst_ip); in snmp_get_local_ip_for_dst()
/third_party/lwip/test/unit/tcp/
Dtcp_helper.c128 return tcp_create_segment(&pcb->remote_ip, &pcb->local_ip, pcb->remote_port, pcb->local_port, in tcp_create_rx_segment()
140 return tcp_create_segment_wnd(&pcb->remote_ip, &pcb->local_ip, pcb->remote_port, pcb->local_port, in tcp_create_rx_segment_wnd()
146 tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, const ip_addr_t* local_ip, in tcp_set_state() argument
163 ip_addr_copy(pcb->local_ip, *local_ip); in tcp_set_state()
169 ip_addr_copy(pcb->local_ip, *local_ip); in tcp_set_state()
173 ip_addr_copy(pcb->local_ip, *local_ip); in tcp_set_state()
Dtcp_helper.h45 void tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, const ip_addr_t* local_ip,
Dtest_tcp.c127 …ip_addr_set_ip4_u32_val(src_addr, lwip_htonl(lwip_ntohl(ip_addr_get_ip4_u32(&lpcb->local_ip)) + 1)… in START_TEST()
130 p = tcp_create_segment(&src_addr, &lpcb->local_ip, 12345, in START_TEST()
141 p = tcp_create_segment(&src_addr, &lpcb->local_ip, 12345, in START_TEST()
/third_party/curl/lib/
Dconnect.h84 char *local_ip, int *local_port);
86 char *local_ip, int local_port);
Dconnect.c612 char *local_ip, int local_port) in Curl_persistconninfo() argument
615 if(local_ip && local_ip[0]) in Curl_persistconninfo()
616 memcpy(data->info.conn_local_ip, local_ip, MAX_IPADR_LEN); in Curl_persistconninfo()
717 char *local_ip, int *local_port) in Curl_conninfo_local() argument
732 local_ip, local_port)) { in Curl_conninfo_local()
740 (void)local_ip; in Curl_conninfo_local()
753 char local_ip[MAX_IPADR_LEN] = ""; in Curl_updateconninfo() local
759 Curl_conninfo_local(data, sockfd, local_ip, &local_port); in Curl_updateconninfo()
764 Curl_persistconninfo(data, conn, local_ip, local_port); in Curl_updateconninfo()
/third_party/toybox/toys/pending/
Dlsof.c176 char local_ip[INET6_ADDRSTRLEN] = {0}; in scan_ip() local
201 inet_ntop(af, &local, local_ip, sizeof(local_ip)); in scan_ip()
208 local_ip, local_port, remote_ip, remote_port, in scan_ip()
213 local_ip, local_port, remote_ip, remote_port); in scan_ip()
/third_party/curl/tests/data/
Dtest97062 …entry_path":null,"http_code":200,"http_connect":0,"http_version":"1.1","local_ip":"127.0.0.1","loc…
/third_party/lwip/src/include/lwip/
Daltcp.h198 #define altcp_get_ip(pcb, local) ((local) ? (&(pcb)->local_ip) : (&(pcb)->remote_ip))
Dip_addr.h110 #define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr) (IP_GET_TYPE(&pcb->local_ip) == IP_GET_TYPE(ip…
111 #define IP_ADDR_PCB_VERSION_MATCH(pcb, ipaddr) (IP_IS_ANY_TYPE_VAL(pcb->local_ip) || IP_ADDR_PCB_VE…
Dip.h78 ip_addr_t local_ip; \
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtsp/
Dgstrtspconnection.c184 gchar *local_ip; member
458 gchar *local_ip; in gst_rtsp_connection_create_from_socket() local
465 if (!collect_addresses (socket, &local_ip, NULL, FALSE, &err)) in gst_rtsp_connection_create_from_socket()
491 newconn->local_ip = local_ip; in gst_rtsp_connection_create_from_socket()
509 g_free (local_ip); in gst_rtsp_connection_create_from_socket()
2750 if (conn->local_ip) in gen_tunnel_reply()
2752 conn->local_ip); in gen_tunnel_reply()
2886 g_free (conn->local_ip); in gst_rtsp_connection_close()
2887 conn->local_ip = NULL; in gst_rtsp_connection_close()
/third_party/lwip/src/apps/lwiperf/
Dlwiperf.c241 &conn->conn_pcb->local_ip, conn->conn_pcb->local_port, in lwip_tcp_conn_report()
794 ret = lwiperf_start_tcp_server_impl(&state->conn_pcb->local_ip, LWIPERF_TCP_PORT_DEFAULT, in lwiperf_start_tcp_client()
/third_party/node/deps/cares/include/
Dares.h363 CARES_EXTERN void ares_set_local_ip4(ares_channel channel, unsigned int local_ip);
/third_party/lwip/src/include/lwip/priv/
Dtcp_priv.h468 const ip_addr_t *local_ip, const ip_addr_t *remote_ip,
/third_party/lwip/src/api/
Dapi_msg.c1475 if (ip_addr_cmp(&msg->conn->pcb.ip->local_ip, IP6_ADDR_ANY) &&
1478 IP_SET_TYPE_VAL(msg->conn->pcb.tcp->local_ip, IPADDR_TYPE_ANY);
1877 msg->conn->pcb.ip->local_ip);

12