/*---------------------------------------------------------------------------*/ void ppp_init() { #if PACKET_RX_DEBUG ppp_rx_frame_count = 0; done = 0; #endif ppp_flags = 0; pap_init(); ipcp_init(); lcp_init(); ppp_flags = 0; ahdlc_init(ppp_rx_buffer, PPP_RX_BUFFER_SIZE); ahdlc_rx_ready(); }
/*---------------------------------------------------------------------------*/ void ppp_init() { ppp_rx_frame_count = 0; #if PACKET_RX_DEBUG done = 0; #endif ppp_flags = 0; pap_init(); // #if UIP_CONF_IPV6 ipv6cp_init(); #else ipcp_init(); #endif // lcp_init(); ppp_flags = 0; ahdlc_init(ppp_rx_buffer, PPP_RX_BUFFER_SIZE); ahdlc_rx_ready(); }