13 const ip4_addr_t *ipaddr)
28 ip_addr_copy_from_ip4(
netif->netmask, *ip_2_ip4(netmask));
29 ip_addr_copy_from_ip4(
netif->ip_addr, *ip_2_ip4(ip_addr));
83 unsigned char rxbuf[] = {0x20, 0x02, 0x00, 0x00};
95 fail_unless(
p !=
NULL);
98 client->conn->rcv_wnd -=
p->tot_len;
#define mem_free(ptr, bsize)
#define LWIP_UNUSED_ARG(x)
#define NETIF_FLAG_LINK_UP
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
Suite * create_suite(const char *name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
void lwip_check_ensure_no_alloc(unsigned int skip)
static struct test_info tests[]
void mqtt_disconnect(mqtt_client_t *client)
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_client_t * mqtt_client_new(void)
struct netif * netif_list
struct netif * netif_default
const ip_addr_t test_mqtt_remote_ip
const ip_addr_t test_mqtt_local_ip
static struct netif * old_netif_list
static struct netif * old_netif_default
static void mqtt_teardown(void)
END_TEST Suite * mqtt_suite(void)
static err_t test_mqtt_netif_output(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr)
static void test_mqtt_connection_cb(mqtt_client_t *client, void *arg, mqtt_connection_status_t status)
static void test_mqtt_init_netif(struct netif *netif, const ip_addr_t *ip_addr, const ip_addr_t *netmask)
const ip_addr_t test_mqtt_netmask
static void mqtt_setup(void)