Prusa MINI Firmware overview
api.h
Go to the documentation of this file.
1 /**
2  * @file
3  * netconn API (to be used from non-TCPIP threads)
4  */
5 
6 /*
7  * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without modification,
11  * are permitted provided that the following conditions are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright notice,
14  * this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright notice,
16  * this list of conditions and the following disclaimer in the documentation
17  * and/or other materials provided with the distribution.
18  * 3. The name of the author may not be used to endorse or promote products
19  * derived from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
22  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
24  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
26  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
29  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
30  * OF SUCH DAMAGE.
31  *
32  * This file is part of the lwIP TCP/IP stack.
33  *
34  * Author: Adam Dunkels <adam@sics.se>
35  *
36  */
37 #ifndef LWIP_HDR_API_H
38 #define LWIP_HDR_API_H
39 
40 #include "lwip/opt.h"
41 
42 #if LWIP_NETCONN || LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
43 /* Note: Netconn API is always available when sockets are enabled -
44  * sockets are implemented on top of them */
45 
46 #include "lwip/arch.h"
47 #include "lwip/netbuf.h"
48 #include "lwip/sys.h"
49 #include "lwip/ip_addr.h"
50 #include "lwip/err.h"
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 /* Throughout this file, IP addresses and port numbers are expected to be in
57  * the same byte order as in the corresponding pcb.
58  */
59 
60 /* Flags for netconn_write (u8_t) */
61 #define NETCONN_NOFLAG 0x00
62 #define NETCONN_NOCOPY 0x00 /* Only for source code compatibility */
63 #define NETCONN_COPY 0x01
64 #define NETCONN_MORE 0x02
65 #define NETCONN_DONTBLOCK 0x04
66 
67 /* Flags for struct netconn.flags (u8_t) */
68 /** Should this netconn avoid blocking? */
69 #define NETCONN_FLAG_NON_BLOCKING 0x02
70 /** Was the last connect action a non-blocking one? */
71 #define NETCONN_FLAG_IN_NONBLOCKING_CONNECT 0x04
72 /** If a nonblocking write has been rejected before, poll_tcp needs to
73  check if the netconn is writable again */
74 #define NETCONN_FLAG_CHECK_WRITESPACE 0x10
75 #if LWIP_IPV6
76 /** If this flag is set then only IPv6 communication is allowed on the
77  netconn. As per RFC#3493 this features defaults to OFF allowing
78  dual-stack usage by default. */
79 #define NETCONN_FLAG_IPV6_V6ONLY 0x20
80 #endif /* LWIP_IPV6 */
81 
82 
83 /* Helpers to process several netconn_types by the same code */
84 #define NETCONNTYPE_GROUP(t) ((t)&0xF0)
85 #define NETCONNTYPE_DATAGRAM(t) ((t)&0xE0)
86 #if LWIP_IPV6
87 #define NETCONN_TYPE_IPV6 0x08
88 #define NETCONNTYPE_ISIPV6(t) (((t)&NETCONN_TYPE_IPV6) != 0)
89 #define NETCONNTYPE_ISUDPLITE(t) (((t)&0xF3) == NETCONN_UDPLITE)
90 #define NETCONNTYPE_ISUDPNOCHKSUM(t) (((t)&0xF3) == NETCONN_UDPNOCHKSUM)
91 #else /* LWIP_IPV6 */
92 #define NETCONNTYPE_ISIPV6(t) (0)
93 #define NETCONNTYPE_ISUDPLITE(t) ((t) == NETCONN_UDPLITE)
94 #define NETCONNTYPE_ISUDPNOCHKSUM(t) ((t) == NETCONN_UDPNOCHKSUM)
95 #endif /* LWIP_IPV6 */
96 
97 /** @ingroup netconn_common
98  * Protocol family and type of the netconn
99  */
100 enum netconn_type {
101  NETCONN_INVALID = 0,
102  /** TCP IPv4 */
103  NETCONN_TCP = 0x10,
104 #if LWIP_IPV6
105  /** TCP IPv6 */
106  NETCONN_TCP_IPV6 = NETCONN_TCP | NETCONN_TYPE_IPV6 /* 0x18 */,
107 #endif /* LWIP_IPV6 */
108  /** UDP IPv4 */
109  NETCONN_UDP = 0x20,
110  /** UDP IPv4 lite */
111  NETCONN_UDPLITE = 0x21,
112  /** UDP IPv4 no checksum */
113  NETCONN_UDPNOCHKSUM = 0x22,
114 
115 #if LWIP_IPV6
116  /** UDP IPv6 (dual-stack by default, unless you call @ref netconn_set_ipv6only) */
117  NETCONN_UDP_IPV6 = NETCONN_UDP | NETCONN_TYPE_IPV6 /* 0x28 */,
118  /** UDP IPv6 lite (dual-stack by default, unless you call @ref netconn_set_ipv6only) */
119  NETCONN_UDPLITE_IPV6 = NETCONN_UDPLITE | NETCONN_TYPE_IPV6 /* 0x29 */,
120  /** UDP IPv6 no checksum (dual-stack by default, unless you call @ref netconn_set_ipv6only) */
121  NETCONN_UDPNOCHKSUM_IPV6 = NETCONN_UDPNOCHKSUM | NETCONN_TYPE_IPV6 /* 0x2a */,
122 #endif /* LWIP_IPV6 */
123 
124  /** Raw connection IPv4 */
125  NETCONN_RAW = 0x40
126 #if LWIP_IPV6
127  /** Raw connection IPv6 (dual-stack by default, unless you call @ref netconn_set_ipv6only) */
128  , NETCONN_RAW_IPV6 = NETCONN_RAW | NETCONN_TYPE_IPV6 /* 0x48 */
129 #endif /* LWIP_IPV6 */
130 };
131 
132 /** Current state of the netconn. Non-TCP netconns are always
133  * in state NETCONN_NONE! */
134 enum netconn_state {
135  NETCONN_NONE,
136  NETCONN_WRITE,
137  NETCONN_LISTEN,
138  NETCONN_CONNECT,
139  NETCONN_CLOSE
140 };
141 
142 /** Used to inform the callback function about changes
143  *
144  * Event explanation:
145  *
146  * In the netconn implementation, there are three ways to block a client:
147  *
148  * - accept mbox (sys_arch_mbox_fetch(&conn->acceptmbox, &accept_ptr, 0); in netconn_accept())
149  * - receive mbox (sys_arch_mbox_fetch(&conn->recvmbox, &buf, 0); in netconn_recv_data())
150  * - send queue is full (sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); in lwip_netconn_do_write())
151  *
152  * The events have to be seen as events signaling the state of these mboxes/semaphores. For non-blocking
153  * connections, you need to know in advance whether a call to a netconn function call would block or not,
154  * and these events tell you about that.
155  *
156  * RCVPLUS events say: Safe to perform a potentially blocking call call once more.
157  * They are counted in sockets - three RCVPLUS events for accept mbox means you are safe
158  * to call netconn_accept 3 times without being blocked.
159  * Same thing for receive mbox.
160  *
161  * RCVMINUS events say: Your call to to a possibly blocking function is "acknowledged".
162  * Socket implementation decrements the counter.
163  *
164  * For TX, there is no need to count, its merely a flag. SENDPLUS means you may send something.
165  * SENDPLUS occurs when enough data was delivered to peer so netconn_send() can be called again.
166  * A SENDMINUS event occurs when the next call to a netconn_send() would be blocking.
167  */
168 enum netconn_evt {
169  NETCONN_EVT_RCVPLUS,
170  NETCONN_EVT_RCVMINUS,
171  NETCONN_EVT_SENDPLUS,
172  NETCONN_EVT_SENDMINUS,
173  NETCONN_EVT_ERROR
174 };
175 
176 #if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD)
177 /** Used for netconn_join_leave_group() */
178 enum netconn_igmp {
179  NETCONN_JOIN,
180  NETCONN_LEAVE
181 };
182 #endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */
183 
184 #if LWIP_DNS
185 /* Used for netconn_gethostbyname_addrtype(), these should match the DNS_ADDRTYPE defines in dns.h */
186 #define NETCONN_DNS_DEFAULT NETCONN_DNS_IPV4_IPV6
187 #define NETCONN_DNS_IPV4 0
188 #define NETCONN_DNS_IPV6 1
189 #define NETCONN_DNS_IPV4_IPV6 2 /* try to resolve IPv4 first, try IPv6 if IPv4 fails only */
190 #define NETCONN_DNS_IPV6_IPV4 3 /* try to resolve IPv6 first, try IPv4 if IPv6 fails only */
191 #endif /* LWIP_DNS */
192 
193 /* forward-declare some structs to avoid to include their headers */
194 struct ip_pcb;
195 struct tcp_pcb;
196 struct udp_pcb;
197 struct raw_pcb;
198 struct netconn;
199 struct api_msg;
200 
201 /** A callback prototype to inform about events for a netconn */
202 typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len);
203 
204 /** A netconn descriptor */
205 struct netconn {
206  /** type of the netconn (TCP, UDP or RAW) */
207  enum netconn_type type;
208  /** current state of the netconn */
209  enum netconn_state state;
210  /** the lwIP internal protocol control block */
211  union {
212  struct ip_pcb *ip;
213  struct tcp_pcb *tcp;
214  struct udp_pcb *udp;
215  struct raw_pcb *raw;
216  } pcb;
217  /** the last error this netconn had */
218  err_t last_err;
219 #if !LWIP_NETCONN_SEM_PER_THREAD
220  /** sem that is used to synchronously execute functions in the core context */
221  sys_sem_t op_completed;
222 #endif
223  /** mbox where received packets are stored until they are fetched
224  by the netconn application thread (can grow quite big) */
225  sys_mbox_t recvmbox;
226 #if LWIP_TCP
227  /** mbox where new connections are stored until processed
228  by the application thread */
229  sys_mbox_t acceptmbox;
230 #endif /* LWIP_TCP */
231  /** only used for socket layer */
232 #if LWIP_SOCKET
233  int socket;
234 #endif /* LWIP_SOCKET */
235 #if LWIP_SO_SNDTIMEO
236  /** timeout to wait for sending data (which means enqueueing data for sending
237  in internal buffers) in milliseconds */
238  s32_t send_timeout;
239 #endif /* LWIP_SO_RCVTIMEO */
240 #if LWIP_SO_RCVTIMEO
241  /** timeout in milliseconds to wait for new data to be received
242  (or connections to arrive for listening netconns) */
243  int recv_timeout;
244 #endif /* LWIP_SO_RCVTIMEO */
245 #if LWIP_SO_RCVBUF
246  /** maximum amount of bytes queued in recvmbox
247  not used for TCP: adjust TCP_WND instead! */
248  int recv_bufsize;
249  /** number of bytes currently in recvmbox to be received,
250  tested against recv_bufsize to limit bytes on recvmbox
251  for UDP and RAW, used for FIONREAD */
252  int recv_avail;
253 #endif /* LWIP_SO_RCVBUF */
254 #if LWIP_SO_LINGER
255  /** values <0 mean linger is disabled, values > 0 are seconds to linger */
256  s16_t linger;
257 #endif /* LWIP_SO_LINGER */
258  /** flags holding more netconn-internal state, see NETCONN_FLAG_* defines */
259  u8_t flags;
260 #if LWIP_TCP
261  /** TCP: when data passed to netconn_write doesn't fit into the send buffer,
262  this temporarily stores how much is already sent. */
263  size_t write_offset;
264  /** TCP: when data passed to netconn_write doesn't fit into the send buffer,
265  this temporarily stores the message.
266  Also used during connect and close. */
267  struct api_msg *current_msg;
268 #endif /* LWIP_TCP */
269  /** A callback function that is informed about events for this netconn */
270  netconn_callback callback;
271 };
272 
273 /** Register an Network connection event */
274 #define API_EVENT(c,e,l) if (c->callback) { \
275  (*c->callback)(c, e, l); \
276  }
277 
278 /** Set conn->last_err to err but don't overwrite fatal errors */
279 #define NETCONN_SET_SAFE_ERR(conn, err) do { if ((conn) != NULL) { \
280  SYS_ARCH_DECL_PROTECT(netconn_set_safe_err_lev); \
281  SYS_ARCH_PROTECT(netconn_set_safe_err_lev); \
282  if (!ERR_IS_FATAL((conn)->last_err)) { \
283  (conn)->last_err = err; \
284  } \
285  SYS_ARCH_UNPROTECT(netconn_set_safe_err_lev); \
286 }} while(0);
287 
288 /* Network connection functions: */
289 
290 /** @ingroup netconn_common
291  * Create new netconn connection
292  * @param t @ref netconn_type */
293 #define netconn_new(t) netconn_new_with_proto_and_callback(t, 0, NULL)
294 #define netconn_new_with_callback(t, c) netconn_new_with_proto_and_callback(t, 0, c)
295 struct netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto,
296  netconn_callback callback);
297 err_t netconn_delete(struct netconn *conn);
298 /** Get the type of a netconn (as enum netconn_type). */
299 #define netconn_type(conn) (conn->type)
300 
301 err_t netconn_getaddr(struct netconn *conn, ip_addr_t *addr,
302  u16_t *port, u8_t local);
303 /** @ingroup netconn_common */
304 #define netconn_peer(c,i,p) netconn_getaddr(c,i,p,0)
305 /** @ingroup netconn_common */
306 #define netconn_addr(c,i,p) netconn_getaddr(c,i,p,1)
307 
308 err_t netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port);
309 err_t netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port);
310 err_t netconn_disconnect (struct netconn *conn);
311 err_t netconn_listen_with_backlog(struct netconn *conn, u8_t backlog);
312 /** @ingroup netconn_tcp */
313 #define netconn_listen(conn) netconn_listen_with_backlog(conn, TCP_DEFAULT_LISTEN_BACKLOG)
314 err_t netconn_accept(struct netconn *conn, struct netconn **new_conn);
315 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
316 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
317 err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,
318  const ip_addr_t *addr, u16_t port);
319 err_t netconn_send(struct netconn *conn, struct netbuf *buf);
320 err_t netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
321  u8_t apiflags, size_t *bytes_written);
322 /** @ingroup netconn_tcp */
323 #define netconn_write(conn, dataptr, size, apiflags) \
324  netconn_write_partly(conn, dataptr, size, apiflags, NULL)
325 err_t netconn_close(struct netconn *conn);
326 err_t netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx);
327 
328 #if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD)
329 err_t netconn_join_leave_group(struct netconn *conn, const ip_addr_t *multiaddr,
330  const ip_addr_t *netif_addr, enum netconn_igmp join_or_leave);
331 #endif /* LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) */
332 #if LWIP_DNS
333 #if LWIP_IPV4 && LWIP_IPV6
334 err_t netconn_gethostbyname_addrtype(const char *name, ip_addr_t *addr, u8_t dns_addrtype);
335 #define netconn_gethostbyname(name, addr) netconn_gethostbyname_addrtype(name, addr, NETCONN_DNS_DEFAULT)
336 #else /* LWIP_IPV4 && LWIP_IPV6 */
337 err_t netconn_gethostbyname(const char *name, ip_addr_t *addr);
338 #define netconn_gethostbyname_addrtype(name, addr, dns_addrtype) netconn_gethostbyname(name, addr)
339 #endif /* LWIP_IPV4 && LWIP_IPV6 */
340 #endif /* LWIP_DNS */
341 
342 #define netconn_err(conn) ((conn)->last_err)
343 #define netconn_recv_bufsize(conn) ((conn)->recv_bufsize)
344 
345 /** Set the blocking status of netconn calls (@todo: write/send is missing) */
346 #define netconn_set_nonblocking(conn, val) do { if(val) { \
347  (conn)->flags |= NETCONN_FLAG_NON_BLOCKING; \
348 } else { \
349  (conn)->flags &= ~ NETCONN_FLAG_NON_BLOCKING; }} while(0)
350 /** Get the blocking status of netconn calls (@todo: write/send is missing) */
351 #define netconn_is_nonblocking(conn) (((conn)->flags & NETCONN_FLAG_NON_BLOCKING) != 0)
352 
353 #if LWIP_IPV6
354 /** @ingroup netconn_common
355  * TCP: Set the IPv6 ONLY status of netconn calls (see NETCONN_FLAG_IPV6_V6ONLY)
356  */
357 #define netconn_set_ipv6only(conn, val) do { if(val) { \
358  (conn)->flags |= NETCONN_FLAG_IPV6_V6ONLY; \
359 } else { \
360  (conn)->flags &= ~ NETCONN_FLAG_IPV6_V6ONLY; }} while(0)
361 /** @ingroup netconn_common
362  * TCP: Get the IPv6 ONLY status of netconn calls (see NETCONN_FLAG_IPV6_V6ONLY)
363  */
364 #define netconn_get_ipv6only(conn) (((conn)->flags & NETCONN_FLAG_IPV6_V6ONLY) != 0)
365 #endif /* LWIP_IPV6 */
366 
367 #if LWIP_SO_SNDTIMEO
368 /** Set the send timeout in milliseconds */
369 #define netconn_set_sendtimeout(conn, timeout) ((conn)->send_timeout = (timeout))
370 /** Get the send timeout in milliseconds */
371 #define netconn_get_sendtimeout(conn) ((conn)->send_timeout)
372 #endif /* LWIP_SO_SNDTIMEO */
373 #if LWIP_SO_RCVTIMEO
374 /** Set the receive timeout in milliseconds */
375 #define netconn_set_recvtimeout(conn, timeout) ((conn)->recv_timeout = (timeout))
376 /** Get the receive timeout in milliseconds */
377 #define netconn_get_recvtimeout(conn) ((conn)->recv_timeout)
378 #endif /* LWIP_SO_RCVTIMEO */
379 #if LWIP_SO_RCVBUF
380 /** Set the receive buffer in bytes */
381 #define netconn_set_recvbufsize(conn, recvbufsize) ((conn)->recv_bufsize = (recvbufsize))
382 /** Get the receive buffer in bytes */
383 #define netconn_get_recvbufsize(conn) ((conn)->recv_bufsize)
384 #endif /* LWIP_SO_RCVBUF*/
385 
386 #if LWIP_NETCONN_SEM_PER_THREAD
387 void netconn_thread_init(void);
388 void netconn_thread_cleanup(void);
389 #else /* LWIP_NETCONN_SEM_PER_THREAD */
390 #define netconn_thread_init()
391 #define netconn_thread_cleanup()
392 #endif /* LWIP_NETCONN_SEM_PER_THREAD */
393 
394 #ifdef __cplusplus
395 }
396 #endif
397 
398 #endif /* LWIP_NETCONN || LWIP_SOCKET */
399 
400 #endif /* LWIP_HDR_API_H */
pbuf_memfind
u16_t pbuf_memfind(const struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset)
Definition: pbuf.c:1404
PBUF_POOL
Definition: pbuf.h:123
TIMERS_DEBUG
#define TIMERS_DEBUG
Definition: opt.h:2736
pbuf_skip
struct pbuf * pbuf_skip(struct pbuf *in, u16_t in_offset, u16_t *out_offset)
Definition: pbuf.c:1131
tcpip_priv.h
pbuf_try_get_at
int pbuf_try_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1317
TCP_SYN
#define TCP_SYN
Definition: tcp.h:73
tcpip_callback_with_block
err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
Definition: tcpip.c:234
IP6_FRAG_STATS_DISPLAY
#define IP6_FRAG_STATS_DISPLAY()
Definition: stats.h:445
IPH_TTL_SET
#define IPH_TTL_SET(hdr, ttl)
Definition: ip4.h:118
ip_addr_set_ipaddr
#define ip_addr_set_ipaddr(dest, src)
Definition: ip_addr.h:308
DNS_SERVER_PORT
#define DNS_SERVER_PORT
Definition: dns.h:51
SOF_BROADCAST
#define SOF_BROADCAST
Definition: ip.h:99
DHCP_OPTION_SUBNET_MASK
#define DHCP_OPTION_SUBNET_MASK
Definition: dhcp.h:140
memp_desc
Definition: memp_priv.h:130
PBUF_FLAG_IS_CUSTOM
#define PBUF_FLAG_IS_CUSTOM
Definition: pbuf.h:131
MIB2_STATS_NETIF_ADD
#define MIB2_STATS_NETIF_ADD(n, x, val)
Definition: snmp.h:140
IP6_ROUTER_ALERT_VALUE_MLD
#define IP6_ROUTER_ALERT_VALUE_MLD
Definition: ip6.h:103
S16_F
#define S16_F
Definition: arch.h:146
ICMP6_TYPE_TE
Definition: icmp6.h:53
DHCP_OPTIONS_OFS
#define DHCP_OPTIONS_OFS
Definition: dhcp.h:58
ICMP6_TYPE_EREP
Definition: icmp6.h:66
TCP_WND_DEBUG
#define TCP_WND_DEBUG
Definition: opt.h:2779
mib2_udp_bind
#define mib2_udp_bind(pcb)
Definition: snmp.h:191
HWTYPE_ETHERNET
Definition: etharp.h:77
lwip_strnicmp
int lwip_strnicmp(const char *str1, const char *str2, size_t len)
Definition: def.c:163
packed_struct_test::PACK_STRUCT_FIELD
PACK_STRUCT_FIELD(u32_t dummy2)
TCP_ACK
#define TCP_ACK
Definition: tcp.h:76
lwip_ntohs
#define lwip_ntohs(x)
Definition: def.h:76
DHCP_STATE_RENEWING
Definition: dhcp.h:107
ip_route_get_local_ip
#define ip_route_get_local_ip(src, dest, netif, ipaddr)
Definition: ip.h:308
ICMP_AM
#define ICMP_AM
Definition: icmp.h:57
opt.h
IGMP_GROUP_NON_MEMBER
#define IGMP_GROUP_NON_MEMBER
Definition: igmp.h:64
ip_addr_cmp
#define ip_addr_cmp(addr1, addr2)
Definition: ip_addr.h:316
IP_IS_V6
#define IP_IS_V6(ipaddr)
Definition: ip_addr.h:296
NETIF_FLAG_UP
#define NETIF_FLAG_UP
Definition: netif.h:78
pbuf::len
u16_t len
Definition: pbuf.h:159
ip_chksum_pseudo_partial
u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, u16_t chksum_len, const ip_addr_t *src, const ip_addr_t *dest)
Definition: inet_chksum.c:526
IP6H_PLEN_SET
#define IP6H_PLEN_SET(hdr, plen)
Definition: ip6.h:161
rs_header
Definition: nd6.h:93
SYS_ARCH_UNPROTECT
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:403
PBUF_LINK
Definition: pbuf.h:85
sys_mutex_t
osSemaphoreId sys_mutex_t
Definition: sys_arch.h:42
DNS_FLAG2_ERR_MASK
#define DNS_FLAG2_ERR_MASK
Definition: dns.h:92
udp_hdr
Definition: udp.h:53
memp_malloc
void * memp_malloc(memp_t type)
Definition: memp.c:385
ICMP6_TYPE_MLR
Definition: icmp6.h:70
LWIP_MEM_ALLOC_PROTECT
#define LWIP_MEM_ALLOC_PROTECT()
Definition: mem.c:326
s16_t
int16_t s16_t
Definition: arch.h:122
def.h
NETIF_FLAG_IGMP
#define NETIF_FLAG_IGMP
Definition: netif.h:98
do_memp_malloc_pool
static void * do_memp_malloc_pool(const struct memp_desc *desc)
Definition: memp.c:292
ra_header
Definition: nd6.h:118
DHCP_STATE_REBOOTING
Definition: dhcp.h:105
LWIP_NUM_NETIF_CLIENT_DATA
#define LWIP_NUM_NETIF_CLIENT_DATA
Definition: opt.h:1457
DHCP_STATE_REBINDING
Definition: dhcp.h:106
IP_IS_V4
#define IP_IS_V4(ipaddr)
Definition: ip_addr.h:295
DNS_DEBUG
#define DNS_DEBUG
Definition: opt.h:2842
PACK_STRUCT_BEGIN
#define PACK_STRUCT_BEGIN
Definition: arch.h:242
NETIF_MAX_HWADDR_LEN
#define NETIF_MAX_HWADDR_LEN
Definition: netif.h:63
pbuf::ref
u16_t ref
Definition: pbuf.h:172
DNS_RRTYPE_AAAA
#define DNS_RRTYPE_AAAA
Definition: dns.h:71
netif_set_up
void netif_set_up(struct netif *netif)
Definition: netif.c:624
PBUF_FLAG_LLBCAST
#define PBUF_FLAG_LLBCAST
Definition: pbuf.h:135
IPADDR6_INIT
#define IPADDR6_INIT(a, b, c, d)
Definition: ip_addr.h:291
lwip_init
void lwip_init(void)
Definition: init.c:337
LWIP_TCPIP_THREAD_ALIVE
#define LWIP_TCPIP_THREAD_ALIVE()
Definition: opt.h:1574
DHCP_STATE_REQUESTING
Definition: dhcp.h:103
ND6_PREFIX_FLAG_ON_LINK
#define ND6_PREFIX_FLAG_ON_LINK
Definition: nd6.h:172
inet.h
MLD6_STATS_DISPLAY
#define MLD6_STATS_DISPLAY()
Definition: stats.h:453
ARP_REQUEST
Definition: etharp.h:83
TCP_QUEUE_OOSEQ
#define TCP_QUEUE_OOSEQ
Definition: opt.h:1172
ETHADDR32_COPY
#define ETHADDR32_COPY(dst, src)
Definition: ethernet.h:155
IP_IS_V6_VAL
#define IP_IS_V6_VAL(ipaddr)
Definition: ip_addr.h:294
netif_set_down
void netif_set_down(struct netif *netif)
Definition: netif.c:682
ip_addr_set_zero_ip6
#define ip_addr_set_zero_ip6(ipaddr)
Definition: ip_addr.h:310
PBUF_LINK_ENCAPSULATION_HLEN
#define PBUF_LINK_ENCAPSULATION_HLEN
Definition: opt.h:1364
PROBE_WAIT
#define PROBE_WAIT
Definition: autoip.h:55
IP6_NEXTH_UDPLITE
#define IP6_NEXTH_UDPLITE
Definition: ip6.h:73
PBUF_POOL_IS_EMPTY
#define PBUF_POOL_IS_EMPTY()
Definition: pbuf.c:135
nd6.h
ARP_MAXAGE
#define ARP_MAXAGE
Definition: opt.h:557
mqtt_client_connect
err_t mqtt_client_connect(mqtt_client_t *client, const ip_addr_t *ipaddr, u16_t port, mqtt_connection_cb_t cb, void *arg, const struct mqtt_connect_client_info_t *client_info)
mqtt_connect_client_info_t::will_retain
u8_t will_retain
Definition: mqtt.h:73
ipaddr
ip4_addr_t ipaddr
Definition: lwip.c:73
ICMP6_PP_HEADER
Definition: icmp6.h:128
LWIP_ASSERT
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
tcpip.h
DHCP_SERVER_PORT
#define DHCP_SERVER_PORT
Definition: dhcp.h:48
DHCP_BOOTREPLY
#define DHCP_BOOTREPLY
Definition: dhcp.h:119
MIB2_STATS_NETIF_INC
#define MIB2_STATS_NETIF_INC(n, x)
Definition: snmp.h:139
IP6H_HOPLIM_SET
#define IP6H_HOPLIM_SET(hdr, hl)
Definition: ip6.h:163
TCPH_FLAGS_SET
#define TCPH_FLAGS_SET(phdr, flags)
Definition: tcp.h:87
PBUF_LINK_HLEN
#define PBUF_LINK_HLEN
Definition: opt.h:1355
ICMP6_TYPE_PP
Definition: icmp6.h:55
PBUF_ROM
Definition: pbuf.h:112
LWIP_ALIGNMENT_CAST
#define LWIP_ALIGNMENT_CAST(target_type, val)
Definition: arch.h:185
ICMP6_TYPE_RS
Definition: icmp6.h:74
ICMP_TE_TTL
Definition: icmp.h:73
ROUTER_ALERT
#define ROUTER_ALERT
Definition: igmp.h:52
pbuf.h
IP6_FRAG_HLEN
#define IP6_FRAG_HLEN
Definition: ip6.h:130
DHCP_OPTION_HOSTNAME
#define DHCP_OPTION_HOSTNAME
Definition: dhcp.h:143
bpstruct.h
PBUF_RAW
Definition: pbuf.h:94
PROBE_NUM
#define PROBE_NUM
Definition: autoip.h:58
ND6_OPTION_TYPE_RDNSS
#define ND6_OPTION_TYPE_RDNSS
Definition: nd6.h:256
pbuf_strstr
u16_t pbuf_strstr(const struct pbuf *p, const char *substr)
Definition: pbuf.c:1431
DNS_RRTYPE_A
#define DNS_RRTYPE_A
Definition: dns.h:55
LWIP_MEM_ALLOC_DECL_PROTECT
#define LWIP_MEM_ALLOC_DECL_PROTECT()
Definition: mem.c:325
memp_free
void memp_free(memp_t type, void *mem)
Definition: memp.c:469
ERR_ABRT
Definition: err.h:90
stats_display_proto
#define stats_display_proto(proto, name)
Definition: stats.h:480
ip_current_header_tot_len
#define ip_current_header_tot_len()
Definition: ip.h:139
ip_current_dest_addr
#define ip_current_dest_addr()
Definition: ip.h:212
mqtt_connect_client_info_t
Definition: mqtt.h:60
icmp6_te_code
icmp6_te_code
Definition: icmp6.h:116
UDP_DEBUG
#define UDP_DEBUG
Definition: opt.h:2807
lwip_cyclic_timer
Definition: timeouts.h:65
LWIP_TCP
#define LWIP_TCP
Definition: opt.h:1132
DEFEND_INTERVAL
#define DEFEND_INTERVAL
Definition: autoip.h:64
INET_DEBUG
#define INET_DEBUG
Definition: opt.h:2687
queue
GCodeQueue queue
Definition: queue.cpp:28
ip6_frag.h
mqtt_connect_client_info_t::will_msg
const char * will_msg
Definition: mqtt.h:71
mqtt_client_t::output
struct mqtt_ringbuf_t output
Definition: mqtt.h:204
mem
Definition: mem.c:264
mqtt_client_t::conn_state
u8_t conn_state
Definition: mqtt.h:188
AUTOIP_STATE_PROBING
Definition: autoip.h:69
LWIP_DBG_LEVEL_SEVERE
#define LWIP_DBG_LEVEL_SEVERE
Definition: debug.h:59
DHCP_OPTION_OVERLOAD
#define DHCP_OPTION_OVERLOAD
Definition: dhcp.h:154
ERR_BUF
Definition: err.h:67
memp_init_pool
void memp_init_pool(const struct memp_desc *desc)
Definition: memp.c:230
u16_t
uint16_t u16_t
Definition: arch.h:121
memp_init
void memp_init(void)
Definition: memp.c:271
ANNOUNCE_INTERVAL
#define ANNOUNCE_INTERVAL
Definition: autoip.h:60
dhcp_msg
Definition: dhcp.h:65
netifapi.h
mqtt_set_inpub_callback
void mqtt_set_inpub_callback(mqtt_client_t *client, mqtt_incoming_publish_cb_t, mqtt_incoming_data_cb_t data_cb, void *arg)
LWIP_ARRAYSIZE
#define LWIP_ARRAYSIZE(x)
Definition: def.h:58
netbuf.h
igmp.h
RAW_DEBUG
#define RAW_DEBUG
Definition: opt.h:2708
inet_chksum
u16_t inet_chksum(const void *dataptr, u16_t len)
Definition: inet_chksum.c:555
mqtt_connection_cb_t
void(* mqtt_connection_cb_t)(mqtt_client_t *client, void *arg, mqtt_connection_status_t status)
Definition: mqtt.h:102
mqtt_incoming_data_cb_t
void(* mqtt_incoming_data_cb_t)(void *arg, const u8_t *data, u16_t len, u8_t flags)
Definition: mqtt.h:125
netif::input
netif_input_fn input
Definition: netif.h:244
mqtt_incoming_publish_cb_t
void(* mqtt_incoming_publish_cb_t)(void *arg, const char *topic, u32_t tot_len)
Definition: mqtt.h:137
mem_init
void mem_init(void)
Definition: mem.c:382
ip_addr_set_loopback
#define ip_addr_set_loopback(is_ipv6, ipaddr)
Definition: ip_addr.h:312
DHCP_ACK
#define DHCP_ACK
Definition: dhcp.h:126
SO_REUSE
#define SO_REUSE
Definition: opt.h:1838
PBUF_IP
Definition: pbuf.h:80
LWIP_IPV6_DUP_DETECT_ATTEMPTS
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS
Definition: opt.h:2203
DHCP_STATE_OFF
Definition: dhcp.h:102
ip_addr_set
#define ip_addr_set(dest, src)
Definition: ip_addr.h:307
mbox
static sys_mbox_t mbox
Definition: tcpip.c:61
ip_addr_ismulticast
#define ip_addr_ismulticast(ipaddr)
Definition: ip_addr.h:322
etharp_hdr
Definition: etharp.h:57
MQTT_REQ_MAX_IN_FLIGHT
#define MQTT_REQ_MAX_IN_FLIGHT
Definition: mqtt_opts.h:71
ip_globals::current_ip_header_tot_len
u16_t current_ip_header_tot_len
Definition: ip.h:120
ip4_frag.h
autoip.h
MQTT_CONNECT_TIMEOUT
Definition: mqtt.h:88
IP46_ADDR_ANY
#define IP46_ADDR_ANY(type)
Definition: ip_addr.h:331
DHCP_CHADDR_LEN
#define DHCP_CHADDR_LEN
Definition: dhcp.h:52
LWIP_IPV6
#define LWIP_IPV6
Definition: opt.h:2153
IP_IS_ANY_TYPE_VAL
#define IP_IS_ANY_TYPE_VAL(ipaddr)
Definition: ip_addr.h:297
ip_addr_isany
#define ip_addr_isany(ipaddr)
Definition: ip_addr.h:317
pbuf::tot_len
u16_t tot_len
Definition: pbuf.h:156
in6addr_any
const struct in6_addr in6addr_any
MEMP_MAX
Definition: memp.h:55
netif_remove
void netif_remove(struct netif *netif)
Definition: netif.c:377
TCP_SYNMAXRTX
#define TCP_SYNMAXRTX
Definition: opt.h:1164
IP6_FRAG_STATS_INC
#define IP6_FRAG_STATS_INC(x)
Definition: stats.h:444
SOF_INHERITED
#define SOF_INHERITED
Definition: ip.h:102
type
uint8_t type
Definition: UsbCore.h:184
tcp_timer_needed
void tcp_timer_needed(void)
Definition: timeouts.c:430
NETIF_FLAG_ETHARP
#define NETIF_FLAG_ETHARP
Definition: netif.h:91
MIN_SIZE_ALIGNED
#define MIN_SIZE_ALIGNED
Definition: mem.c:280
g29_auto.start
start
Definition: g29_auto.py:150
IP_ANY_TYPE
#define IP_ANY_TYPE
Definition: ip_addr.h:400
ND6_STATS_INC
#define ND6_STATS_INC(x)
Definition: stats.h:460
UNLOCK_TCPIP_CORE
#define UNLOCK_TCPIP_CORE()
Definition: tcpip.h:61
TCP_SND_QUEUELEN
#define TCP_SND_QUEUELEN
Definition: opt.h:1212
IGMP_LEAVE_GROUP
#define IGMP_LEAVE_GROUP
Definition: igmp.h:61
NETIF_STATUS_CALLBACK
#define NETIF_STATUS_CALLBACK(n)
Definition: netif.c:95
IP_REASS_MAX_PBUFS
#define IP_REASS_MAX_PBUFS
Definition: opt.h:705
ram
static u8_t * ram
Definition: mem.c:295
ICMP6_DUR_NO_ROUTE
Definition: icmp6.h:100
ETHARP_STATS_INC
#define ETHARP_STATS_INC(x)
Definition: stats.h:376
IPH_ID_SET
#define IPH_ID_SET(hdr, id)
Definition: ip4.h:116
netif::hwaddr
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
Definition: netif.h:303
data
uint8_t data[8]
Definition: masstorage.h:49
DHCP_STATE_BOUND
Definition: dhcp.h:112
u32_t
uint32_t u32_t
Definition: arch.h:123
IP6_PADN_ALERT_OPTION
#define IP6_PADN_ALERT_OPTION
Definition: ip6.h:101
PBUF_FLAG_MCASTLOOP
#define PBUF_FLAG_MCASTLOOP
Definition: pbuf.h:133
netif::state
void * state
Definition: netif.h:279
LWIP_DHCP_MAX_NTP_SERVERS
#define LWIP_DHCP_MAX_NTP_SERVERS
Definition: opt.h:883
ICMP_PP
#define ICMP_PP
Definition: icmp.h:52
mib2_netif_added
#define mib2_netif_added(ni)
Definition: snmp.h:177
mqtt_request_t
Definition: mqtt.h:155
memp_desc::base
u8_t * base
Definition: memp_priv.h:148
pbuf_rom
Definition: pbuf.h:180
TCP_DEBUG
#define TCP_DEBUG
Definition: opt.h:2743
pbuf_take
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
Definition: pbuf.c:1149
ICMP6_TYPE_PTB
Definition: icmp6.h:51
DHCP_OPTION_T2
#define DHCP_OPTION_T2
Definition: dhcp.h:166
i
uint8_t i
Definition: screen_test_graph.c:72
DNS_MQUERY_IPV4_GROUP_INIT
#define DNS_MQUERY_IPV4_GROUP_INIT
Definition: dns.h:128
mqtt_client_t::pend_req_queue
struct mqtt_request_t * pend_req_queue
Definition: mqtt.h:194
pbuf::next
struct pbuf * next
Definition: pbuf.h:144
sys_arch_sem_wait
u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
Definition: sys_arch.c:251
mem::used
u8_t used
Definition: mem.c:270
SYS_ARCH_INC
#define SYS_ARCH_INC(var, val)
Definition: sys.h:415
inet_chksum_pbuf
u16_t inet_chksum_pbuf(struct pbuf *p)
Definition: inet_chksum.c:568
LWIP_AUTOIP
#define LWIP_AUTOIP
Definition: opt.h:912
PBUF_TRANSPORT
Definition: pbuf.h:76
LINK_STATS_INC
#define LINK_STATS_INC(x)
Definition: stats.h:384
max
#define max(a, b)
Definition: wiring_constants.h:40
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
pbuf_free
u8_t pbuf_free(struct pbuf *p)
Definition: pbuf.c:715
igmp_msg
Definition: igmp.h:75
IP6_STATS_DISPLAY
#define IP6_STATS_DISPLAY()
Definition: stats.h:429
LL_IP4_MULTICAST_ADDR_1
#define LL_IP4_MULTICAST_ADDR_1
Definition: ethernet.h:145
icmp_echo_hdr
Definition: icmp.h:69
LWIP_ND6_NUM_PREFIXES
#define LWIP_ND6_NUM_PREFIXES
Definition: opt.h:2304
IP6_ROUTER_ALERT_OPTION
#define IP6_ROUTER_ALERT_OPTION
Definition: ip6.h:102
redirect_header
Definition: nd6.h:139
SYS_ARCH_PROTECT
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:402
DHCP_RELEASE
#define DHCP_RELEASE
Definition: dhcp.h:128
init.h
SIZEOF_STRUCT_PBUF
#define SIZEOF_STRUCT_PBUF
Definition: pbuf.c:129
MEMP_ALIGN_SIZE
#define MEMP_ALIGN_SIZE(x)
Definition: memp_priv.h:86
ICMP_STATS_INC
#define ICMP_STATS_INC(x)
Definition: stats.h:344
ND6_OPTION_TYPE_TARGET_LLADDR
#define ND6_OPTION_TYPE_TARGET_LLADDR
Definition: nd6.h:155
ip_addr_isbroadcast
#define ip_addr_isbroadcast(addr, netif)
Definition: ip_addr.h:321
MQTT_VAR_HEADER_BUFFER_LEN
#define MQTT_VAR_HEADER_BUFFER_LEN
Definition: mqtt_opts.h:64
netif::mtu
u16_t mtu
Definition: netif.h:299
inet_cksum_pseudo_partial_base
static u16_t inet_cksum_pseudo_partial_base(struct pbuf *p, u8_t proto, u16_t proto_len, u16_t chksum_len, u32_t acc)
Definition: inet_chksum.c:399
PBUF_TRANSPORT_HLEN
#define PBUF_TRANSPORT_HLEN
Definition: pbuf.h:61
NETIF_SET_CHECKSUM_CTRL
#define NETIF_SET_CHECKSUM_CTRL(netif, chksumflags)
Definition: netif.h:348
MEMP_SIZE
#define MEMP_SIZE
Definition: memp_priv.h:85
LWIP_ICMP6_HL
#define LWIP_ICMP6_HL
Definition: opt.h:2233
LWIP_DBG_TRACE
#define LWIP_DBG_TRACE
Definition: debug.h:83
DHCP_OVERLOAD_FILE
#define DHCP_OVERLOAD_FILE
Definition: dhcp.h:174
MEM_ALIGNMENT
#define MEM_ALIGNMENT
Definition: opt.h:248
mqtt_connect_client_info_t::keep_alive
u16_t keep_alive
Definition: mqtt.h:67
DHCP_FILE_LEN
#define DHCP_FILE_LEN
Definition: dhcp.h:56
netif_input_fn
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:162
ip_data
struct ip_globals ip_data
mqtt_connect_client_info_t::will_topic
const char * will_topic
Definition: mqtt.h:70
raw.h
IP6H_NEXTH_SET
#define IP6H_NEXTH_SET(hdr, nexth)
Definition: ip6.h:162
IGMP_STATS_INC
#define IGMP_STATS_INC(x)
Definition: stats.h:352
SIZEOF_DNS_HDR
#define SIZEOF_DNS_HDR
Definition: dns.h:116
MQTT_REQ_TIMEOUT
#define MQTT_REQ_TIMEOUT
Definition: mqtt_opts.h:85
IGMP_V2_MEMB_REPORT
#define IGMP_V2_MEMB_REPORT
Definition: igmp.h:60
IP_STATS_INC
#define IP_STATS_INC(x)
Definition: stats.h:360
IP_REASS_MAXAGE
#define IP_REASS_MAXAGE
Definition: opt.h:695
mqtt_client_t::pub_cb
mqtt_incoming_publish_cb_t pub_cb
Definition: mqtt.h:199
netif::flags
u8_t flags
Definition: netif.h:305
NETIF_REPORT_TYPE_IPV4
#define NETIF_REPORT_TYPE_IPV4
Definition: netif.c:113
IP_ADDR_PCB_VERSION_MATCH_EXACT
#define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr)
Definition: ip_addr.h:240
icmp_dur_type
icmp_dur_type
Definition: icmp.h:55
netif_find
struct netif * netif_find(const char *name)
Definition: netif.c:472
netif_input
err_t netif_input(struct pbuf *p, struct netif *inp)
Definition: netif.c:203
IP6_NEXTH_ROUTING
#define IP6_NEXTH_ROUTING
Definition: ip6.h:68
LWIP_ND6_NUM_DESTINATIONS
#define LWIP_ND6_NUM_DESTINATIONS
Definition: opt.h:2297
LWIP_MEM_FREE_UNPROTECT
#define LWIP_MEM_FREE_UNPROTECT()
Definition: mem.c:323
icmp6_echo_hdr
Definition: icmp6.h:154
in6_addr
Definition: inet.h:62
TCP_OOSEQ_MAX_BYTES
#define TCP_OOSEQ_MAX_BYTES
Definition: opt.h:1238
mqtt_publish
err_t mqtt_publish(mqtt_client_t *client, const char *topic, const void *payload, u16_t payload_length, u8_t qos, u8_t retain, mqtt_request_cb_t cb, void *arg)
PROBE_MAX
#define PROBE_MAX
Definition: autoip.h:57
lwip_cyclic_timer::handler
lwip_cyclic_timer_handler handler
Definition: timeouts.h:67
DHCP_OPTION_ROUTER
#define DHCP_OPTION_ROUTER
Definition: dhcp.h:141
sys_mutex_lock
void sys_mutex_lock(sys_mutex_t *mutex)
Definition: sys_arch.c:355
MEM_STATS_DEC_USED
#define MEM_STATS_DEC_USED(x, y)
Definition: stats.h:398
DHCP_OPTION_PARAMETER_REQUEST_LIST
#define DHCP_OPTION_PARAMETER_REQUEST_LIST
Definition: dhcp.h:160
netdb.h
lwip_strnstr
char * lwip_strnstr(const char *buffer, const char *token, size_t n)
Definition: def.c:105
ND6_FLAG_OVERRIDE
#define ND6_FLAG_OVERRIDE
Definition: nd6.h:86
LWIP_CHKSUM
#define LWIP_CHKSUM
Definition: inet_chksum.c:57
DHCP_DECLINE
#define DHCP_DECLINE
Definition: dhcp.h:125
ram_end
static struct mem * ram_end
Definition: mem.c:297
LWIP_ND6_NUM_NEIGHBORS
#define LWIP_ND6_NUM_NEIGHBORS
Definition: opt.h:2290
MEM_DEBUG
#define MEM_DEBUG
Definition: opt.h:2715
S32_F
#define S32_F
Definition: arch.h:155
rdnss_option
Definition: nd6.h:261
mqtt_connect_client_info_t::will_qos
u8_t will_qos
Definition: mqtt.h:72
TCP_QLEN_DEBUG
#define TCP_QLEN_DEBUG
Definition: opt.h:2800
PACK_STRUCT_STRUCT
#define PACK_STRUCT_STRUCT
Definition: arch.h:263
DHCP_OPTIONS_LEN
#define DHCP_OPTIONS_LEN
Definition: dhcp.h:90
LWIP_LOOPBACK_MAX_PBUFS
#define LWIP_LOOPBACK_MAX_PBUFS
Definition: opt.h:1502
DHCP_OPTION_MAX_MSG_SIZE_LEN
#define DHCP_OPTION_MAX_MSG_SIZE_LEN
Definition: dhcp.h:163
netif_status_callback_fn
void(* netif_status_callback_fn)(struct netif *netif)
Definition: netif.h:198
DNS_MQUERY_PORT
#define DNS_MQUERY_PORT
Definition: dns.h:123
NETIF_DEL_MAC_FILTER
Definition: netif.h:145
mem::prev
mem_size_t prev
Definition: mem.c:268
NETIF_SET_HWADDRHINT
#define NETIF_SET_HWADDRHINT(netif, hint)
Definition: netif.h:467
NULL
#define NULL
Definition: usbd_def.h:53
PBUF_FLAG_TCP_FIN
#define PBUF_FLAG_TCP_FIN
Definition: pbuf.h:139
X16_F
#define X16_F
Definition: arch.h:149
LWIP_MIN
#define LWIP_MIN(x, y)
Definition: def.h:55
ICMP6_TYPE_EREQ
Definition: icmp6.h:64
sys_msleep
void sys_msleep(u32_t ms)
Definition: sys.c:93
memp_free_pool
void memp_free_pool(const struct memp_desc *desc, void *mem)
Definition: memp.c:452
IP_HLEN
#define IP_HLEN
Definition: ip4.h:64
gw
ip4_addr_t gw
Definition: lwip.c:75
IF__NETIF_CHECKSUM_ENABLED
#define IF__NETIF_CHECKSUM_ENABLED(netif, chksumflag)
Definition: netif.h:349
mem_calloc
void * mem_calloc(mem_size_t count, mem_size_t size)
Definition: mem.c:765
ip_addr_isany_val
#define ip_addr_isany_val(ipaddr)
Definition: ip_addr.h:318
TCP_ECE
#define TCP_ECE
Definition: tcp.h:78
icmp.h
arch.h
htonl
#define htonl(x)
Definition: def.h:110
TCP_WND_UPDATE_THRESHOLD
#define TCP_WND_UPDATE_THRESHOLD
Definition: opt.h:1298
mib2_remove_arp_entry
#define mib2_remove_arp_entry(ni, ip)
Definition: snmp.h:182
NETIF_ADD_MAC_FILTER
Definition: netif.h:147
createSpeedLookupTable.end
end
Definition: createSpeedLookupTable.py:33
ETHARP_STATS_DISPLAY
#define ETHARP_STATS_DISPLAY()
Definition: stats.h:377
lladdr_option
Definition: nd6.h:160
pbuf::flags
u8_t flags
Definition: pbuf.h:165
TCP_STATS_DISPLAY
#define TCP_STATS_DISPLAY()
Definition: stats.h:329
memp::next
struct memp * next
Definition: memp_priv.h:92
DHCP_OPTION_T1
#define DHCP_OPTION_T1
Definition: dhcp.h:165
IGMP_TTL
#define IGMP_TTL
Definition: igmp.h:50
X8_F
#define X8_F
Definition: arch.h:140
ip_hdr
Definition: ip4.h:71
SWAP_BYTES_IN_WORD
#define SWAP_BYTES_IN_WORD(w)
Definition: inet_chksum.h:47
ICMP_STATS_DISPLAY
#define ICMP_STATS_DISPLAY()
Definition: stats.h:345
ip_addr_debug_print
#define ip_addr_debug_print(debug, ipaddr)
Definition: ip_addr.h:323
ERR_INPROGRESS
Definition: err.h:73
eth_addr_cmp
#define eth_addr_cmp(addr1, addr2)
Definition: ethernet.h:164
LL_IP4_MULTICAST_ADDR_2
#define LL_IP4_MULTICAST_ADDR_2
Definition: ethernet.h:146
ERR_TIMEOUT
Definition: err.h:69
ARP_QUEUE_LEN
#define ARP_QUEUE_LEN
Definition: opt.h:576
icmp6_pp_code
icmp6_pp_code
Definition: icmp6.h:124
ETHARP_TABLE_MATCH_NETIF
#define ETHARP_TABLE_MATCH_NETIF
Definition: opt.h:620
sys_mbox_t
osMessageQId sys_mbox_t
Definition: sys_arch.h:43
snmp.h
stats.h
ERR_MEM
Definition: err.h:65
SYS_ARCH_SET
#define SYS_ARCH_SET(var, val)
Definition: sys.h:442
ERR_ISCONN
Definition: err.h:83
sys_sem_t
osSemaphoreId sys_sem_t
Definition: sys_arch.h:41
TCP_CWND_DEBUG
#define TCP_CWND_DEBUG
Definition: opt.h:2772
pbuf_copy_partial
u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1015
IPH_HL
#define IPH_HL(hdr)
Definition: ip4.h:103
DNS_MAX_NAME_LENGTH
#define DNS_MAX_NAME_LENGTH
Definition: opt.h:1021
LWIP_DBG_LEVEL_SERIOUS
#define LWIP_DBG_LEVEL_SERIOUS
Definition: debug.h:57
icmp6.h
LWIP_DNS_SUPPORT_MDNS_QUERIES
#define LWIP_DNS_SUPPORT_MDNS_QUERIES
Definition: opt.h:1071
ICMP6_TE_HL
Definition: icmp6.h:118
AUTOIP_DEBUG
#define AUTOIP_DEBUG
Definition: opt.h:2835
TCP_FR_DEBUG
#define TCP_FR_DEBUG
Definition: opt.h:2757
netif.h
LWIP_ERROR
#define LWIP_ERROR(message, expression, handler)
Definition: debug.h:135
icmp_port_unreach
#define icmp_port_unreach(isipv6, pbuf)
Definition: icmp.h:103
DHCP_OPTION_SERVER_ID
#define DHCP_OPTION_SERVER_ID
Definition: dhcp.h:159
IPH_V
#define IPH_V(hdr)
Definition: ip4.h:102
mld6.h
MEMP_DEBUG
#define MEMP_DEBUG
Definition: opt.h:2722
mem::next
mem_size_t next
Definition: mem.c:266
lfree
static struct mem * lfree
Definition: mem.c:299
LWIP_RAND
#define LWIP_RAND()
Definition: cc.h:86
LWIP_ND6_DELAY_FIRST_PROBE_TIME
#define LWIP_ND6_DELAY_FIRST_PROBE_TIME
Definition: opt.h:2364
ERR_CLSD
Definition: err.h:94
IP_PROTO_TCP
#define IP_PROTO_TCP
Definition: ip.h:46
mqtt_request_t::pkt_id
u16_t pkt_id
Definition: mqtt.h:164
sys_arch_mbox_fetch
u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
Definition: sys_arch.c:141
mqtt_client_t::msg_idx
u32_t msg_idx
Definition: mqtt.h:201
ND6_FLAG_SOLICITED
#define ND6_FLAG_SOLICITED
Definition: nd6.h:85
netif::num
u8_t num
Definition: netif.h:309
IP_OFFMASK
#define IP_OFFMASK
Definition: ip4.h:85
mib2_udp_unbind
#define mib2_udp_unbind(pcb)
Definition: snmp.h:192
DHCP_INFORM
#define DHCP_INFORM
Definition: dhcp.h:129
ip_current_netif
#define ip_current_netif()
Definition: ip.h:133
netif_is_link_up
#define netif_is_link_up(netif)
Definition: netif.h:413
lwip_ntohl
#define lwip_ntohl(x)
Definition: def.h:78
ETHARP_DEBUG
#define ETHARP_DEBUG
Definition: opt.h:2631
MEM_STATS_DISPLAY
#define MEM_STATS_DISPLAY()
Definition: stats.h:399
IP6_HBH_HLEN
#define IP6_HBH_HLEN
Definition: ip6.h:99
LWIP_ICMP6_DATASIZE
#define LWIP_ICMP6_DATASIZE
Definition: opt.h:2226
DHCP_STATE_BACKING_OFF
Definition: dhcp.h:114
IP_STATS_DISPLAY
#define IP_STATS_DISPLAY()
Definition: stats.h:361
pbuf_alloc
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:248
IP6H_HOPLIM
#define IP6H_HOPLIM(hdr)
Definition: ip6.h:158
IP6_NEXTH_TCP
#define IP6_NEXTH_TCP
Definition: ip6.h:65
PROBE_MIN
#define PROBE_MIN
Definition: autoip.h:56
mqtt_client_t
Definition: mqtt.h:177
IGMP_STATS_DISPLAY
#define IGMP_STATS_DISPLAY()
Definition: stats.h:353
ICMP6_TYPE_RA
Definition: icmp6.h:76
DHCP_DEBUG
#define DHCP_DEBUG
Definition: opt.h:2828
PBUF_FLAG_LLMCAST
#define PBUF_FLAG_LLMCAST
Definition: pbuf.h:137
mqtt_connect_client_info_t::client_id
const char * client_id
Definition: mqtt.h:62
s32_t
int32_t s32_t
Definition: arch.h:124
ARP_TABLE_SIZE
#define ARP_TABLE_SIZE
Definition: opt.h:549
IP6_FRAG_OFFSET_MASK
#define IP6_FRAG_OFFSET_MASK
Definition: ip6.h:131
pbuf_clen
u16_t pbuf_clen(const struct pbuf *p)
Definition: pbuf.c:800
stats_display_memp
#define stats_display_memp(mem, index)
Definition: stats.h:483
AUTOIP_RANGE_START
#define AUTOIP_RANGE_START
Definition: autoip.h:50
PBUF_IP_HLEN
#define PBUF_IP_HLEN
Definition: pbuf.h:65
TCPH_SET_FLAG
#define TCPH_SET_FLAG(phdr, flags)
Definition: tcp.h:90
DHCP_OPTION_NTP
#define DHCP_OPTION_NTP
Definition: dhcp.h:148
u8_t
uint8_t u8_t
Definition: arch.h:119
LWIP_MEM_FREE_PROTECT
#define LWIP_MEM_FREE_PROTECT()
Definition: mem.c:322
DHCP_OPTION_END
#define DHCP_OPTION_END
Definition: dhcp.h:149
netmask
ip4_addr_t netmask
Definition: lwip.c:74
IP6_NEXTH_HOPBYHOP
#define IP6_NEXTH_HOPBYHOP
Definition: ip6.h:64
err.h
stats_display_igmp
#define stats_display_igmp(igmp, name)
Definition: stats.h:481
mib2_add_route_ip4
#define mib2_add_route_ip4(dflt, ni)
Definition: snmp.h:187
mqtt_client_t::data_cb
mqtt_incoming_data_cb_t data_cb
Definition: mqtt.h:198
pbuf_coalesce
struct pbuf * pbuf_coalesce(struct pbuf *p, pbuf_layer layer)
Definition: pbuf.c:1229
ETHARP_SUPPORT_STATIC_ENTRIES
#define ETHARP_SUPPORT_STATIC_ENTRIES
Definition: opt.h:612
netif_list
struct netif * netif_list
Definition: netif.c:104
ip_addr_t
ip6_addr_t ip_addr_t
Definition: ip_addr.h:290
IP_PROTO_ICMP
#define IP_PROTO_ICMP
Definition: ip.h:42
IP_ADDR_PCB_VERSION_MATCH
#define IP_ADDR_PCB_VERSION_MATCH(addr, pcb)
Definition: ip_addr.h:239
ERR_CONN
Definition: err.h:85
IP6_NEXTH_ICMP6
#define IP6_NEXTH_ICMP6
Definition: ip6.h:70
TCP_RST
#define TCP_RST
Definition: tcp.h:74
ICMP_DUR_FRAG
Definition: icmp.h:65
UDP_TTL
#define UDP_TTL
Definition: opt.h:1105
pbuf_header_force
u8_t pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
Definition: pbuf.c:675
AUTOIP_RANGE_END
#define AUTOIP_RANGE_END
Definition: autoip.h:52
tcp_priv.h
ipaddr_aton
#define ipaddr_aton(cp, addr)
Definition: ip_addr.h:327
DHCP_DISCOVER
#define DHCP_DISCOVER
Definition: dhcp.h:122
ICMP6_TYPE_RD
Definition: icmp6.h:82
sys_now
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:616
PBUF_FLAG_PUSH
#define PBUF_FLAG_PUSH
Definition: pbuf.h:128
ICMP_TS
#define ICMP_TS
Definition: icmp.h:53
ip_addr_set_any
#define ip_addr_set_any(is_ipv6, ipaddr)
Definition: ip_addr.h:311
memp_desc::num
u16_t num
Definition: memp_priv.h:145
pbuf_layer
pbuf_layer
Definition: pbuf.h:72
tcpip_input
err_t tcpip_input(struct pbuf *p, struct netif *inp)
Definition: tcpip.c:212
ip_globals::current_input_netif
struct netif * current_input_netif
Definition: ip.h:110
ICMP_DUR_PROTO
Definition: icmp.h:61
IPFRAG_STATS_DISPLAY
#define IPFRAG_STATS_DISPLAY()
Definition: stats.h:369
MEMP_OVERFLOW_CHECK
#define MEMP_OVERFLOW_CHECK
Definition: opt.h:269
mib2_remove_route_ip4
#define mib2_remove_route_ip4(dflt, ni)
Definition: snmp.h:188
ND6_PREFIX_FLAG_AUTONOMOUS
#define ND6_PREFIX_FLAG_AUTONOMOUS
Definition: nd6.h:173
LWIP_SUPPORT_CUSTOM_PBUF
#define LWIP_SUPPORT_CUSTOM_PBUF
Definition: pbuf.h:55
mqtt_client_t::inpub_pkt_id
u16_t inpub_pkt_id
Definition: mqtt.h:186
memp_desc::size
u16_t size
Definition: memp_priv.h:141
DHCP_SNAME_LEN
#define DHCP_SNAME_LEN
Definition: dhcp.h:54
MQTT_CONNECT_TIMOUT
#define MQTT_CONNECT_TIMOUT
Definition: mqtt_opts.h:92
pbuf_get_at
u8_t pbuf_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1299
LWIP_MEM_ALIGN_SIZE
#define LWIP_MEM_ALIGN_SIZE(size)
Definition: arch.h:214
IP6_NEXTH_DESTOPTS
#define IP6_NEXTH_DESTOPTS
Definition: ip6.h:72
nd6.h
mqtt_client_t::inpub_arg
void * inpub_arg
Definition: mqtt.h:196
ICMP_TSR
#define ICMP_TSR
Definition: icmp.h:54
g29_auto.layer
int layer
Definition: g29_auto.py:41
ip_current_src_addr
#define ip_current_src_addr()
Definition: ip.h:210
netif
Definition: netif.h:225
ppp_impl.h
pbuf_type
pbuf_type
Definition: pbuf.h:101
PERF_START
#define PERF_START
Definition: def.h:46
void
void
Definition: png.h:1083
IGMP_GROUP_IDLE_MEMBER
#define IGMP_GROUP_IDLE_MEMBER
Definition: igmp.h:66
IP6_STATS_INC
#define IP6_STATS_INC(x)
Definition: stats.h:428
UDP_STATS_INC
#define UDP_STATS_INC(x)
Definition: stats.h:336
ICMP6_TYPE_NS
Definition: icmp6.h:78
IPFRAG_STATS_INC
#define IPFRAG_STATS_INC(x)
Definition: stats.h:368
ETHTYPE_IPV6
Definition: ethernet.h:120
TCP_SND_BUF
#define TCP_SND_BUF
Definition: opt.h:1204
MIB2_INIT_NETIF
#define MIB2_INIT_NETIF(netif, type, speed)
Definition: snmp.h:138
LWIP_MAX
#define LWIP_MAX(x, y)
Definition: def.h:54
SIZEOF_ETHARP_HDR
#define SIZEOF_ETHARP_HDR
Definition: etharp.h:73
ip_2_ip6
#define ip_2_ip6(ipaddr)
Definition: ip_addr.h:301
netif::hwaddr_len
u8_t hwaddr_len
Definition: netif.h:301
IP_DEBUG
#define IP_DEBUG
Definition: opt.h:2694
TCP_RST_DEBUG
#define TCP_RST_DEBUG
Definition: opt.h:2793
pbuf_realloc
void pbuf_realloc(struct pbuf *p, u16_t new_len)
Definition: pbuf.c:493
ANNOUNCE_NUM
#define ANNOUNCE_NUM
Definition: autoip.h:59
TCP_INPUT_DEBUG
#define TCP_INPUT_DEBUG
Definition: opt.h:2750
ICMP_TTL
#define ICMP_TTL
Definition: opt.h:777
mib2_add_arp_entry
#define mib2_add_arp_entry(ni, ip)
Definition: snmp.h:181
ip_globals::current_iphdr_src
ip_addr_t current_iphdr_src
Definition: ip.h:122
memp_malloc_pool
void * memp_malloc_pool(const struct memp_desc *desc)
Definition: memp.c:359
ICMP_ER
#define ICMP_ER
Definition: icmp.h:46
icmp6_hdr
Definition: icmp6.h:138
pbuf_copy
err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
Definition: pbuf.c:948
DHCP_OFFER
#define DHCP_OFFER
Definition: dhcp.h:123
packed_struct_test
Definition: init.c:70
MIB2_STATS_INC
#define MIB2_STATS_INC(x)
Definition: stats.h:467
ERR_ARG
Definition: err.h:96
TCP_MAXRTX
#define TCP_MAXRTX
Definition: opt.h:1157
TCP_RTO_DEBUG
#define TCP_RTO_DEBUG
Definition: opt.h:2765
LWIP_UNUSED_ARG
#define LWIP_UNUSED_ARG(x)
Definition: arch.h:308
mqtt_disconnect
void mqtt_disconnect(mqtt_client_t *client)
mem_trim
void * mem_trim(void *rmem, mem_size_t newsize)
Definition: mem.c:478
ERR_IF
Definition: err.h:87
ip_chksum_pseudo
u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, const ip_addr_t *src, const ip_addr_t *dest)
Definition: inet_chksum.c:379
IPH_LEN_SET
#define IPH_LEN_SET(hdr, len)
Definition: ip4.h:115
mqtt_ringbuf_t
Definition: mqtt.h:170
lwip_htonl
u32_t lwip_htonl(u32_t n)
Definition: def.c:90
IN6ADDR_ANY_INIT
#define IN6ADDR_ANY_INIT
Definition: inet.h:81
netif::name
char name[2]
Definition: netif.h:307
TCP_FIN
#define TCP_FIN
Definition: tcp.h:72
IP_MF
#define IP_MF
Definition: ip4.h:84
IP6_NEXTH_NONE
#define IP6_NEXTH_NONE
Definition: ip6.h:71
IPH_ID
#define IPH_ID(hdr)
Definition: ip4.h:106
ip_pcb
Definition: ip.h:89
igmp.h
IP_ADDR6
#define IP_ADDR6(ipaddr, i0, i1, i2, i3)
Definition: ip_addr.h:302
ROUTER_ALERTLEN
#define ROUTER_ALERTLEN
Definition: igmp.h:53
DNS_FLAG1_RD
#define DNS_FLAG1_RD
Definition: dns.h:90
pbuf_take_at
err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1193
ICMP_RD
#define ICMP_RD
Definition: icmp.h:49
ip_current_input_netif
#define ip_current_input_netif()
Definition: ip.h:137
sys_init
void sys_init(void)
Definition: sys_arch.c:309
IP_REASS_DEBUG
#define IP_REASS_DEBUG
Definition: opt.h:2701
netif_default
struct netif * netif_default
Definition: netif.c:105
mib2_netif_removed
#define mib2_netif_removed(ni)
Definition: snmp.h:178
lwip_htons
u16_t lwip_htons(u16_t n)
Definition: def.c:76
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
IPH_TOS
#define IPH_TOS(hdr)
Definition: ip4.h:104
while
while(sofevent)
Definition: USB_HOST_SHIELD.h:456
pbuf_chain
void pbuf_chain(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:882
netif_init
void netif_init(void)
Definition: netif.c:163
DHCP_MAGIC_COOKIE
#define DHCP_MAGIC_COOKIE
Definition: dhcp.h:134
createSpeedLookupTable.a
list a
Definition: createSpeedLookupTable.py:29
ICMP_AMR
#define ICMP_AMR
Definition: icmp.h:58
netif::next
struct netif * next
Definition: netif.h:227
s8_t
int8_t s8_t
Definition: arch.h:120
IP_IS_V4_VAL
#define IP_IS_V4_VAL(ipaddr)
Definition: ip_addr.h:293
do_memp_free_pool
static void do_memp_free_pool(const struct memp_desc *desc, void *mem)
Definition: memp.c:407
mqtt_request_t::cb
mqtt_request_cb_t cb
Definition: mqtt.h:161
LWIP_MEM_ALIGN
#define LWIP_MEM_ALIGN(addr)
Definition: arch.h:229
mld_header
Definition: mld6.h:52
ethip6.h
PP_NTOHS
#define PP_NTOHS(x)
Definition: def.h:80
sys_mutex_new
err_t sys_mutex_new(sys_mutex_t *mutex)
Definition: sys_arch.c:319
IP6_NEXTH_FRAGMENT
#define IP6_NEXTH_FRAGMENT
Definition: ip6.h:69
IPH_VHL_SET
#define IPH_VHL_SET(hdr, v, hl)
Definition: ip4.h:113
IPH_PROTO
#define IPH_PROTO(hdr)
Definition: ip4.h:109
dhcp6.h
pbuf_ref
void pbuf_ref(struct pbuf *p)
Definition: pbuf.c:820
pbuf_cat
void pbuf_cat(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:840
LL_IP4_MULTICAST_ADDR_0
#define LL_IP4_MULTICAST_ADDR_0
Definition: ethernet.h:144
PBUF_DEBUG
#define PBUF_DEBUG
Definition: opt.h:2645
PBUF_RAM
Definition: pbuf.h:108
SYS_STATS_DISPLAY
#define SYS_STATS_DISPLAY()
Definition: stats.h:421
netif_set_default
void netif_set_default(struct netif *netif)
Definition: netif.c:604
TCP_STATS_INC
#define TCP_STATS_INC(x)
Definition: stats.h:328
ICMP_SQ
#define ICMP_SQ
Definition: icmp.h:48
SOF_KEEPALIVE
#define SOF_KEEPALIVE
Definition: ip.h:98
mtu_option
Definition: nd6.h:220
stats_display_mem
#define stats_display_mem(mem, name)
Definition: stats.h:482
MQTT_CONNECT_ACCEPTED
Definition: mqtt.h:81
ICMP_DEBUG
#define ICMP_DEBUG
Definition: opt.h:2673
LWIP_WND_SCALE
#define LWIP_WND_SCALE
Definition: opt.h:1329
LWIP_DECLARE_MEMORY_ALIGNED
LWIP_DECLARE_MEMORY_ALIGNED(ram_heap, MEM_SIZE_ALIGNED+(2U *SIZEOF_STRUCT_MEM))
pbuf_memcmp
u16_t pbuf_memcmp(const struct pbuf *p, u16_t offset, const void *s2, u16_t n)
Definition: pbuf.c:1362
netif_issue_reports
static void netif_issue_reports(struct netif *netif, u8_t report_type)
Definition: netif.c:642
MEMCPY
#define MEMCPY(dst, src, len)
Definition: opt.h:137
local
#define local
Definition: gzguts.h:115
ICMPH_TYPE_SET
#define ICMPH_TYPE_SET(hdr, t)
Definition: icmp.h:84
U16_F
#define U16_F
Definition: arch.h:143
dhcp.h
PBUF_RAW_TX
Definition: pbuf.h:91
mqtt_request_t::timeout_diff
u16_t timeout_diff
Definition: mqtt.h:166
uint8_t
const uint8_t[]
Definition: 404_html.c:3
mqtt_client_t::keep_alive
u16_t keep_alive
Definition: mqtt.h:181
mqtt_connection_status_t
mqtt_connection_status_t
Definition: mqtt.h:79
ip_addr_copy_from_ip6
#define ip_addr_copy_from_ip6(dest, src)
Definition: ip_addr.h:306
MLD6_STATS_INC
#define MLD6_STATS_INC(x)
Definition: stats.h:452
ARP_REPLY
Definition: etharp.h:84
DHCP_CLIENT_PORT
#define DHCP_CLIENT_PORT
Definition: dhcp.h:47
LWIP_DHCP_AUTOIP_COOP_TRIES
#define LWIP_DHCP_AUTOIP_COOP_TRIES
Definition: opt.h:936
mib2_add_ip4
#define mib2_add_ip4(ni)
Definition: snmp.h:185
icmp6.h
sys_sem_new
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
Definition: sys_arch.c:206
LWIP_ND6_RETRANS_TIMER
#define LWIP_ND6_RETRANS_TIMER
Definition: opt.h:2356
ERR_OK
Definition: err.h:63
dhcp.h
SOF_REUSEADDR
#define SOF_REUSEADDR
Definition: ip.h:97
ETHADDR16_COPY
#define ETHADDR16_COPY(dst, src)
Definition: ethernet.h:161
sys_mutex_unlock
void sys_mutex_unlock(sys_mutex_t *mutex)
Definition: sys_arch.c:362
pbuf_header_impl
static u8_t pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
Definition: pbuf.c:569
netif_add
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
Definition: netif.c:241
DHCP_STATE_INFORMING
Definition: dhcp.h:109
memp_std.h
IP_PROTO_UDPLITE
#define IP_PROTO_UDPLITE
Definition: ip.h:45
err_t
s8_t err_t
Definition: err.h:57
lwip_itoa
void lwip_itoa(char *result, size_t bufsize, int number)
Definition: def.c:198
mem_ptr_t
uintptr_t mem_ptr_t
Definition: arch.h:125
SYS_ARCH_DECL_PROTECT
#define SYS_ARCH_DECL_PROTECT(lev)
Definition: sys.h:401
DHCP_STATE_CHECKING
Definition: dhcp.h:110
LWIP_MEM_ALLOC_UNPROTECT
#define LWIP_MEM_ALLOC_UNPROTECT()
Definition: mem.c:327
LWIP_ND6_REACHABLE_TIME
#define LWIP_ND6_REACHABLE_TIME
Definition: opt.h:2349
eth_addr
Definition: ethernet.h:58
stats_display
#define stats_display()
Definition: stats.h:479
NETIF_FLAG_ETHERNET
#define NETIF_FLAG_ETHERNET
Definition: netif.h:95
mqtt_client_t::rx_buffer
u8_t rx_buffer[MQTT_VAR_HEADER_BUFFER_LEN]
Definition: mqtt.h:202
mqtt_client_new
mqtt_client_t * mqtt_client_new(void)
LWIP_HAVE_LOOPIF
#define LWIP_HAVE_LOOPIF
Definition: opt.h:1479
ip_addr_copy
#define ip_addr_copy(dest, src)
Definition: ip_addr.h:305
DNS_TABLE_SIZE
#define DNS_TABLE_SIZE
Definition: opt.h:1016
PACK_STRUCT_STRUCT
PACK_STRUCT_BEGIN struct packed_struct_test PACK_STRUCT_STRUCT
mqtt_client_t::req_list
struct mqtt_request_t req_list[MQTT_REQ_MAX_IN_FLIGHT]
Definition: mqtt.h:195
DHCP_SNAME_OFS
#define DHCP_SNAME_OFS
Definition: dhcp.h:53
ip.h
DHCP_OVERLOAD_SNAME
#define DHCP_OVERLOAD_SNAME
Definition: dhcp.h:175
AUTOIP_STATE_OFF
Definition: autoip.h:68
ND6_OPTION_TYPE_SOURCE_LLADDR
#define ND6_OPTION_TYPE_SOURCE_LLADDR
Definition: nd6.h:154
MEMP_STATS_DISPLAY
#define MEMP_STATS_DISPLAY(i)
Definition: stats.h:408
SMEMCPY
#define SMEMCPY(dst, src, len)
Definition: opt.h:145
ICMP6_TYPE_DUR
Definition: icmp6.h:49
ND6_OPTION_TYPE_MTU
#define ND6_OPTION_TYPE_MTU
Definition: nd6.h:215
tcp.h
mqtt_client_t::cyclic_tick
u16_t cyclic_tick
Definition: mqtt.h:180
ip_set_option
#define ip_set_option(pcb, opt)
Definition: ip.h:217
stats_init
#define stats_init()
Definition: stats.h:318
IPADDR_TYPE_V6
Definition: ip_addr.h:58
ERR_RST
Definition: err.h:92
IPH_TOS_SET
#define IPH_TOS_SET(hdr, tos)
Definition: ip4.h:114
DHCP_OPTION_MESSAGE_TYPE_LEN
#define DHCP_OPTION_MESSAGE_TYPE_LEN
Definition: dhcp.h:157
mqtt_client_t::conn
struct tcp_pcb * conn
Definition: mqtt.h:189
LWIP_ND6_MAX_MULTICAST_SOLICIT
#define LWIP_ND6_MAX_MULTICAST_SOLICIT
Definition: opt.h:2319
mqtt_client_is_connected
u8_t mqtt_client_is_connected(mqtt_client_t *client)
netif_num
static u8_t netif_num
Definition: netif.c:107
IPH_CHKSUM_SET
#define IPH_CHKSUM_SET(hdr, chksum)
Definition: ip4.h:120
icmp6_dur_code
icmp6_dur_code
Definition: icmp6.h:98
IPH_TTL
#define IPH_TTL(hdr)
Definition: ip4.h:108
pbuf_init
#define pbuf_init()
Definition: pbuf.h:221
ethernet.h
DHCP_REQUEST
#define DHCP_REQUEST
Definition: dhcp.h:124
PBUF_POOL_BUFSIZE_ALIGNED
#define PBUF_POOL_BUFSIZE_ALIGNED
Definition: pbuf.c:132
IPH_OFFSET
#define IPH_OFFSET(hdr)
Definition: ip4.h:107
IP_DF
#define IP_DF
Definition: ip4.h:83
TCP_OOSEQ_MAX_PBUFS
#define TCP_OOSEQ_MAX_PBUFS
Definition: opt.h:1246
netif_set_link_down
void netif_set_link_down(struct netif *netif)
Definition: netif.c:760
icmp_te_type
icmp_te_type
Definition: icmp.h:71
IGMP_MINLEN
#define IGMP_MINLEN
Definition: igmp.h:51
ns_header
Definition: nd6.h:53
DHCP_OPTION_DNS_SERVER
#define DHCP_OPTION_DNS_SERVER
Definition: dhcp.h:142
udp.h
lwip_stricmp
int lwip_stricmp(const char *str1, const char *str2)
Definition: def.c:128
TCP_TTL
#define TCP_TTL
Definition: opt.h:1139
MQTT_DATA_FLAG_LAST
Definition: mqtt.h:110
ppp_opts.h
MEMP_STATS_DEC
#define MEMP_STATS_DEC(x, i)
Definition: stats.h:407
pbuf_dechain
struct pbuf * pbuf_dechain(struct pbuf *p)
Definition: pbuf.c:899
IGMP_GROUP_DELAYING_MEMBER
#define IGMP_GROUP_DELAYING_MEMBER
Definition: igmp.h:65
PBUF_CHECK_FREE_OOSEQ
#define PBUF_CHECK_FREE_OOSEQ()
Definition: pbuf.h:217
IP6_HLEN
#define IP6_HLEN
Definition: ip6.h:62
IP_PROTO_IGMP
#define IP_PROTO_IGMP
Definition: ip.h:43
ICMP_TE_FRAG
Definition: icmp.h:75
inet_cksum_pseudo_base
static u16_t inet_cksum_pseudo_base(struct pbuf *p, u8_t proto, u16_t proto_len, u32_t acc)
Definition: inet_chksum.c:260
na_header
Definition: nd6.h:71
DHCP_BOOTREQUEST
#define DHCP_BOOTREQUEST
Definition: dhcp.h:118
ip6_addr.h
DHCP_MIN_OPTIONS_LEN
#define DHCP_MIN_OPTIONS_LEN
Definition: dhcp.h:82
ip_globals::current_iphdr_dest
ip_addr_t current_iphdr_dest
Definition: ip.h:124
ethernet.h
ETHTYPE_IP
Definition: ethernet.h:110
autoip.h
IP6_DEBUG
#define IP6_DEBUG
Definition: opt.h:2849
LWIP_DBG_LEVEL_WARNING
#define LWIP_DBG_LEVEL_WARNING
Definition: debug.h:55
nd6_priv.h
IP_SET_TYPE_VAL
#define IP_SET_TYPE_VAL(ipaddr, iptype)
Definition: ip_addr.h:298
LINK_STATS_DISPLAY
#define LINK_STATS_DISPLAY()
Definition: stats.h:385
TCP_RCV_SCALE
#define TCP_RCV_SCALE
Definition: opt.h:1330
HANDLER
#define HANDLER(x)
Definition: timeouts.c:66
IPH_LEN
#define IPH_LEN(hdr)
Definition: ip4.h:105
mem_malloc
void * mem_malloc(mem_size_t size)
Definition: mem.c:603
RATE_LIMIT_INTERVAL
#define RATE_LIMIT_INTERVAL
Definition: autoip.h:63
ip6_hbh_hdr
Definition: ip6.h:108
ICMP_TE
#define ICMP_TE
Definition: icmp.h:51
plug_holes
static void plug_holes(struct mem *mem)
Definition: mem.c:344
pbuf_header
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
Definition: pbuf.c:665
DHCP_OPTION_LEASE_TIME
#define DHCP_OPTION_LEASE_TIME
Definition: dhcp.h:153
mqtt_client_t::pkt_id_seq
u16_t pkt_id_seq
Definition: mqtt.h:184
NETIF_DEBUG
#define NETIF_DEBUG
Definition: opt.h:2638
LWIP_MEM_FREE_DECL_PROTECT
#define LWIP_MEM_FREE_DECL_PROTECT()
Definition: mem.c:321
NETIF_FLAG_LINK_UP
#define NETIF_FLAG_LINK_UP
Definition: netif.h:87
LWIP_DHCP_BOOTP_FILE
#define LWIP_DHCP_BOOTP_FILE
Definition: opt.h:867
sockets.h
TCP_PSH
#define TCP_PSH
Definition: tcp.h:75
mqtt_client_t::connect_cb
mqtt_connection_cb_t connect_cb
Definition: mqtt.h:192
TCP_HLEN
#define TCP_HLEN
Definition: tcp.h:47
LWIP_IPV4
#define LWIP_IPV4
Definition: opt.h:640
TCP_URG
#define TCP_URG
Definition: tcp.h:77
memp_desc::tab
struct memp ** tab
Definition: memp_priv.h:151
prefix_option
Definition: nd6.h:180
PACK_STRUCT_END
#define PACK_STRUCT_END
Definition: arch.h:251
IPH_PROTO_SET
#define IPH_PROTO_SET(hdr, proto)
Definition: ip4.h:119
ipaddr_ntoa
#define ipaddr_ntoa(ipaddr)
Definition: ip_addr.h:325
TCPH_HDRLEN
#define TCPH_HDRLEN(phdr)
Definition: tcp.h:83
mqtt_request_t::next
struct mqtt_request_t * next
Definition: mqtt.h:159
createSpeedLookupTable.int
int
Definition: createSpeedLookupTable.py:15
netif_set_link_up
void netif_set_link_up(struct netif *netif)
Definition: netif.c:735
DHCP_OPTION_PAD
#define DHCP_OPTION_PAD
Definition: dhcp.h:139
last_state
static volatile fsensor_t last_state
Definition: filament_sensor.c:24
ip_get_option
#define ip_get_option(pcb, opt)
Definition: ip.h:215
MEM_STATS_AVAIL
#define MEM_STATS_AVAIL(x, y)
Definition: stats.h:395
LWIP_PLATFORM_DIAG
#define LWIP_PLATFORM_DIAG(x)
Definition: arch.h:79
MQTT_CYCLIC_TIMER_INTERVAL
#define MQTT_CYCLIC_TIMER_INTERVAL
Definition: mqtt_opts.h:78
tcp_hdr
Definition: tcp.h:56
ERR_ALREADY
Definition: err.h:81
DHCP_STATE_INIT
Definition: dhcp.h:104
LWIP_IPV6_NUM_ADDRESSES
#define LWIP_IPV6_NUM_ADDRESSES
Definition: opt.h:2160
AUTOIP_STATE_BOUND
Definition: autoip.h:71
tcpip_callback_fn
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:70
PACK_STRUCT_FIELD
#define PACK_STRUCT_FIELD(x)
Definition: arch.h:273
etharp.h
MAX_CONFLICTS
#define MAX_CONFLICTS
Definition: autoip.h:62
DHCP_OVERLOAD_SNAME_FILE
#define DHCP_OVERLOAD_SNAME_FILE
Definition: dhcp.h:176
DNS_MQUERY_IPV6_GROUP_INIT
#define DNS_MQUERY_IPV6_GROUP_INIT
Definition: dns.h:133
RAW_TTL
#define RAW_TTL
Definition: opt.h:818
TCP_CWR
#define TCP_CWR
Definition: tcp.h:79
netif_init_fn
err_t(* netif_init_fn)(struct netif *netif)
Definition: netif.h:155
ND6_OPTION_TYPE_ROUTE_INFO
#define ND6_OPTION_TYPE_ROUTE_INFO
Definition: nd6.h:232
U32_F
#define U32_F
Definition: arch.h:152
sys.h
DNS_RRCLASS_IN
#define DNS_RRCLASS_IN
Definition: dns.h:76
memp.h
UDP_STATS_DISPLAY
#define UDP_STATS_DISPLAY()
Definition: stats.h:337
mem_size_t
u16_t mem_size_t
Definition: mem.h:67
TCP_OUTPUT_DEBUG
#define TCP_OUTPUT_DEBUG
Definition: opt.h:2786
stats_display_sys
#define stats_display_sys(sys)
Definition: stats.h:484
pbuf::type
u8_t type
Definition: pbuf.h:162
memp
Definition: memp_priv.h:91
DHCP_HTYPE_ETH
#define DHCP_HTYPE_ETH
Definition: dhcp.h:132
LWIP_IP_HDRINCL
#define LWIP_IP_HDRINCL
Definition: ip.h:58
packed_struct_test::PACK_STRUCT_FLD_8
PACK_STRUCT_FLD_8(u8_t dummy1)
TCPH_HDRLEN_FLAGS_SET
#define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags)
Definition: tcp.h:88
MIB2_COPY_SYSUPTIME_TO
#define MIB2_COPY_SYSUPTIME_TO(ptrToVal)
Definition: snmp.h:136
ip6_frag_hdr
Definition: ip6.h:137
mqtt_client_t::connect_arg
void * connect_arg
Definition: mqtt.h:191
TCP_MSS
#define TCP_MSS
Definition: opt.h:1183
ERR_USE
Definition: err.h:79
DHCP_OPTION_MAX_MSG_SIZE
#define DHCP_OPTION_MAX_MSG_SIZE
Definition: dhcp.h:162
LWIP_RAM_HEAP_POINTER
#define LWIP_RAM_HEAP_POINTER
Definition: mem.c:291
X32_F
#define X32_F
Definition: arch.h:158
lwip_standard_chksum
u16_t lwip_standard_chksum(const void *dataptr, int len)
Definition: inet_chksum.c:133
ANNOUNCE_WAIT
#define ANNOUNCE_WAIT
Definition: autoip.h:61
mem.h
PP_HTONL
#define PP_HTONL(x)
Definition: def.h:81
timeouts.h
memp_t
memp_t
Definition: memp.h:52
length
png_uint_32 length
Definition: png.c:2247
mem_free
void mem_free(void *rmem)
Definition: mem.c:419
MQTT_CONNECT_DISCONNECTED
Definition: mqtt.h:87
LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX
#define LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p)
Definition: ip.h:63
code
Definition: inftrees.h:24
IPADDR_TYPE_ANY
Definition: ip_addr.h:60
IP6H_TC
#define IP6H_TC(hdr)
Definition: ip6.h:153
ICMP6_TE_FRAG
Definition: icmp6.h:120
lwip_cyclic_timers
const struct lwip_cyclic_timer lwip_cyclic_timers[]
Definition: timeouts.c:71
dns_hdr
Definition: dns.h:103
ERR_RTE
Definition: err.h:71
lwip_cyclic_timer::interval_ms
u32_t interval_ms
Definition: timeouts.h:66
ETH_HWADDR_LEN
#define ETH_HWADDR_LEN
Definition: ethernet.h:50
IP6_FRAG_MORE_FLAG
#define IP6_FRAG_MORE_FLAG
Definition: ip6.h:132
pbuf_put_at
void pbuf_put_at(struct pbuf *p, u16_t offset, u8_t data)
Definition: pbuf.c:1339
epstruct.h
IP6H_PLEN
#define IP6H_PLEN(hdr)
Definition: ip6.h:155
dns.h
pbuf_skip_const
static const struct pbuf * pbuf_skip_const(const struct pbuf *in, u16_t in_offset, u16_t *out_offset)
Definition: pbuf.c:1105
DHCP_STATE_SELECTING
Definition: dhcp.h:108
DHCP_OPTION_REQUESTED_IP
#define DHCP_OPTION_REQUESTED_IP
Definition: dhcp.h:152
ND6_STATS_DISPLAY
#define ND6_STATS_DISPLAY()
Definition: stats.h:461
mqtt_request_t::arg
void * arg
Definition: mqtt.h:162
ICMP_ECHO
#define ICMP_ECHO
Definition: icmp.h:50
DHCP_NAK
#define DHCP_NAK
Definition: dhcp.h:127
dns.h
MEM_STATS_INC
#define MEM_STATS_INC(x)
Definition: stats.h:396
ICMP6_TYPE_MLD
Definition: icmp6.h:72
ip_globals::current_netif
struct netif * current_netif
Definition: ip.h:108
ERR_VAL
Definition: err.h:75
mib2_remove_ip4
#define mib2_remove_ip4(ni)
Definition: snmp.h:186
CHECKSUM_CHECK_UDP
#define CHECKSUM_CHECK_UDP
Definition: opt.h:2104
IP6H_V
#define IP6H_V(hdr)
Definition: ip6.h:152
ip6_hdr
Definition: ip6.h:80
createSpeedLookupTable.b
list b
Definition: createSpeedLookupTable.py:30
FOLD_U32T
#define FOLD_U32T(u)
Definition: inet_chksum.h:52
pbuf
Definition: pbuf.h:142
mqtt_request_cb_t
void(* mqtt_request_cb_t)(void *arg, err_t err)
Definition: mqtt.h:149
NETIF_FLAG_MLD6
#define NETIF_FLAG_MLD6
Definition: netif.h:101
LWIP_DEBUGF
#define LWIP_DEBUGF(debug, message)
Definition: debug.h:164
SIZEOF_STRUCT_MEM
#define SIZEOF_STRUCT_MEM
Definition: mem.c:281
DHCP_FILE_OFS
#define DHCP_FILE_OFS
Definition: dhcp.h:55
DHCP_OPTION_MESSAGE_TYPE
#define DHCP_OPTION_MESSAGE_TYPE
Definition: dhcp.h:156
LWIP_IPV6_SEND_ROUTER_SOLICIT
#define LWIP_IPV6_SEND_ROUTER_SOLICIT
Definition: opt.h:2189
ip6.h
LWIP_DBG_STATE
#define LWIP_DBG_STATE
Definition: debug.h:85
IPH_CHKSUM
#define IPH_CHKSUM(hdr)
Definition: ip4.h:110
NETIF_REPORT_TYPE_IPV6
#define NETIF_REPORT_TYPE_IPV6
Definition: netif.c:114
TCPH_FLAGS
#define TCPH_FLAGS(phdr)
Definition: tcp.h:84
IPH_OFFSET_SET
#define IPH_OFFSET_SET(hdr, off)
Definition: ip4.h:117
mld6.h
ETHTYPE_ARP
Definition: ethernet.h:112
AUTOIP_STATE_ANNOUNCING
Definition: autoip.h:70
LOCK_TCPIP_CORE
#define LOCK_TCPIP_CORE()
Definition: tcpip.h:60
ICMP6_TYPE_NA
Definition: icmp6.h:80
PACKED_STRUCT_TEST_EXPECTED_SIZE
#define PACKED_STRUCT_TEST_EXPECTED_SIZE
Definition: init.c:79
NETIF_LINK_CALLBACK
#define NETIF_LINK_CALLBACK(n)
Definition: netif.c:101
LWIP_ND6_NUM_ROUTERS
#define LWIP_ND6_NUM_ROUTERS
Definition: opt.h:2311
SYS_ARCH_TIMEOUT
#define SYS_ARCH_TIMEOUT
Definition: sys.h:87
ip_addr.h
mqtt.h
MEM_SIZE_ALIGNED
#define MEM_SIZE_ALIGNED
Definition: mem.c:282
ICMP6_TYPE_MLQ
Definition: icmp6.h:68
LWIP_NETIF_CLIENT_DATA_INDEX_MAX
Definition: netif.h:121
ICMP6_STATS_DISPLAY
#define ICMP6_STATS_DISPLAY()
Definition: stats.h:437
ICMP6_STATS_INC
#define ICMP6_STATS_INC(x)
Definition: stats.h:436
IP_ADDR6_HOST
#define IP_ADDR6_HOST(ipaddr, i0, i1, i2, i3)
Definition: ip_addr.h:303
memp_pools
const struct memp_desc *const memp_pools[MEMP_MAX]
Definition: memp.c:81
LWIP_CONST_CAST
#define LWIP_CONST_CAST(target_type, val)
Definition: arch.h:180
mqtt_sub_unsub
err_t mqtt_sub_unsub(mqtt_client_t *client, const char *topic, u8_t qos, mqtt_request_cb_t cb, void *arg, u8_t sub)
IP_HDR_GET_VERSION
#define IP_HDR_GET_VERSION(ptr)
Definition: ip.h:49
MEM_STATS_INC_USED
#define MEM_STATS_INC_USED(x, y)
Definition: stats.h:397
DNS_FLAG1_RESPONSE
#define DNS_FLAG1_RESPONSE
Definition: dns.h:84
UDP_HLEN
#define UDP_HLEN
Definition: udp.h:46
inet_chksum.h
IP6H_NEXTH
#define IP6H_NEXTH(hdr)
Definition: ip6.h:156
TCP_WND
#define TCP_WND
Definition: opt.h:1150
ip_globals
Definition: ip.h:105
IGMP_DEBUG
#define IGMP_DEBUG
Definition: opt.h:2680
sys_sem_free
void sys_sem_free(sys_sem_t *sem)
Definition: sys_arch.c:282
debug.h
api_msg.h
PBUF_REF
Definition: pbuf.h:116
IPADDR_TYPE_V4
Definition: ip_addr.h:56
ICMP_DUR
#define ICMP_DUR
Definition: icmp.h:47
PERF_STOP
#define PERF_STOP(x)
Definition: def.h:47
IGMP_MEMB_QUERY
#define IGMP_MEMB_QUERY
Definition: igmp.h:58
mqtt_client_t::server_watchdog
u16_t server_watchdog
Definition: mqtt.h:182
LWIP_NETIF_LOOPBACK
#define LWIP_NETIF_LOOPBACK
Definition: opt.h:1494
pbuf::payload
void * payload
Definition: pbuf.h:147
CHECKSUM_CHECK_ICMP6
#define CHECKSUM_CHECK_ICMP6
Definition: opt.h:2125
ND6_OPTION_TYPE_PREFIX_INFO
#define ND6_OPTION_TYPE_PREFIX_INFO
Definition: nd6.h:171
IP6H_FL
#define IP6H_FL(hdr)
Definition: ip6.h:154
DHCP_OPTION_BROADCAST
#define DHCP_OPTION_BROADCAST
Definition: dhcp.h:146
IP_GET_TYPE
#define IP_GET_TYPE(ipaddr)
Definition: ip_addr.h:300
netif_is_up
#define netif_is_up(netif)
Definition: netif.h:401
size
static png_bytep size_t size
Definition: pngwrite.c:2170
IP_PROTO_UDP
#define IP_PROTO_UDP
Definition: ip.h:44
api.h
PP_HTONS
#define PP_HTONS(x)
Definition: def.h:79
NETIF_FLAG_BROADCAST
#define NETIF_FLAG_BROADCAST
Definition: netif.h:81
IP6H_VTCFL_SET
#define IP6H_VTCFL_SET(hdr, v, tc, fl)
Definition: ip6.h:160
lwip_strerr
#define lwip_strerr(x)
Definition: err.h:108
mem_mutex
static sys_mutex_t mem_mutex
Definition: mem.c:303
AUTOIP_NET
#define AUTOIP_NET
Definition: autoip.h:48
IP6_NEXTH_UDP
#define IP6_NEXTH_UDP
Definition: ip6.h:66
DNS_MAX_SERVERS
#define DNS_MAX_SERVERS
Definition: opt.h:1029