Home
last modified time | relevance | path

Searched refs:ip_addr_t (Results 1 – 25 of 110) sorted by relevance

12345

/third_party/lwip/src/include/lwip/
Ddns.h77 ip_addr_t addr;
94 extern const ip_addr_t dns_mquery_v4group;
97 extern const ip_addr_t dns_mquery_v6group;
107 typedef void (*dns_found_callback)(const char *name, const ip_addr_t *ipaddr, void *callback_arg);
111 void dns_setserver(u8_t numdns, const ip_addr_t *dnsserver);
112 const ip_addr_t* dns_getserver(u8_t numdns);
113 err_t dns_gethostbyname(const char *hostname, ip_addr_t *addr,
115 err_t dns_gethostbyname_addrtype(const char *hostname, ip_addr_t *addr,
122 err_t dns_local_lookup(const char *hostname, ip_addr_t *addr, u8_t dns_addrtype);
124 int dns_local_removehost(const char *hostname, const ip_addr_t *addr);
[all …]
Dudp.h78 const ip_addr_t *addr, u16_t port);
126 err_t udp_bind (struct udp_pcb *pcb, const ip_addr_t *ipaddr,
129 err_t udp_connect (struct udp_pcb *pcb, const ip_addr_t *ipaddr,
135 const ip_addr_t *dst_ip, u16_t dst_port,
138 const ip_addr_t *dst_ip, u16_t dst_port,
139 struct netif *netif, const ip_addr_t *src_ip);
141 const ip_addr_t *dst_ip, u16_t dst_port);
146 const ip_addr_t *dst_ip, u16_t dst_port,
150 const ip_addr_t *dst_ip, u16_t dst_port,
155 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif,
[all …]
Draw.h72 const ip_addr_t *addr);
111 err_t raw_bind (struct raw_pcb *pcb, const ip_addr_t *ipaddr);
113 err_t raw_connect (struct raw_pcb *pcb, const ip_addr_t *ipaddr);
116 err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr);
117 …f_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, struct netif *netif, const ip_…
Dnetif.h271 ip_addr_t ip_addr;
272 ip_addr_t netmask;
273 ip_addr_t gw;
277 ip_addr_t ip6_addr[LWIP_IPV6_NUM_ADDRESSES];
482 #define netif_ip_addr4(netif) ((const ip_addr_t*)&((netif)->ip_addr))
484 #define netif_ip_netmask4(netif) ((const ip_addr_t*)&((netif)->netmask))
486 #define netif_ip_gw4(netif) ((const ip_addr_t*)&((netif)->gw))
548 #define netif_ip_addr6(netif, i) ((const ip_addr_t*)(&((netif)->ip6_addr[i])))
654 const ip_addr_t* old_address;
655 const ip_addr_t* old_netmask;
[all …]
Dapi.h319 err_t netconn_getaddr(struct netconn *conn, ip_addr_t *addr,
326 err_t netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port);
328 err_t netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port);
341 const ip_addr_t *addr, u16_t port);
354 err_t netconn_join_leave_group(struct netconn *conn, const ip_addr_t *multiaddr,
355 const ip_addr_t *netif_addr, enum netconn_igmp join_or_leave);
356 err_t netconn_join_leave_group_netif(struct netconn *conn, const ip_addr_t *multiaddr,
361 err_t netconn_gethostbyname_addrtype(const char *name, ip_addr_t *addr, u8_t dns_addrtype);
364 err_t netconn_gethostbyname(const char *name, ip_addr_t *addr);
Dinet_chksum.h96 const ip_addr_t *src, const ip_addr_t *dest);
98 u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest);
Dip_addr.h76 } ip_addr_t; typedef
78 extern const ip_addr_t ip_addr_any_type;
239 char *ipaddr_ntoa(const ip_addr_t *addr);
240 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen);
241 int ipaddr_aton(const char *cp, ip_addr_t *addr);
270 typedef ip4_addr_t ip_addr_t; typedef
318 typedef ip6_addr_t ip_addr_t; typedef
369 extern const ip_addr_t ip_addr_any;
370 extern const ip_addr_t ip_addr_broadcast;
405 extern const ip_addr_t ip6_addr_any;
/third_party/lwip/test/unit/tcp/
Dtcp_helper.h29 extern const ip_addr_t test_local_ip;
30 extern const ip_addr_t test_remote_ip;
31 extern const ip_addr_t test_netmask;
38 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip,
45 void tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, const ip_addr_t* local_ip,
46 const ip_addr_t* remote_ip, u16_t local_port, u16_t remote_port);
55 const ip_addr_t *ip_addr, const ip_addr_t *netmask);
Dtcp_helper.c13 const ip_addr_t test_local_ip = IPADDR4_INIT_BYTES(192, 168, 1, 1);
14 const ip_addr_t test_remote_ip = IPADDR4_INIT_BYTES(192, 168, 1, 2);
15 const ip_addr_t test_netmask = IPADDR4_INIT_BYTES(255, 255, 255, 0);
47 tcp_create_segment_wnd(ip_addr_t* src_ip, ip_addr_t* 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()
146 tcp_set_state(struct tcp_pcb* pcb, enum tcp_state state, const ip_addr_t* local_ip, in tcp_set_state()
147 const ip_addr_t* remote_ip, u16_t local_port, u16_t remote_port) in tcp_set_state()
300 const ip_addr_t *ip_addr, const ip_addr_t *netmask) in test_tcp_init_netif()
/third_party/lwip/src/include/lwip/apps/
Dlwiperf.h81 const ip_addr_t* local_addr, u16_t local_port, const ip_addr_t* remote_addr, u16_t remote_port,
84 void* lwiperf_start_tcp_server(const ip_addr_t* local_addr, u16_t local_port,
87 void* lwiperf_start_tcp_client(const ip_addr_t* remote_addr, u16_t remote_port,
90 void* lwiperf_start_tcp_client_default(const ip_addr_t* remote_addr,
Dhttp_client.h126 ip_addr_t proxy_addr;
142 err_t httpc_get_file(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc_connect…
148 err_t httpc_get_file_to_disk(const ip_addr_t* server_addr, u16_t port, const char* uri, const httpc…
/third_party/lwip/src/apps/snmp/
Dsnmp_raw.c47 snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) in snmp_recv()
57 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto()
63 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst()
67 const ip_addr_t *dst_ip; in snmp_get_local_ip_for_dst()
Dsnmp_msg.h84 const ip_addr_t *source_ip;
173 void snmp_receive(void *handle, struct pbuf *p, const ip_addr_t *source_ip, u16_t port);
174 err_t snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port);
175 u8_t snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result);
Dsnmp_netconn.c82 snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port) in snmp_sendto()
95 snmp_get_local_ip_for_dst(void *handle, const ip_addr_t *dst, ip_addr_t *result) in snmp_get_local_ip_for_dst()
99 const ip_addr_t *dst_ip; in snmp_get_local_ip_for_dst()
/third_party/lwip/src/include/lwip/priv/
Daltcp_priv.h61 typedef err_t (*altcp_bind_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port);
62 typedef err_t (*altcp_connect_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altc…
84 typedef err_t (*altcp_get_tcp_addrinfo_fn)(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_…
85 typedef ip_addr_t *(*altcp_get_ip_fn)(struct altcp_pcb *conn, int local);
130 err_t altcp_default_bind(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port);
142 err_t altcp_default_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *por…
143 ip_addr_t *altcp_default_get_ip(struct altcp_pcb *conn, int local);
Dapi_msg.h95 API_MSG_M_DEF_C(ip_addr_t, ipaddr);
101 ip_addr_t API_MSG_M_DEF(ipaddr);
140 API_MSG_M_DEF_C(ip_addr_t, multiaddr);
141 API_MSG_M_DEF_C(ip_addr_t, netif_addr);
177 ip_addr_t API_MSG_M_DEF(addr);
/third_party/lwip/src/api/
Dnetdb.c54 ip_addr_t *addr_list[2];
55 ip_addr_t addr;
90 ip_addr_t addr; in lwip_gethostbyname()
95 HOSTENT_STORAGE ip_addr_t s_hostent_addr; in lwip_gethostbyname()
96 HOSTENT_STORAGE ip_addr_t *s_phostent_addr[2]; in lwip_gethostbyname()
117 s_hostent.h_length = sizeof(ip_addr_t); in lwip_gethostbyname()
217 ret->h_length = sizeof(ip_addr_t); in lwip_gethostbyname_r()
272 ip_addr_t addr; in lwip_getaddrinfo()
/third_party/lwip/test/unit/mqtt/
Dtest_mqtt.c8 const ip_addr_t test_mqtt_local_ip = IPADDR4_INIT_BYTES(192, 168, 1, 1);
9 const ip_addr_t test_mqtt_remote_ip = IPADDR4_INIT_BYTES(192, 168, 1, 2);
10 const ip_addr_t test_mqtt_netmask = IPADDR4_INIT_BYTES(255, 255, 255, 0);
22 test_mqtt_init_netif(struct netif *netif, const ip_addr_t *ip_addr, const ip_addr_t *netmask) in test_mqtt_init_netif()
/third_party/lwip/src/core/
Dip.c68 const ip_addr_t ip_addr_any_type = IPADDR_ANY_TYPE_INIT;
79 char *ipaddr_ntoa(const ip_addr_t *addr) in ipaddr_ntoa()
101 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) in ipaddr_ntoa_r()
123 ipaddr_aton(const char *cp, ip_addr_t *addr) in ipaddr_aton()
Dnetif.c525 netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr)
540 netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr)
547 ip_addr_t new_addr;
585 ip_addr_t old_addr;
606 netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm)
646 ip_addr_t old_nm_val;
647 ip_addr_t *old_nm = &old_nm_val;
649 ip_addr_t *old_nm = NULL;
670 netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw)
707 ip_addr_t old_gw_val;
[all …]
Ddns.c227 ip_addr_t ipaddr;
285 static err_t dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_t dns_…
290 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t por…
292 static void dns_call_found(u8_t idx, ip_addr_t *addr);
306 static ip_addr_t dns_servers[DNS_MAX_SERVERS];
309 const ip_addr_t dns_mquery_v4group = DNS_MQUERY_IPV4_GROUP_INIT;
312 const ip_addr_t dns_mquery_v6group = DNS_MQUERY_IPV6_GROUP_INIT;
324 ip_addr_t dnsserver; in dns_init()
370 dns_setserver(u8_t numdns, const ip_addr_t *dnsserver) in dns_setserver()
389 const ip_addr_t *
[all …]
Draw.c229 raw_bind(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_bind()
286 raw_connect(struct raw_pcb *pcb, const ip_addr_t *ipaddr) in raw_connect()
362 raw_sendto(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *ipaddr) in raw_sendto()
365 const ip_addr_t *src_ip; in raw_sendto()
443 raw_sendto_if_src(struct raw_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, in raw_sendto_if_src()
444 struct netif *netif, const ip_addr_t *src_ip) in raw_sendto_if_src()
688 void raw_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) in raw_netif_ip_addr_changed()
Dudp.c547 const ip_addr_t *dst_ip, u16_t dst_port)
556 udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
671 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif)
679 udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
684 const ip_addr_t *src_ip;
746 … const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip)
754 udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip,
756 u16_t chksum, const ip_addr_t *src_ip)
978 udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
983 ip_addr_t zoned_ipaddr;
[all …]
/third_party/lwip/src/apps/sntp/
Dsntp.c233 ip_addr_t addr;
262 static ip_addr_t sntp_last_server_address;
439 sntp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) in sntp_recv()
543 sntp_send_request(const ip_addr_t *server_addr) in sntp_send_request()
584 sntp_dns_found(const char *hostname, const ip_addr_t *ipaddr, void *arg) in sntp_dns_found()
610 ip_addr_t sntp_server_address; in sntp_request()
784 sntp_setserver(u8_t idx, const ip_addr_t *server) in sntp_setserver()
815 ip_addr_t addr; in dhcp_set_ntp_servers()
834 dhcp6_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs) in dhcp6_set_ntp_servers()
861 const ip_addr_t *
/third_party/lwip/test/unit/ip6/
Dtest_ip6.c147 ip_addr_t addr; in START_TEST()
149 const ip_addr_t addr_expected = IPADDR6_INIT_HOST(0, 0, 0xFFFF, 0xD4CC65D2); in START_TEST()
209 const ip_addr_t addr = IPADDR6_INIT_HOST(0, 0, 0xFFFF, 0xD4CC65D2); in START_TEST()
221 ip_addr_t addr;
293 ip_addr_t my_addr = IPADDR6_INIT_HOST(0x20010db8, 0x0, 0x0, 0x1); in START_TEST()
294 ip_addr_t peer_addr = IPADDR6_INIT_HOST(0x20010db8, 0x0, 0x0, 0x4); in START_TEST()

12345