ReactOS 0.4.16-dev-257-g6aa11ac
|
#include "test_dhcp.h"
#include "lwip/netif.h"
#include "lwip/dhcp.h"
#include "lwip/prot/dhcp.h"
#include "lwip/etharp.h"
#include "lwip/inet.h"
#include "netif/ethernet.h"
Go to the source code of this file.
Macros | |
#define | DHCP_TEST_NUM_ARP_FRAMES 1 |
Enumerations | |
enum | tcase { TEST_LWIP_DHCP , TEST_LWIP_DHCP_NAK , TEST_LWIP_DHCP_RELAY , TEST_LWIP_DHCP_NAK_NO_ENDMARKER , TEST_LWIP_DHCP_INVALID_OVERLOAD , TEST_NONE } |
Functions | |
static void | setdebug (int a) |
static void | tick_lwip (void) |
static void | send_pkt (struct netif *netif, const u8_t *data, size_t len) |
static err_t | lwip_tx_func (struct netif *netif, struct pbuf *p) |
static err_t | testif_init (struct netif *netif) |
static void | dhcp_setup (void) |
static void | dhcp_teardown (void) |
static void | check_pkt (struct pbuf *p, u32_t pos, const u8_t *mem, u32_t len) |
static void | check_pkt_fuzzy (struct pbuf *p, u32_t startpos, const u8_t *mem, u32_t len) |
START_TEST (test_dhcp) | |
END_TEST | START_TEST (test_dhcp_nak) |
END_TEST | START_TEST (test_dhcp_relayed) |
END_TEST | START_TEST (test_dhcp_nak_no_endmarker) |
END_TEST | START_TEST (test_dhcp_invalid_overload) |
END_TEST Suite * | dhcp_suite (void) |
Variables | |
static struct netif | net_test |
static const u8_t | broadcast [6] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } |
static const u8_t | magic_cookie [] = { 0x63, 0x82, 0x53, 0x63 } |
static u8_t | dhcp_offer [] |
static u8_t | dhcp_ack [] |
static const u8_t | arpreply [] |
static int | txpacket |
static enum tcase | tcase |
static int | debug = 0 |
static int | tick = 0 |
#define DHCP_TEST_NUM_ARP_FRAMES 1 |
Definition at line 17 of file test_dhcp.c.
Enumerator | |
---|---|
TEST_LWIP_DHCP | |
TEST_LWIP_DHCP_NAK | |
TEST_LWIP_DHCP_RELAY | |
TEST_LWIP_DHCP_NAK_NO_ENDMARKER | |
TEST_LWIP_DHCP_INVALID_OVERLOAD | |
TEST_NONE |
Definition at line 131 of file test_dhcp.c.
Definition at line 231 of file test_dhcp.c.
Referenced by lwip_tx_func().
Definition at line 204 of file test_dhcp.c.
Referenced by dhcp_suite().
END_TEST Suite * dhcp_suite | ( | void | ) |
Create the suite including all tests for this module
Definition at line 1093 of file test_dhcp.c.
Referenced by main().
Definition at line 210 of file test_dhcp.c.
Referenced by dhcp_suite().
Definition at line 256 of file test_dhcp.c.
Referenced by testif_init().
Definition at line 158 of file test_dhcp.c.
Referenced by START_TEST().
Definition at line 141 of file test_dhcp.c.
Referenced by START_TEST().
START_TEST | ( | test_dhcp | ) |
Definition at line 473 of file test_dhcp.c.
END_TEST START_TEST | ( | test_dhcp_invalid_overload | ) |
Definition at line 981 of file test_dhcp.c.
END_TEST START_TEST | ( | test_dhcp_nak | ) |
Definition at line 549 of file test_dhcp.c.
END_TEST START_TEST | ( | test_dhcp_nak_no_endmarker | ) |
Definition at line 865 of file test_dhcp.c.
END_TEST START_TEST | ( | test_dhcp_relayed | ) |
Definition at line 621 of file test_dhcp.c.
Definition at line 184 of file test_dhcp.c.
Referenced by START_TEST().
Definition at line 144 of file test_dhcp.c.
Referenced by START_TEST().
Definition at line 115 of file test_dhcp.c.
Referenced by START_TEST().
Definition at line 23 of file test_dhcp.c.
Referenced by lwip_tx_func(), NetBTNameReq(), NetBTNameWaitLoop(), NetBTSendNameQuery(), priv_script_write_params(), send_packet(), and test_parameters().
|
static |
Definition at line 140 of file test_dhcp.c.
Referenced by lwip_tx_func(), send_pkt(), and setdebug().
|
static |
Definition at line 71 of file test_dhcp.c.
Referenced by START_TEST().
|
static |
Definition at line 27 of file test_dhcp.c.
Referenced by START_TEST().
Definition at line 25 of file test_dhcp.c.
Referenced by lwip_tx_func().
Definition at line 21 of file test_dhcp.c.
Referenced by lwip_tx_func(), and START_TEST().
|
static |
Definition at line 143 of file test_dhcp.c.
Referenced by d3drm1_Tick(), d3drm2_Tick(), d3drm3_Tick(), lwip_tx_func(), rdpsnd_process(), rdpsnd_send_completion(), test_api(), test_get_input_report(), test_read_device(), tick_lwip(), wave_out_close(), wave_out_play(), and wave_out_write().
|
static |
Definition at line 130 of file test_dhcp.c.
Referenced by check_pkt(), dhcp_setup(), lwip_tx_func(), and START_TEST().