Prusa MINI Firmware overview
|
Go to the documentation of this file.
37 #ifndef LWIP_HDR_API_H
38 #define LWIP_HDR_API_H
42 #if LWIP_NETCONN || LWIP_SOCKET
61 #define NETCONN_NOFLAG 0x00
62 #define NETCONN_NOCOPY 0x00
63 #define NETCONN_COPY 0x01
64 #define NETCONN_MORE 0x02
65 #define NETCONN_DONTBLOCK 0x04
69 #define NETCONN_FLAG_NON_BLOCKING 0x02
71 #define NETCONN_FLAG_IN_NONBLOCKING_CONNECT 0x04
74 #define NETCONN_FLAG_CHECK_WRITESPACE 0x10
79 #define NETCONN_FLAG_IPV6_V6ONLY 0x20
84 #define NETCONNTYPE_GROUP(t) ((t)&0xF0)
85 #define NETCONNTYPE_DATAGRAM(t) ((t)&0xE0)
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)
92 #define NETCONNTYPE_ISIPV6(t) (0)
93 #define NETCONNTYPE_ISUDPLITE(t) ((t) == NETCONN_UDPLITE)
94 #define NETCONNTYPE_ISUDPNOCHKSUM(t) ((t) == NETCONN_UDPNOCHKSUM)
106 NETCONN_TCP_IPV6 = NETCONN_TCP | NETCONN_TYPE_IPV6 ,
111 NETCONN_UDPLITE = 0x21,
113 NETCONN_UDPNOCHKSUM = 0x22,
117 NETCONN_UDP_IPV6 = NETCONN_UDP | NETCONN_TYPE_IPV6 ,
119 NETCONN_UDPLITE_IPV6 = NETCONN_UDPLITE | NETCONN_TYPE_IPV6 ,
121 NETCONN_UDPNOCHKSUM_IPV6 = NETCONN_UDPNOCHKSUM | NETCONN_TYPE_IPV6 ,
128 , NETCONN_RAW_IPV6 = NETCONN_RAW | NETCONN_TYPE_IPV6
170 NETCONN_EVT_RCVMINUS,
171 NETCONN_EVT_SENDPLUS,
172 NETCONN_EVT_SENDMINUS,
176 #if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD)
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
190 #define NETCONN_DNS_IPV6_IPV4 3
202 typedef void (* netconn_callback)(
struct netconn *,
enum netconn_evt,
u16_t len);
207 enum netconn_type
type;
209 enum netconn_state
state;
219 #if !LWIP_NETCONN_SEM_PER_THREAD
267 struct api_msg *current_msg;
270 netconn_callback callback;
274 #define API_EVENT(c,e,l) if (c->callback) { \
275 (*c->callback)(c, e, l); \
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; \
285 SYS_ARCH_UNPROTECT(netconn_set_safe_err_lev); \
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);
299 #define netconn_type(conn) (conn->type)
304 #define netconn_peer(c,i,p) netconn_getaddr(c,i,p,0)
306 #define netconn_addr(c,i,p) netconn_getaddr(c,i,p,1)
310 err_t netconn_disconnect (
struct netconn *conn);
311 err_t netconn_listen_with_backlog(
struct netconn *conn,
u8_t backlog);
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,
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);
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);
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);
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)
338 #define netconn_gethostbyname_addrtype(name, addr, dns_addrtype) netconn_gethostbyname(name, addr)
342 #define netconn_err(conn) ((conn)->last_err)
343 #define netconn_recv_bufsize(conn) ((conn)->recv_bufsize)
346 #define netconn_set_nonblocking(conn, val) do { if(val) { \
347 (conn)->flags |= NETCONN_FLAG_NON_BLOCKING; \
349 (conn)->flags &= ~ NETCONN_FLAG_NON_BLOCKING; }} while(0)
351 #define netconn_is_nonblocking(conn) (((conn)->flags & NETCONN_FLAG_NON_BLOCKING) != 0)
357 #define netconn_set_ipv6only(conn, val) do { if(val) { \
358 (conn)->flags |= NETCONN_FLAG_IPV6_V6ONLY; \
360 (conn)->flags &= ~ NETCONN_FLAG_IPV6_V6ONLY; }} while(0)
364 #define netconn_get_ipv6only(conn) (((conn)->flags & NETCONN_FLAG_IPV6_V6ONLY) != 0)
369 #define netconn_set_sendtimeout(conn, timeout) ((conn)->send_timeout = (timeout))
371 #define netconn_get_sendtimeout(conn) ((conn)->send_timeout)
375 #define netconn_set_recvtimeout(conn, timeout) ((conn)->recv_timeout = (timeout))
377 #define netconn_get_recvtimeout(conn) ((conn)->recv_timeout)
381 #define netconn_set_recvbufsize(conn, recvbufsize) ((conn)->recv_bufsize = (recvbufsize))
383 #define netconn_get_recvbufsize(conn) ((conn)->recv_bufsize)
386 #if LWIP_NETCONN_SEM_PER_THREAD
387 void netconn_thread_init(
void);
388 void netconn_thread_cleanup(
void);
390 #define netconn_thread_init()
391 #define netconn_thread_cleanup()
u16_t pbuf_memfind(const struct pbuf *p, const void *mem, u16_t mem_len, u16_t start_offset)
Definition: pbuf.c:1404
#define TIMERS_DEBUG
Definition: opt.h:2736
struct pbuf * pbuf_skip(struct pbuf *in, u16_t in_offset, u16_t *out_offset)
Definition: pbuf.c:1131
int pbuf_try_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1317
#define TCP_SYN
Definition: tcp.h:73
err_t tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
Definition: tcpip.c:234
#define IP6_FRAG_STATS_DISPLAY()
Definition: stats.h:445
#define IPH_TTL_SET(hdr, ttl)
Definition: ip4.h:118
#define ip_addr_set_ipaddr(dest, src)
Definition: ip_addr.h:308
#define DNS_SERVER_PORT
Definition: dns.h:51
#define SOF_BROADCAST
Definition: ip.h:99
#define DHCP_OPTION_SUBNET_MASK
Definition: dhcp.h:140
Definition: memp_priv.h:130
#define PBUF_FLAG_IS_CUSTOM
Definition: pbuf.h:131
#define MIB2_STATS_NETIF_ADD(n, x, val)
Definition: snmp.h:140
#define IP6_ROUTER_ALERT_VALUE_MLD
Definition: ip6.h:103
#define S16_F
Definition: arch.h:146
#define DHCP_OPTIONS_OFS
Definition: dhcp.h:58
#define TCP_WND_DEBUG
Definition: opt.h:2779
#define mib2_udp_bind(pcb)
Definition: snmp.h:191
int lwip_strnicmp(const char *str1, const char *str2, size_t len)
Definition: def.c:163
PACK_STRUCT_FIELD(u32_t dummy2)
#define TCP_ACK
Definition: tcp.h:76
#define lwip_ntohs(x)
Definition: def.h:76
#define ip_route_get_local_ip(src, dest, netif, ipaddr)
Definition: ip.h:308
#define ICMP_AM
Definition: icmp.h:57
#define IGMP_GROUP_NON_MEMBER
Definition: igmp.h:64
#define ip_addr_cmp(addr1, addr2)
Definition: ip_addr.h:316
#define IP_IS_V6(ipaddr)
Definition: ip_addr.h:296
#define NETIF_FLAG_UP
Definition: netif.h:78
u16_t len
Definition: pbuf.h:159
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
#define IP6H_PLEN_SET(hdr, plen)
Definition: ip6.h:161
#define SYS_ARCH_UNPROTECT(lev)
Definition: sys.h:403
osSemaphoreId sys_mutex_t
Definition: sys_arch.h:42
#define DNS_FLAG2_ERR_MASK
Definition: dns.h:92
void * memp_malloc(memp_t type)
Definition: memp.c:385
#define LWIP_MEM_ALLOC_PROTECT()
Definition: mem.c:326
int16_t s16_t
Definition: arch.h:122
#define NETIF_FLAG_IGMP
Definition: netif.h:98
static void * do_memp_malloc_pool(const struct memp_desc *desc)
Definition: memp.c:292
#define LWIP_NUM_NETIF_CLIENT_DATA
Definition: opt.h:1457
#define IP_IS_V4(ipaddr)
Definition: ip_addr.h:295
#define DNS_DEBUG
Definition: opt.h:2842
#define PACK_STRUCT_BEGIN
Definition: arch.h:242
#define NETIF_MAX_HWADDR_LEN
Definition: netif.h:63
u16_t ref
Definition: pbuf.h:172
#define DNS_RRTYPE_AAAA
Definition: dns.h:71
void netif_set_up(struct netif *netif)
Definition: netif.c:624
#define PBUF_FLAG_LLBCAST
Definition: pbuf.h:135
#define IPADDR6_INIT(a, b, c, d)
Definition: ip_addr.h:291
void lwip_init(void)
Definition: init.c:337
#define LWIP_TCPIP_THREAD_ALIVE()
Definition: opt.h:1574
#define ND6_PREFIX_FLAG_ON_LINK
Definition: nd6.h:172
#define MLD6_STATS_DISPLAY()
Definition: stats.h:453
#define TCP_QUEUE_OOSEQ
Definition: opt.h:1172
#define ETHADDR32_COPY(dst, src)
Definition: ethernet.h:155
#define IP_IS_V6_VAL(ipaddr)
Definition: ip_addr.h:294
void netif_set_down(struct netif *netif)
Definition: netif.c:682
#define ip_addr_set_zero_ip6(ipaddr)
Definition: ip_addr.h:310
#define PBUF_LINK_ENCAPSULATION_HLEN
Definition: opt.h:1364
#define PROBE_WAIT
Definition: autoip.h:55
#define IP6_NEXTH_UDPLITE
Definition: ip6.h:73
#define PBUF_POOL_IS_EMPTY()
Definition: pbuf.c:135
#define ARP_MAXAGE
Definition: opt.h:557
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)
u8_t will_retain
Definition: mqtt.h:73
ip4_addr_t ipaddr
Definition: lwip.c:73
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:116
#define DHCP_SERVER_PORT
Definition: dhcp.h:48
#define DHCP_BOOTREPLY
Definition: dhcp.h:119
#define MIB2_STATS_NETIF_INC(n, x)
Definition: snmp.h:139
#define IP6H_HOPLIM_SET(hdr, hl)
Definition: ip6.h:163
#define TCPH_FLAGS_SET(phdr, flags)
Definition: tcp.h:87
#define PBUF_LINK_HLEN
Definition: opt.h:1355
#define LWIP_ALIGNMENT_CAST(target_type, val)
Definition: arch.h:185
#define ROUTER_ALERT
Definition: igmp.h:52
#define IP6_FRAG_HLEN
Definition: ip6.h:130
#define DHCP_OPTION_HOSTNAME
Definition: dhcp.h:143
#define PROBE_NUM
Definition: autoip.h:58
#define ND6_OPTION_TYPE_RDNSS
Definition: nd6.h:256
u16_t pbuf_strstr(const struct pbuf *p, const char *substr)
Definition: pbuf.c:1431
#define DNS_RRTYPE_A
Definition: dns.h:55
#define LWIP_MEM_ALLOC_DECL_PROTECT()
Definition: mem.c:325
void memp_free(memp_t type, void *mem)
Definition: memp.c:469
#define stats_display_proto(proto, name)
Definition: stats.h:480
#define ip_current_header_tot_len()
Definition: ip.h:139
#define ip_current_dest_addr()
Definition: ip.h:212
icmp6_te_code
Definition: icmp6.h:116
#define UDP_DEBUG
Definition: opt.h:2807
Definition: timeouts.h:65
#define LWIP_TCP
Definition: opt.h:1132
#define DEFEND_INTERVAL
Definition: autoip.h:64
#define INET_DEBUG
Definition: opt.h:2687
GCodeQueue queue
Definition: queue.cpp:28
const char * will_msg
Definition: mqtt.h:71
struct mqtt_ringbuf_t output
Definition: mqtt.h:204
u8_t conn_state
Definition: mqtt.h:188
#define LWIP_DBG_LEVEL_SEVERE
Definition: debug.h:59
#define DHCP_OPTION_OVERLOAD
Definition: dhcp.h:154
void memp_init_pool(const struct memp_desc *desc)
Definition: memp.c:230
uint16_t u16_t
Definition: arch.h:121
void memp_init(void)
Definition: memp.c:271
#define ANNOUNCE_INTERVAL
Definition: autoip.h:60
void mqtt_set_inpub_callback(mqtt_client_t *client, mqtt_incoming_publish_cb_t, mqtt_incoming_data_cb_t data_cb, void *arg)
#define LWIP_ARRAYSIZE(x)
Definition: def.h:58
#define RAW_DEBUG
Definition: opt.h:2708
u16_t inet_chksum(const void *dataptr, u16_t len)
Definition: inet_chksum.c:555
void(* mqtt_connection_cb_t)(mqtt_client_t *client, void *arg, mqtt_connection_status_t status)
Definition: mqtt.h:102
void(* mqtt_incoming_data_cb_t)(void *arg, const u8_t *data, u16_t len, u8_t flags)
Definition: mqtt.h:125
netif_input_fn input
Definition: netif.h:244
void(* mqtt_incoming_publish_cb_t)(void *arg, const char *topic, u32_t tot_len)
Definition: mqtt.h:137
void mem_init(void)
Definition: mem.c:382
#define ip_addr_set_loopback(is_ipv6, ipaddr)
Definition: ip_addr.h:312
#define DHCP_ACK
Definition: dhcp.h:126
#define SO_REUSE
Definition: opt.h:1838
#define LWIP_IPV6_DUP_DETECT_ATTEMPTS
Definition: opt.h:2203
#define ip_addr_set(dest, src)
Definition: ip_addr.h:307
static sys_mbox_t mbox
Definition: tcpip.c:61
#define ip_addr_ismulticast(ipaddr)
Definition: ip_addr.h:322
#define MQTT_REQ_MAX_IN_FLIGHT
Definition: mqtt_opts.h:71
u16_t current_ip_header_tot_len
Definition: ip.h:120
#define IP46_ADDR_ANY(type)
Definition: ip_addr.h:331
#define DHCP_CHADDR_LEN
Definition: dhcp.h:52
#define LWIP_IPV6
Definition: opt.h:2153
#define IP_IS_ANY_TYPE_VAL(ipaddr)
Definition: ip_addr.h:297
#define ip_addr_isany(ipaddr)
Definition: ip_addr.h:317
u16_t tot_len
Definition: pbuf.h:156
const struct in6_addr in6addr_any
void netif_remove(struct netif *netif)
Definition: netif.c:377
#define TCP_SYNMAXRTX
Definition: opt.h:1164
#define IP6_FRAG_STATS_INC(x)
Definition: stats.h:444
#define SOF_INHERITED
Definition: ip.h:102
uint8_t type
Definition: UsbCore.h:184
void tcp_timer_needed(void)
Definition: timeouts.c:430
#define NETIF_FLAG_ETHARP
Definition: netif.h:91
#define MIN_SIZE_ALIGNED
Definition: mem.c:280
start
Definition: g29_auto.py:150
#define IP_ANY_TYPE
Definition: ip_addr.h:400
#define ND6_STATS_INC(x)
Definition: stats.h:460
#define UNLOCK_TCPIP_CORE()
Definition: tcpip.h:61
#define TCP_SND_QUEUELEN
Definition: opt.h:1212
#define IGMP_LEAVE_GROUP
Definition: igmp.h:61
#define NETIF_STATUS_CALLBACK(n)
Definition: netif.c:95
#define IP_REASS_MAX_PBUFS
Definition: opt.h:705
static u8_t * ram
Definition: mem.c:295
#define ETHARP_STATS_INC(x)
Definition: stats.h:376
#define IPH_ID_SET(hdr, id)
Definition: ip4.h:116
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
Definition: netif.h:303
uint8_t data[8]
Definition: masstorage.h:49
uint32_t u32_t
Definition: arch.h:123
#define IP6_PADN_ALERT_OPTION
Definition: ip6.h:101
#define PBUF_FLAG_MCASTLOOP
Definition: pbuf.h:133
void * state
Definition: netif.h:279
#define LWIP_DHCP_MAX_NTP_SERVERS
Definition: opt.h:883
#define ICMP_PP
Definition: icmp.h:52
#define mib2_netif_added(ni)
Definition: snmp.h:177
u8_t * base
Definition: memp_priv.h:148
#define TCP_DEBUG
Definition: opt.h:2743
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
Definition: pbuf.c:1149
#define DHCP_OPTION_T2
Definition: dhcp.h:166
uint8_t i
Definition: screen_test_graph.c:72
#define DNS_MQUERY_IPV4_GROUP_INIT
Definition: dns.h:128
struct mqtt_request_t * pend_req_queue
Definition: mqtt.h:194
struct pbuf * next
Definition: pbuf.h:144
u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout)
Definition: sys_arch.c:251
u8_t used
Definition: mem.c:270
#define SYS_ARCH_INC(var, val)
Definition: sys.h:415
u16_t inet_chksum_pbuf(struct pbuf *p)
Definition: inet_chksum.c:568
#define LWIP_AUTOIP
Definition: opt.h:912
#define LINK_STATS_INC(x)
Definition: stats.h:384
#define max(a, b)
Definition: wiring_constants.h:40
static volatile fsensor_t state
Definition: filament_sensor.c:23
u8_t pbuf_free(struct pbuf *p)
Definition: pbuf.c:715
#define IP6_STATS_DISPLAY()
Definition: stats.h:429
#define LL_IP4_MULTICAST_ADDR_1
Definition: ethernet.h:145
#define LWIP_ND6_NUM_PREFIXES
Definition: opt.h:2304
#define IP6_ROUTER_ALERT_OPTION
Definition: ip6.h:102
#define SYS_ARCH_PROTECT(lev)
Definition: sys.h:402
#define DHCP_RELEASE
Definition: dhcp.h:128
#define SIZEOF_STRUCT_PBUF
Definition: pbuf.c:129
#define MEMP_ALIGN_SIZE(x)
Definition: memp_priv.h:86
#define ICMP_STATS_INC(x)
Definition: stats.h:344
#define ND6_OPTION_TYPE_TARGET_LLADDR
Definition: nd6.h:155
#define ip_addr_isbroadcast(addr, netif)
Definition: ip_addr.h:321
#define MQTT_VAR_HEADER_BUFFER_LEN
Definition: mqtt_opts.h:64
u16_t mtu
Definition: netif.h:299
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
#define PBUF_TRANSPORT_HLEN
Definition: pbuf.h:61
#define NETIF_SET_CHECKSUM_CTRL(netif, chksumflags)
Definition: netif.h:348
#define MEMP_SIZE
Definition: memp_priv.h:85
#define LWIP_ICMP6_HL
Definition: opt.h:2233
#define LWIP_DBG_TRACE
Definition: debug.h:83
#define DHCP_OVERLOAD_FILE
Definition: dhcp.h:174
#define MEM_ALIGNMENT
Definition: opt.h:248
u16_t keep_alive
Definition: mqtt.h:67
#define DHCP_FILE_LEN
Definition: dhcp.h:56
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:162
struct ip_globals ip_data
const char * will_topic
Definition: mqtt.h:70
#define IP6H_NEXTH_SET(hdr, nexth)
Definition: ip6.h:162
#define IGMP_STATS_INC(x)
Definition: stats.h:352
#define SIZEOF_DNS_HDR
Definition: dns.h:116
#define MQTT_REQ_TIMEOUT
Definition: mqtt_opts.h:85
#define IGMP_V2_MEMB_REPORT
Definition: igmp.h:60
#define IP_STATS_INC(x)
Definition: stats.h:360
#define IP_REASS_MAXAGE
Definition: opt.h:695
mqtt_incoming_publish_cb_t pub_cb
Definition: mqtt.h:199
u8_t flags
Definition: netif.h:305
#define NETIF_REPORT_TYPE_IPV4
Definition: netif.c:113
#define IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ipaddr)
Definition: ip_addr.h:240
icmp_dur_type
Definition: icmp.h:55
struct netif * netif_find(const char *name)
Definition: netif.c:472
err_t netif_input(struct pbuf *p, struct netif *inp)
Definition: netif.c:203
#define IP6_NEXTH_ROUTING
Definition: ip6.h:68
#define LWIP_ND6_NUM_DESTINATIONS
Definition: opt.h:2297
#define LWIP_MEM_FREE_UNPROTECT()
Definition: mem.c:323
#define TCP_OOSEQ_MAX_BYTES
Definition: opt.h:1238
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)
#define PROBE_MAX
Definition: autoip.h:57
lwip_cyclic_timer_handler handler
Definition: timeouts.h:67
#define DHCP_OPTION_ROUTER
Definition: dhcp.h:141
void sys_mutex_lock(sys_mutex_t *mutex)
Definition: sys_arch.c:355
#define MEM_STATS_DEC_USED(x, y)
Definition: stats.h:398
#define DHCP_OPTION_PARAMETER_REQUEST_LIST
Definition: dhcp.h:160
char * lwip_strnstr(const char *buffer, const char *token, size_t n)
Definition: def.c:105
#define ND6_FLAG_OVERRIDE
Definition: nd6.h:86
#define LWIP_CHKSUM
Definition: inet_chksum.c:57
#define DHCP_DECLINE
Definition: dhcp.h:125
static struct mem * ram_end
Definition: mem.c:297
#define LWIP_ND6_NUM_NEIGHBORS
Definition: opt.h:2290
#define MEM_DEBUG
Definition: opt.h:2715
#define S32_F
Definition: arch.h:155
u8_t will_qos
Definition: mqtt.h:72
#define TCP_QLEN_DEBUG
Definition: opt.h:2800
#define PACK_STRUCT_STRUCT
Definition: arch.h:263
#define DHCP_OPTIONS_LEN
Definition: dhcp.h:90
#define LWIP_LOOPBACK_MAX_PBUFS
Definition: opt.h:1502
#define DHCP_OPTION_MAX_MSG_SIZE_LEN
Definition: dhcp.h:163
void(* netif_status_callback_fn)(struct netif *netif)
Definition: netif.h:198
#define DNS_MQUERY_PORT
Definition: dns.h:123
mem_size_t prev
Definition: mem.c:268
#define NETIF_SET_HWADDRHINT(netif, hint)
Definition: netif.h:467
#define NULL
Definition: usbd_def.h:53
#define PBUF_FLAG_TCP_FIN
Definition: pbuf.h:139
#define X16_F
Definition: arch.h:149
#define LWIP_MIN(x, y)
Definition: def.h:55
void sys_msleep(u32_t ms)
Definition: sys.c:93
void memp_free_pool(const struct memp_desc *desc, void *mem)
Definition: memp.c:452
#define IP_HLEN
Definition: ip4.h:64
ip4_addr_t gw
Definition: lwip.c:75
#define IF__NETIF_CHECKSUM_ENABLED(netif, chksumflag)
Definition: netif.h:349
void * mem_calloc(mem_size_t count, mem_size_t size)
Definition: mem.c:765
#define ip_addr_isany_val(ipaddr)
Definition: ip_addr.h:318
#define TCP_ECE
Definition: tcp.h:78
#define htonl(x)
Definition: def.h:110
#define TCP_WND_UPDATE_THRESHOLD
Definition: opt.h:1298
#define mib2_remove_arp_entry(ni, ip)
Definition: snmp.h:182
end
Definition: createSpeedLookupTable.py:33
#define ETHARP_STATS_DISPLAY()
Definition: stats.h:377
u8_t flags
Definition: pbuf.h:165
#define TCP_STATS_DISPLAY()
Definition: stats.h:329
struct memp * next
Definition: memp_priv.h:92
#define DHCP_OPTION_T1
Definition: dhcp.h:165
#define IGMP_TTL
Definition: igmp.h:50
#define X8_F
Definition: arch.h:140
#define SWAP_BYTES_IN_WORD(w)
Definition: inet_chksum.h:47
#define ICMP_STATS_DISPLAY()
Definition: stats.h:345
#define ip_addr_debug_print(debug, ipaddr)
Definition: ip_addr.h:323
#define eth_addr_cmp(addr1, addr2)
Definition: ethernet.h:164
#define LL_IP4_MULTICAST_ADDR_2
Definition: ethernet.h:146
#define ARP_QUEUE_LEN
Definition: opt.h:576
icmp6_pp_code
Definition: icmp6.h:124
#define ETHARP_TABLE_MATCH_NETIF
Definition: opt.h:620
osMessageQId sys_mbox_t
Definition: sys_arch.h:43
#define SYS_ARCH_SET(var, val)
Definition: sys.h:442
osSemaphoreId sys_sem_t
Definition: sys_arch.h:41
#define TCP_CWND_DEBUG
Definition: opt.h:2772
u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1015
#define IPH_HL(hdr)
Definition: ip4.h:103
#define DNS_MAX_NAME_LENGTH
Definition: opt.h:1021
#define LWIP_DBG_LEVEL_SERIOUS
Definition: debug.h:57
#define LWIP_DNS_SUPPORT_MDNS_QUERIES
Definition: opt.h:1071
#define AUTOIP_DEBUG
Definition: opt.h:2835
#define TCP_FR_DEBUG
Definition: opt.h:2757
#define LWIP_ERROR(message, expression, handler)
Definition: debug.h:135
#define icmp_port_unreach(isipv6, pbuf)
Definition: icmp.h:103
#define DHCP_OPTION_SERVER_ID
Definition: dhcp.h:159
#define IPH_V(hdr)
Definition: ip4.h:102
#define MEMP_DEBUG
Definition: opt.h:2722
mem_size_t next
Definition: mem.c:266
static struct mem * lfree
Definition: mem.c:299
#define LWIP_RAND()
Definition: cc.h:86
#define LWIP_ND6_DELAY_FIRST_PROBE_TIME
Definition: opt.h:2364
#define IP_PROTO_TCP
Definition: ip.h:46
u16_t pkt_id
Definition: mqtt.h:164
u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
Definition: sys_arch.c:141
u32_t msg_idx
Definition: mqtt.h:201
#define ND6_FLAG_SOLICITED
Definition: nd6.h:85
u8_t num
Definition: netif.h:309
#define IP_OFFMASK
Definition: ip4.h:85
#define mib2_udp_unbind(pcb)
Definition: snmp.h:192
#define DHCP_INFORM
Definition: dhcp.h:129
#define ip_current_netif()
Definition: ip.h:133
#define netif_is_link_up(netif)
Definition: netif.h:413
#define lwip_ntohl(x)
Definition: def.h:78
#define ETHARP_DEBUG
Definition: opt.h:2631
#define MEM_STATS_DISPLAY()
Definition: stats.h:399
#define IP6_HBH_HLEN
Definition: ip6.h:99
#define LWIP_ICMP6_DATASIZE
Definition: opt.h:2226
#define IP_STATS_DISPLAY()
Definition: stats.h:361
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:248
#define IP6H_HOPLIM(hdr)
Definition: ip6.h:158
#define IP6_NEXTH_TCP
Definition: ip6.h:65
#define PROBE_MIN
Definition: autoip.h:56
#define IGMP_STATS_DISPLAY()
Definition: stats.h:353
#define DHCP_DEBUG
Definition: opt.h:2828
#define PBUF_FLAG_LLMCAST
Definition: pbuf.h:137
const char * client_id
Definition: mqtt.h:62
int32_t s32_t
Definition: arch.h:124
#define ARP_TABLE_SIZE
Definition: opt.h:549
#define IP6_FRAG_OFFSET_MASK
Definition: ip6.h:131
u16_t pbuf_clen(const struct pbuf *p)
Definition: pbuf.c:800
#define stats_display_memp(mem, index)
Definition: stats.h:483
#define AUTOIP_RANGE_START
Definition: autoip.h:50
#define PBUF_IP_HLEN
Definition: pbuf.h:65
#define TCPH_SET_FLAG(phdr, flags)
Definition: tcp.h:90
#define DHCP_OPTION_NTP
Definition: dhcp.h:148
uint8_t u8_t
Definition: arch.h:119
#define LWIP_MEM_FREE_PROTECT()
Definition: mem.c:322
#define DHCP_OPTION_END
Definition: dhcp.h:149
ip4_addr_t netmask
Definition: lwip.c:74
#define IP6_NEXTH_HOPBYHOP
Definition: ip6.h:64
#define stats_display_igmp(igmp, name)
Definition: stats.h:481
#define mib2_add_route_ip4(dflt, ni)
Definition: snmp.h:187
mqtt_incoming_data_cb_t data_cb
Definition: mqtt.h:198
struct pbuf * pbuf_coalesce(struct pbuf *p, pbuf_layer layer)
Definition: pbuf.c:1229
#define ETHARP_SUPPORT_STATIC_ENTRIES
Definition: opt.h:612
struct netif * netif_list
Definition: netif.c:104
ip6_addr_t ip_addr_t
Definition: ip_addr.h:290
#define IP_PROTO_ICMP
Definition: ip.h:42
#define IP_ADDR_PCB_VERSION_MATCH(addr, pcb)
Definition: ip_addr.h:239
#define IP6_NEXTH_ICMP6
Definition: ip6.h:70
#define TCP_RST
Definition: tcp.h:74
#define UDP_TTL
Definition: opt.h:1105
u8_t pbuf_header_force(struct pbuf *p, s16_t header_size_increment)
Definition: pbuf.c:675
#define AUTOIP_RANGE_END
Definition: autoip.h:52
#define ipaddr_aton(cp, addr)
Definition: ip_addr.h:327
#define DHCP_DISCOVER
Definition: dhcp.h:122
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:616
#define PBUF_FLAG_PUSH
Definition: pbuf.h:128
#define ICMP_TS
Definition: icmp.h:53
#define ip_addr_set_any(is_ipv6, ipaddr)
Definition: ip_addr.h:311
u16_t num
Definition: memp_priv.h:145
pbuf_layer
Definition: pbuf.h:72
err_t tcpip_input(struct pbuf *p, struct netif *inp)
Definition: tcpip.c:212
struct netif * current_input_netif
Definition: ip.h:110
#define IPFRAG_STATS_DISPLAY()
Definition: stats.h:369
#define MEMP_OVERFLOW_CHECK
Definition: opt.h:269
#define mib2_remove_route_ip4(dflt, ni)
Definition: snmp.h:188
#define ND6_PREFIX_FLAG_AUTONOMOUS
Definition: nd6.h:173
#define LWIP_SUPPORT_CUSTOM_PBUF
Definition: pbuf.h:55
u16_t inpub_pkt_id
Definition: mqtt.h:186
u16_t size
Definition: memp_priv.h:141
#define DHCP_SNAME_LEN
Definition: dhcp.h:54
#define MQTT_CONNECT_TIMOUT
Definition: mqtt_opts.h:92
u8_t pbuf_get_at(const struct pbuf *p, u16_t offset)
Definition: pbuf.c:1299
#define LWIP_MEM_ALIGN_SIZE(size)
Definition: arch.h:214
#define IP6_NEXTH_DESTOPTS
Definition: ip6.h:72
void * inpub_arg
Definition: mqtt.h:196
#define ICMP_TSR
Definition: icmp.h:54
int layer
Definition: g29_auto.py:41
#define ip_current_src_addr()
Definition: ip.h:210
pbuf_type
Definition: pbuf.h:101
#define PERF_START
Definition: def.h:46
void
Definition: png.h:1083
#define IGMP_GROUP_IDLE_MEMBER
Definition: igmp.h:66
#define IP6_STATS_INC(x)
Definition: stats.h:428
#define UDP_STATS_INC(x)
Definition: stats.h:336
#define IPFRAG_STATS_INC(x)
Definition: stats.h:368
Definition: ethernet.h:120
#define TCP_SND_BUF
Definition: opt.h:1204
#define MIB2_INIT_NETIF(netif, type, speed)
Definition: snmp.h:138
#define LWIP_MAX(x, y)
Definition: def.h:54
#define SIZEOF_ETHARP_HDR
Definition: etharp.h:73
#define ip_2_ip6(ipaddr)
Definition: ip_addr.h:301
u8_t hwaddr_len
Definition: netif.h:301
#define IP_DEBUG
Definition: opt.h:2694
#define TCP_RST_DEBUG
Definition: opt.h:2793
void pbuf_realloc(struct pbuf *p, u16_t new_len)
Definition: pbuf.c:493
#define ANNOUNCE_NUM
Definition: autoip.h:59
#define TCP_INPUT_DEBUG
Definition: opt.h:2750
#define ICMP_TTL
Definition: opt.h:777
#define mib2_add_arp_entry(ni, ip)
Definition: snmp.h:181
ip_addr_t current_iphdr_src
Definition: ip.h:122
void * memp_malloc_pool(const struct memp_desc *desc)
Definition: memp.c:359
#define ICMP_ER
Definition: icmp.h:46
err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from)
Definition: pbuf.c:948
#define DHCP_OFFER
Definition: dhcp.h:123
#define MIB2_STATS_INC(x)
Definition: stats.h:467
#define TCP_MAXRTX
Definition: opt.h:1157
#define TCP_RTO_DEBUG
Definition: opt.h:2765
#define LWIP_UNUSED_ARG(x)
Definition: arch.h:308
void mqtt_disconnect(mqtt_client_t *client)
void * mem_trim(void *rmem, mem_size_t newsize)
Definition: mem.c:478
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
#define IPH_LEN_SET(hdr, len)
Definition: ip4.h:115
u32_t lwip_htonl(u32_t n)
Definition: def.c:90
#define IN6ADDR_ANY_INIT
Definition: inet.h:81
char name[2]
Definition: netif.h:307
#define TCP_FIN
Definition: tcp.h:72
#define IP_MF
Definition: ip4.h:84
#define IP6_NEXTH_NONE
Definition: ip6.h:71
#define IPH_ID(hdr)
Definition: ip4.h:106
#define IP_ADDR6(ipaddr, i0, i1, i2, i3)
Definition: ip_addr.h:302
#define ROUTER_ALERTLEN
Definition: igmp.h:53
#define DNS_FLAG1_RD
Definition: dns.h:90
err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)
Definition: pbuf.c:1193
#define ICMP_RD
Definition: icmp.h:49
#define ip_current_input_netif()
Definition: ip.h:137
void sys_init(void)
Definition: sys_arch.c:309
#define IP_REASS_DEBUG
Definition: opt.h:2701
struct netif * netif_default
Definition: netif.c:105
#define mib2_netif_removed(ni)
Definition: snmp.h:178
u16_t lwip_htons(u16_t n)
Definition: def.c:76
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
#define IPH_TOS(hdr)
Definition: ip4.h:104
while(sofevent)
Definition: USB_HOST_SHIELD.h:456
void pbuf_chain(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:882
void netif_init(void)
Definition: netif.c:163
#define DHCP_MAGIC_COOKIE
Definition: dhcp.h:134
list a
Definition: createSpeedLookupTable.py:29
#define ICMP_AMR
Definition: icmp.h:58
struct netif * next
Definition: netif.h:227
int8_t s8_t
Definition: arch.h:120
#define IP_IS_V4_VAL(ipaddr)
Definition: ip_addr.h:293
static void do_memp_free_pool(const struct memp_desc *desc, void *mem)
Definition: memp.c:407
mqtt_request_cb_t cb
Definition: mqtt.h:161
#define LWIP_MEM_ALIGN(addr)
Definition: arch.h:229
#define PP_NTOHS(x)
Definition: def.h:80
err_t sys_mutex_new(sys_mutex_t *mutex)
Definition: sys_arch.c:319
#define IP6_NEXTH_FRAGMENT
Definition: ip6.h:69
#define IPH_VHL_SET(hdr, v, hl)
Definition: ip4.h:113
#define IPH_PROTO(hdr)
Definition: ip4.h:109
void pbuf_ref(struct pbuf *p)
Definition: pbuf.c:820
void pbuf_cat(struct pbuf *h, struct pbuf *t)
Definition: pbuf.c:840
#define LL_IP4_MULTICAST_ADDR_0
Definition: ethernet.h:144
#define PBUF_DEBUG
Definition: opt.h:2645
#define SYS_STATS_DISPLAY()
Definition: stats.h:421
void netif_set_default(struct netif *netif)
Definition: netif.c:604
#define TCP_STATS_INC(x)
Definition: stats.h:328
#define ICMP_SQ
Definition: icmp.h:48
#define SOF_KEEPALIVE
Definition: ip.h:98
#define stats_display_mem(mem, name)
Definition: stats.h:482
#define ICMP_DEBUG
Definition: opt.h:2673
#define LWIP_WND_SCALE
Definition: opt.h:1329
LWIP_DECLARE_MEMORY_ALIGNED(ram_heap, MEM_SIZE_ALIGNED+(2U *SIZEOF_STRUCT_MEM))
u16_t pbuf_memcmp(const struct pbuf *p, u16_t offset, const void *s2, u16_t n)
Definition: pbuf.c:1362
static void netif_issue_reports(struct netif *netif, u8_t report_type)
Definition: netif.c:642
#define MEMCPY(dst, src, len)
Definition: opt.h:137
#define local
Definition: gzguts.h:115
#define ICMPH_TYPE_SET(hdr, t)
Definition: icmp.h:84
#define U16_F
Definition: arch.h:143
u16_t timeout_diff
Definition: mqtt.h:166
const uint8_t[]
Definition: 404_html.c:3
u16_t keep_alive
Definition: mqtt.h:181
mqtt_connection_status_t
Definition: mqtt.h:79
#define ip_addr_copy_from_ip6(dest, src)
Definition: ip_addr.h:306
#define MLD6_STATS_INC(x)
Definition: stats.h:452
#define DHCP_CLIENT_PORT
Definition: dhcp.h:47
#define LWIP_DHCP_AUTOIP_COOP_TRIES
Definition: opt.h:936
#define mib2_add_ip4(ni)
Definition: snmp.h:185
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
Definition: sys_arch.c:206
#define LWIP_ND6_RETRANS_TIMER
Definition: opt.h:2356
#define SOF_REUSEADDR
Definition: ip.h:97
#define ETHADDR16_COPY(dst, src)
Definition: ethernet.h:161
void sys_mutex_unlock(sys_mutex_t *mutex)
Definition: sys_arch.c:362
static u8_t pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
Definition: pbuf.c:569
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
Definition: netif.c:241
#define IP_PROTO_UDPLITE
Definition: ip.h:45
s8_t err_t
Definition: err.h:57
void lwip_itoa(char *result, size_t bufsize, int number)
Definition: def.c:198
uintptr_t mem_ptr_t
Definition: arch.h:125
#define SYS_ARCH_DECL_PROTECT(lev)
Definition: sys.h:401
#define LWIP_MEM_ALLOC_UNPROTECT()
Definition: mem.c:327
#define LWIP_ND6_REACHABLE_TIME
Definition: opt.h:2349
Definition: ethernet.h:58
#define stats_display()
Definition: stats.h:479
#define NETIF_FLAG_ETHERNET
Definition: netif.h:95
u8_t rx_buffer[MQTT_VAR_HEADER_BUFFER_LEN]
Definition: mqtt.h:202
mqtt_client_t * mqtt_client_new(void)
#define LWIP_HAVE_LOOPIF
Definition: opt.h:1479
#define ip_addr_copy(dest, src)
Definition: ip_addr.h:305
#define DNS_TABLE_SIZE
Definition: opt.h:1016
PACK_STRUCT_BEGIN struct packed_struct_test PACK_STRUCT_STRUCT
struct mqtt_request_t req_list[MQTT_REQ_MAX_IN_FLIGHT]
Definition: mqtt.h:195
#define DHCP_SNAME_OFS
Definition: dhcp.h:53
#define DHCP_OVERLOAD_SNAME
Definition: dhcp.h:175
#define ND6_OPTION_TYPE_SOURCE_LLADDR
Definition: nd6.h:154
#define MEMP_STATS_DISPLAY(i)
Definition: stats.h:408
#define SMEMCPY(dst, src, len)
Definition: opt.h:145
#define ND6_OPTION_TYPE_MTU
Definition: nd6.h:215
u16_t cyclic_tick
Definition: mqtt.h:180
#define ip_set_option(pcb, opt)
Definition: ip.h:217
#define stats_init()
Definition: stats.h:318
#define IPH_TOS_SET(hdr, tos)
Definition: ip4.h:114
#define DHCP_OPTION_MESSAGE_TYPE_LEN
Definition: dhcp.h:157
struct tcp_pcb * conn
Definition: mqtt.h:189
#define LWIP_ND6_MAX_MULTICAST_SOLICIT
Definition: opt.h:2319
u8_t mqtt_client_is_connected(mqtt_client_t *client)
static u8_t netif_num
Definition: netif.c:107
#define IPH_CHKSUM_SET(hdr, chksum)
Definition: ip4.h:120
icmp6_dur_code
Definition: icmp6.h:98
#define IPH_TTL(hdr)
Definition: ip4.h:108
#define pbuf_init()
Definition: pbuf.h:221
#define DHCP_REQUEST
Definition: dhcp.h:124
#define PBUF_POOL_BUFSIZE_ALIGNED
Definition: pbuf.c:132
#define IPH_OFFSET(hdr)
Definition: ip4.h:107
#define IP_DF
Definition: ip4.h:83
#define TCP_OOSEQ_MAX_PBUFS
Definition: opt.h:1246
void netif_set_link_down(struct netif *netif)
Definition: netif.c:760
icmp_te_type
Definition: icmp.h:71
#define IGMP_MINLEN
Definition: igmp.h:51
#define DHCP_OPTION_DNS_SERVER
Definition: dhcp.h:142
int lwip_stricmp(const char *str1, const char *str2)
Definition: def.c:128
#define TCP_TTL
Definition: opt.h:1139
#define MEMP_STATS_DEC(x, i)
Definition: stats.h:407
struct pbuf * pbuf_dechain(struct pbuf *p)
Definition: pbuf.c:899
#define IGMP_GROUP_DELAYING_MEMBER
Definition: igmp.h:65
#define PBUF_CHECK_FREE_OOSEQ()
Definition: pbuf.h:217
#define IP6_HLEN
Definition: ip6.h:62
#define IP_PROTO_IGMP
Definition: ip.h:43
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
#define DHCP_BOOTREQUEST
Definition: dhcp.h:118
#define DHCP_MIN_OPTIONS_LEN
Definition: dhcp.h:82
ip_addr_t current_iphdr_dest
Definition: ip.h:124
Definition: ethernet.h:110
#define IP6_DEBUG
Definition: opt.h:2849
#define LWIP_DBG_LEVEL_WARNING
Definition: debug.h:55
#define IP_SET_TYPE_VAL(ipaddr, iptype)
Definition: ip_addr.h:298
#define LINK_STATS_DISPLAY()
Definition: stats.h:385
#define TCP_RCV_SCALE
Definition: opt.h:1330
#define HANDLER(x)
Definition: timeouts.c:66
#define IPH_LEN(hdr)
Definition: ip4.h:105
void * mem_malloc(mem_size_t size)
Definition: mem.c:603
#define RATE_LIMIT_INTERVAL
Definition: autoip.h:63
#define ICMP_TE
Definition: icmp.h:51
static void plug_holes(struct mem *mem)
Definition: mem.c:344
u8_t pbuf_header(struct pbuf *p, s16_t header_size_increment)
Definition: pbuf.c:665
#define DHCP_OPTION_LEASE_TIME
Definition: dhcp.h:153
u16_t pkt_id_seq
Definition: mqtt.h:184
#define NETIF_DEBUG
Definition: opt.h:2638
#define LWIP_MEM_FREE_DECL_PROTECT()
Definition: mem.c:321
#define NETIF_FLAG_LINK_UP
Definition: netif.h:87
#define LWIP_DHCP_BOOTP_FILE
Definition: opt.h:867
#define TCP_PSH
Definition: tcp.h:75
mqtt_connection_cb_t connect_cb
Definition: mqtt.h:192
#define TCP_HLEN
Definition: tcp.h:47
#define LWIP_IPV4
Definition: opt.h:640
#define TCP_URG
Definition: tcp.h:77
struct memp ** tab
Definition: memp_priv.h:151
#define PACK_STRUCT_END
Definition: arch.h:251
#define IPH_PROTO_SET(hdr, proto)
Definition: ip4.h:119
#define ipaddr_ntoa(ipaddr)
Definition: ip_addr.h:325
#define TCPH_HDRLEN(phdr)
Definition: tcp.h:83
struct mqtt_request_t * next
Definition: mqtt.h:159
int
Definition: createSpeedLookupTable.py:15
void netif_set_link_up(struct netif *netif)
Definition: netif.c:735
#define DHCP_OPTION_PAD
Definition: dhcp.h:139
static volatile fsensor_t last_state
Definition: filament_sensor.c:24
#define ip_get_option(pcb, opt)
Definition: ip.h:215
#define MEM_STATS_AVAIL(x, y)
Definition: stats.h:395
#define LWIP_PLATFORM_DIAG(x)
Definition: arch.h:79
#define MQTT_CYCLIC_TIMER_INTERVAL
Definition: mqtt_opts.h:78
#define LWIP_IPV6_NUM_ADDRESSES
Definition: opt.h:2160
void(* tcpip_callback_fn)(void *ctx)
Definition: tcpip.h:70
#define PACK_STRUCT_FIELD(x)
Definition: arch.h:273
#define MAX_CONFLICTS
Definition: autoip.h:62
#define DHCP_OVERLOAD_SNAME_FILE
Definition: dhcp.h:176
#define DNS_MQUERY_IPV6_GROUP_INIT
Definition: dns.h:133
#define RAW_TTL
Definition: opt.h:818
#define TCP_CWR
Definition: tcp.h:79
err_t(* netif_init_fn)(struct netif *netif)
Definition: netif.h:155
#define ND6_OPTION_TYPE_ROUTE_INFO
Definition: nd6.h:232
#define U32_F
Definition: arch.h:152
#define DNS_RRCLASS_IN
Definition: dns.h:76
#define UDP_STATS_DISPLAY()
Definition: stats.h:337
u16_t mem_size_t
Definition: mem.h:67
#define TCP_OUTPUT_DEBUG
Definition: opt.h:2786
#define stats_display_sys(sys)
Definition: stats.h:484
u8_t type
Definition: pbuf.h:162
Definition: memp_priv.h:91
#define DHCP_HTYPE_ETH
Definition: dhcp.h:132
#define LWIP_IP_HDRINCL
Definition: ip.h:58
PACK_STRUCT_FLD_8(u8_t dummy1)
#define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags)
Definition: tcp.h:88
#define MIB2_COPY_SYSUPTIME_TO(ptrToVal)
Definition: snmp.h:136
void * connect_arg
Definition: mqtt.h:191
#define TCP_MSS
Definition: opt.h:1183
#define DHCP_OPTION_MAX_MSG_SIZE
Definition: dhcp.h:162
#define LWIP_RAM_HEAP_POINTER
Definition: mem.c:291
#define X32_F
Definition: arch.h:158
u16_t lwip_standard_chksum(const void *dataptr, int len)
Definition: inet_chksum.c:133
#define ANNOUNCE_WAIT
Definition: autoip.h:61
#define PP_HTONL(x)
Definition: def.h:81
memp_t
Definition: memp.h:52
png_uint_32 length
Definition: png.c:2247
void mem_free(void *rmem)
Definition: mem.c:419
#define LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p)
Definition: ip.h:63
Definition: inftrees.h:24
#define IP6H_TC(hdr)
Definition: ip6.h:153
const struct lwip_cyclic_timer lwip_cyclic_timers[]
Definition: timeouts.c:71
u32_t interval_ms
Definition: timeouts.h:66
#define ETH_HWADDR_LEN
Definition: ethernet.h:50
#define IP6_FRAG_MORE_FLAG
Definition: ip6.h:132
void pbuf_put_at(struct pbuf *p, u16_t offset, u8_t data)
Definition: pbuf.c:1339
#define IP6H_PLEN(hdr)
Definition: ip6.h:155
static const struct pbuf * pbuf_skip_const(const struct pbuf *in, u16_t in_offset, u16_t *out_offset)
Definition: pbuf.c:1105
#define DHCP_OPTION_REQUESTED_IP
Definition: dhcp.h:152
#define ND6_STATS_DISPLAY()
Definition: stats.h:461
void * arg
Definition: mqtt.h:162
#define ICMP_ECHO
Definition: icmp.h:50
#define DHCP_NAK
Definition: dhcp.h:127
#define MEM_STATS_INC(x)
Definition: stats.h:396
struct netif * current_netif
Definition: ip.h:108
#define mib2_remove_ip4(ni)
Definition: snmp.h:186
#define CHECKSUM_CHECK_UDP
Definition: opt.h:2104
#define IP6H_V(hdr)
Definition: ip6.h:152
list b
Definition: createSpeedLookupTable.py:30
#define FOLD_U32T(u)
Definition: inet_chksum.h:52
void(* mqtt_request_cb_t)(void *arg, err_t err)
Definition: mqtt.h:149
#define NETIF_FLAG_MLD6
Definition: netif.h:101
#define LWIP_DEBUGF(debug, message)
Definition: debug.h:164
#define SIZEOF_STRUCT_MEM
Definition: mem.c:281
#define DHCP_FILE_OFS
Definition: dhcp.h:55
#define DHCP_OPTION_MESSAGE_TYPE
Definition: dhcp.h:156
#define LWIP_IPV6_SEND_ROUTER_SOLICIT
Definition: opt.h:2189
#define LWIP_DBG_STATE
Definition: debug.h:85
#define IPH_CHKSUM(hdr)
Definition: ip4.h:110
#define NETIF_REPORT_TYPE_IPV6
Definition: netif.c:114
#define TCPH_FLAGS(phdr)
Definition: tcp.h:84
#define IPH_OFFSET_SET(hdr, off)
Definition: ip4.h:117
Definition: ethernet.h:112
#define LOCK_TCPIP_CORE()
Definition: tcpip.h:60
#define PACKED_STRUCT_TEST_EXPECTED_SIZE
Definition: init.c:79
#define NETIF_LINK_CALLBACK(n)
Definition: netif.c:101
#define LWIP_ND6_NUM_ROUTERS
Definition: opt.h:2311
#define SYS_ARCH_TIMEOUT
Definition: sys.h:87
#define MEM_SIZE_ALIGNED
Definition: mem.c:282
#define ICMP6_STATS_DISPLAY()
Definition: stats.h:437
#define ICMP6_STATS_INC(x)
Definition: stats.h:436
#define IP_ADDR6_HOST(ipaddr, i0, i1, i2, i3)
Definition: ip_addr.h:303
const struct memp_desc *const memp_pools[MEMP_MAX]
Definition: memp.c:81
#define LWIP_CONST_CAST(target_type, val)
Definition: arch.h:180
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)
#define IP_HDR_GET_VERSION(ptr)
Definition: ip.h:49
#define MEM_STATS_INC_USED(x, y)
Definition: stats.h:397
#define DNS_FLAG1_RESPONSE
Definition: dns.h:84
#define UDP_HLEN
Definition: udp.h:46
#define IP6H_NEXTH(hdr)
Definition: ip6.h:156
#define TCP_WND
Definition: opt.h:1150
#define IGMP_DEBUG
Definition: opt.h:2680
void sys_sem_free(sys_sem_t *sem)
Definition: sys_arch.c:282
#define ICMP_DUR
Definition: icmp.h:47
#define PERF_STOP(x)
Definition: def.h:47
#define IGMP_MEMB_QUERY
Definition: igmp.h:58
u16_t server_watchdog
Definition: mqtt.h:182
#define LWIP_NETIF_LOOPBACK
Definition: opt.h:1494
void * payload
Definition: pbuf.h:147
#define CHECKSUM_CHECK_ICMP6
Definition: opt.h:2125
#define ND6_OPTION_TYPE_PREFIX_INFO
Definition: nd6.h:171
#define IP6H_FL(hdr)
Definition: ip6.h:154
#define DHCP_OPTION_BROADCAST
Definition: dhcp.h:146
#define IP_GET_TYPE(ipaddr)
Definition: ip_addr.h:300
#define netif_is_up(netif)
Definition: netif.h:401
static png_bytep size_t size
Definition: pngwrite.c:2170
#define IP_PROTO_UDP
Definition: ip.h:44
#define PP_HTONS(x)
Definition: def.h:79
#define NETIF_FLAG_BROADCAST
Definition: netif.h:81
#define IP6H_VTCFL_SET(hdr, v, tc, fl)
Definition: ip6.h:160
#define lwip_strerr(x)
Definition: err.h:108
static sys_mutex_t mem_mutex
Definition: mem.c:303
#define AUTOIP_NET
Definition: autoip.h:48
#define IP6_NEXTH_UDP
Definition: ip6.h:66
#define DNS_MAX_SERVERS
Definition: opt.h:1029