/third_party/lwip/src/include/lwip/ |
D | api.h | 211 struct netconn; 215 typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len); 218 struct netconn { struct 312 struct netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, 314 err_t netconn_prepare_delete(struct netconn *conn); 315 err_t netconn_delete(struct netconn *conn); 319 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); 327 err_t netconn_bind_if(struct netconn *conn, u8_t if_idx); 328 err_t netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port); [all …]
|
/third_party/lwip/src/api/ |
D | api_lib.c | 106 static err_t netconn_close_shutdown(struct netconn *conn, u8_t how); 148 struct netconn * 151 struct netconn *conn; in netconn_new_with_proto_and_callback() 192 netconn_prepare_delete(struct netconn *conn) in netconn_prepare_delete() 233 netconn_delete(struct netconn *conn) in netconn_delete() 269 netconn_getaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port, u8_t local) in netconn_getaddr() 307 netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port) in netconn_bind() 351 netconn_bind_if(struct netconn *conn, u8_t if_idx) in netconn_bind_if() 377 netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port) in netconn_connect() 409 netconn_disconnect(struct netconn *conn) in netconn_disconnect() [all …]
|
D | api_msg.c | 83 static err_t lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM); 84 static err_t lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM); 87 static void netconn_drain(struct netconn *conn); 164 struct netconn *conn; in recv_raw() 167 conn = (struct netconn *)arg; in recv_raw() 222 struct netconn *conn; 231 conn = (struct netconn *)arg; 295 struct netconn *conn; 304 conn = (struct netconn *)arg; 359 struct netconn *conn = (struct netconn *)arg; [all …]
|
D | sockets.c | 296 static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len); 308 static int free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, 310 static void free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *l… 389 struct netconn *conn = NULL; in done_socket() 509 alloc_socket(struct netconn *newconn, int accepted) in alloc_socket() 557 free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn, in free_socket_locked() 581 free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata) in free_socket_free_elements() 606 struct netconn *conn; in free_socket() 632 struct netconn *newconn; in lwip_accept() 1053 lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port, in lwip_sock_make_addr() [all …]
|
/third_party/lwip/ |
D | 0062-drop-netbuf-in-recv_udp-to-fix-mem-overflow.patch | 21 @@ -655,7 +655,11 @@ netconn_recv_data(struct netconn *conn, void **new_buf, u8_t apiflags) 33 @@ -827,6 +831,16 @@ netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf) 39 +netconn_recv_udp_raw_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags) 48 * Receive data (in form of a netbuf) from a UDP or RAW netconn 160 @@ -338,6 +338,9 @@ err_t netconn_accept(struct netconn *conn, struct netconn **new_conn); 161 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf); 162 err_t netconn_recv_udp_raw_netbuf(struct netconn *conn, struct netbuf **new_buf); 163 …err_t netconn_recv_udp_raw_netbuf_flags(struct netconn *conn, struct netbuf **new_buf, u8_t apif… 165 +err_t netconn_recv_udp_raw_pbuf_flags(struct netconn *conn, struct pbuf **new_buf, u8_t apiflags… 167 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf); [all …]
|
D | 0007-gazelle-fix-epoll_ctl-EPOLLET-mode-error.patch | 50 @@ -2889,6 +2889,9 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 60 @@ -2896,7 +2899,9 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 71 @@ -2905,6 +2910,9 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 81 @@ -2912,12 +2920,17 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
D | 0022-notify-app-that-sock-state-changes-to-CLOSE_WAIT.patch | 29 + API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0); 39 + API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0); 49 + API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
|
D | 0034-add-accept4-and-epoll_create1.patch | 30 * @param newconn the netconn for which to allocate a socket 37 -alloc_socket(struct netconn *newconn, int accepted) 38 +alloc_socket(struct netconn *newconn, int accepted, int flags) 42 @@ -570,12 +571,19 @@ alloc_socket(struct netconn *newconn, int accepted) 70 struct netconn *newconn; 101 /* create a netconn */
|
D | 0031-refactor-add-event-limit-send-pkts-num.patch | 16 @@ -2665,7 +2665,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 25 @@ -2686,7 +2686,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 63 -extern void add_epoll_event(struct netconn*, uint32_t);
|
D | 0057-same-node-gazellectl-a.patch | 24 @@ -605,6 +605,10 @@ alloc_socket(struct netconn *newconn, int accepted, int flags) 194 + struct netconn *netconn = NULL; 198 + netconn = (struct netconn *)pcb->callback_arg; 199 + sock = get_socket(netconn->socket); 411 /** sockets currently are built on netconns, each socket has one netconn */
|
D | 0050-lwip-reuse-ip-port.patch | 83 + struct netconn* conn = pcb->callback_arg; 170 @@ -318,6 +318,10 @@ struct netconn { 172 /** A callback function that is informed about events for this netconn */
|
D | 0073-lstack_lwip-external-api-start-with-do_lwip_-prefix.patch | 60 @@ -613,7 +613,7 @@ alloc_socket(struct netconn *newconn, int accepted, int flags) 177 -extern void gazelle_connected_callback(struct netconn *conn); 187 +extern void do_lwip_connected_callback(struct netconn *conn);
|
D | 0009-fix-stack-buffer-overflow-when-memcpy-addr.patch | 15 @@ -1319,6 +1319,8 @@ lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port,
|
D | 0016-lstack-support-mysql-mode.patch | 115 @@ -604,8 +596,6 @@ alloc_socket(struct netconn *newconn, int accepted) 526 /* create a netconn */ 544 @@ -2884,20 +2665,16 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 569 @@ -2905,27 +2682,16 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 807 -extern int add_epoll_event(struct netconn*, uint32_t); 808 -extern int del_epoll_event(struct netconn*, uint32_t); 811 +extern void add_epoll_event(struct netconn*, uint32_t); 855 /** sockets currently are built on netconns, each socket has one netconn */
|
D | UPGRADING | 97 instead of using one per netconn (these semaphores are used even with core locking 139 * LWIP_NETCONN_FULLDUPLEX allows netconn/sockets to be used for reading/writing from separate 163 err_t, not a pointer to new data/netconn. 261 * Implemented shutdown() at socket- and netconn-level 266 * Implemented many nonblocking socket/netconn functions
|
D | CHANGELOG | 108 * netconn: add LWIP_HOOK_NETCONN_EXTERNAL_RESOLVE to use external DNS resolver (patch #9427) 140 * netconn/netdb: added core locking support to netconn_gethostbyname (task #14523) 152 * netconn/sockets: remove fatal error handling, fix asynchronous error handling, 163 * netconn/sockets: vectorize netconn_write for TCP, treating a vectored I/O write 167 * netconn: added nonblocking accept/recv to netconn API (task #14396) 173 * Implement UDP and RAW multicast support for IPv6 (core API, not netconn/sockets) 350 * sockets/netconn: fix broken default ICMPv6 handling of checksums 407 (and therefore on a UDP socket/netconn) when the PCB is bound to IP_ADDR_ANY 449 decouple netconn, netif, ppp and 6LoWPAN from LWIP core. 454 automatically supported when an IPv6 netconn/socket is created. [all …]
|
D | 0033-alloc-socket-fail-clean-sock.patch | 15 @@ -598,6 +598,9 @@ alloc_socket(struct netconn *newconn, int accepted)
|
D | 0053-cleancode-improve-lwipopts.h-readability.patch | 89 @@ -1738,7 +1738,7 @@ lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM) 191 * Allocate a new socket for a given netconn. 192 @@ -553,7 +553,7 @@ alloc_socket(struct netconn *newconn, int accepted, int flags) 288 @@ -1188,7 +1188,7 @@ lwip_sock_make_addr(struct netconn *conn, ip_addr_t *fromaddr, u16_t port, 297 @@ -2692,7 +2692,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 306 @@ -2714,7 +2714,7 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len) 1046 API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0); 1055 API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0); 1100 API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0); 1368 /** Current state of the netconn. Non-TCP netconns are always [all …]
|
D | 0051-lwip-add-need_tso_send.patch | 16 @@ -1744,6 +1744,7 @@ lwip_netconn_do_writemore(struct netconn *conn WRITE_DELAYED_PARAM)
|
D | 0086-log-add-errevent-log-and-tcp-exception-statistics.patch | 29 @@ -2797,9 +2797,10 @@ event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_netconn.c | 51 struct netconn *conn; in snmp_netconn_thread() 89 result = netconn_sendto((struct netconn *)handle, &buf, dst, port); in snmp_sendto() 97 struct netconn *conn = (struct netconn *)handle; in snmp_get_local_ip_for_dst()
|
/third_party/lwip/src/include/lwip/priv/ |
D | api_msg.h | 82 struct netconn *conn; 224 struct netconn* netconn_alloc(enum netconn_type t, netconn_callback callback); 225 void netconn_free(struct netconn *conn);
|
D | sockets_priv.h | 69 struct netconn *conn;
|
D | memp_std.h | 68 LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN")
|
/third_party/lwip/src/include/lwip/apps/ |
D | snmp_opts.h | 79 #error SNMP stack can use only one of the APIs {raw, netconn} 83 #error SNMP stack needs a receive API and UDP {raw, netconn}
|