7#if PPP_SUPPORT && PPPOS_SUPPORT
8static struct netif pppos_netif;
21static void ppp_link_status_cb(ppp_pcb *pcb,
int err_code,
void *
ctx)
28static void pppos_setup(
void)
30 ppp = pppos_create(&pppos_netif, ppp_output_cb, ppp_link_status_cb,
NULL);
35static void pppos_teardown(
void)
39START_TEST(test_pppos_empty_packet_with_valid_fcs)
41 u8_t two_breaks[] = { 0x7e, 0, 0, 0x7e };
42 u8_t other_packet[] = { 0x7e, 0x7d, 0x20, 0x00, 0x7e };
44 pppos_pcb *pppos = (pppos_pcb *)ppp->link_ctx_cb;
49 pppos->in_accm[0] = 0xf0;
51 pppos_input(ppp, two_breaks,
sizeof(two_breaks));
52 pppos_input(ppp, other_packet,
sizeof(other_packet));
62 TESTFUNC(test_pppos_empty_packet_with_valid_fcs)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define LWIP_UNUSED_ARG(x)
Suite * create_suite(const char *name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
static struct test_info tests[]