Home
last modified time | relevance | path

Searched refs:local_ip (Results 1 – 25 of 30) 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()
235 ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); in raw_bind()
240 if (IP_IS_V6(&pcb->local_ip) && in raw_bind()
241 ip6_addr_lacks_zone(ip_2_ip6(&pcb->local_ip), IP6_UNKNOWN)) { in raw_bind()
242 ip6_addr_select_zone(ip_2_ip6(&pcb->local_ip), ip_2_ip6(&pcb->local_ip)); in raw_bind()
298 ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip)); in raw_connect()
317 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { in raw_disconnect()
[all …]
Dudp.c156 if (IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { in udp_input_local_match()
175 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || in udp_input_local_match()
177 … ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { in udp_input_local_match()
184 if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { in udp_input_local_match()
270 ip_addr_debug_print_val(UDP_DEBUG, pcb->local_ip);
289 …if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_…
291 … if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) {
299 else if (!ip_addr_isany(&pcb->local_ip)) {
613 netif = ip4_route_src(ip_2_ip4(&pcb->local_ip), &pcb->mcast_ip4, group);
615 netif = ip4_route_src(ip_2_ip4(&pcb->local_ip), &pcb->mcast_ip4);
[all …]
Dtcp.c518 tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, in tcp_close_shutdown()
776 tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port); in tcp_abandon()
890 if ((IP_IS_V6(ipaddr) == IP_IS_V6_VAL(cpcb->local_ip)) &&
891 (ip_addr_isany(&cpcb->local_ip) ||
893 ip_addr_cmp(&cpcb->local_ip, ipaddr))) {
904 || (IP_GET_TYPE(ipaddr) != IP_GET_TYPE(&pcb->local_ip))
907 ip_addr_set(&pcb->local_ip, ipaddr);
1036 ip_addr_cmp(&lpcb->local_ip, &pcb->local_ip)) {
1062 IP_SET_TYPE_VAL(lpcb->remote_ip, pcb->local_ip.type);
1064 ip_addr_copy(lpcb->local_ip, pcb->local_ip);
[all …]
Dtcp_out.c1303 netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip); in tcp_output()
1309 if (ip_addr_isany(&pcb->local_ip)) { in tcp_output()
1310 const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); in tcp_output() local
1311 if (local_ip == NULL) { in tcp_output()
1314 ip_addr_copy(pcb->local_ip, *local_ip); in tcp_output()
1585 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1594 … seg->p->tot_len, TCPH_HDRLEN_BYTES(seg->tcphdr), &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1613 seg->p->tot_len, &pcb->local_ip, &pcb->remote_ip); in tcp_output_segment()
1620 err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl, in tcp_output_segment()
1994 const ip_addr_t *local_ip, const ip_addr_t *remote_ip, in tcp_rst() argument
[all …]
Dtcp_in.c273 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
311 ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) {
344 if (IP_IS_ANY_TYPE_VAL(lpcb->local_ip)) {
353 if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) {
356 } else if (ip_addr_isany(&lpcb->local_ip)) {
699 ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
730 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip, group);
732 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip);
901 pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip, group);
903 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/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/lwip/src/include/lwip/
Dip.h88 ip_addr_t local_ip; \
104 ip_addr_t local_ip; \
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…
Dopt.h2773 #define LWIP_HOOK_TCP_ISN(local_ip, local_port, remote_ip, remote_port) argument
/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.c1531 if (ip_addr_cmp(&msg->conn->pcb.ip->local_ip, IP6_ADDR_ANY) &&
1534 IP_SET_TYPE_VAL(msg->conn->pcb.tcp->local_ip, IPADDR_TYPE_ANY);
1933 msg->conn->pcb.ip->local_ip);
/third_party/lwip/test/unit/api/
Dtest_sockets.c781 tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, in START_TEST()
/third_party/node/deps/cares/src/lib/
Dares_init.c2568 void ares_set_local_ip4(ares_channel channel, unsigned int local_ip) in ares_set_local_ip4() argument
2570 channel->local_ip4 = local_ip; in ares_set_local_ip4()

12