Ejemplo n.º 1
0
void PPP_lowerup
   (
      _ppp_handle    handle
            /* [IN] - the PPP state structure */
   )
{ /* Body */

#if RTCSCFG_ENABLE_IP4

   PPP_CFG_PTR ppp_ptr = handle;

   PPPFSM_lowerup(&ppp_ptr->LCP_FSM);

#endif /* RTCSCFG_ENABLE_IP4 */

} /* Endbody */
Ejemplo n.º 2
0
static void IPCP_lowerup
   (
      pointer fsm
            /* [IN] - IPCP automaton */
   )
{ /* Body */
   IP_IF_PTR            if_ptr = ((PPPFSM_CFG_PTR)fsm)->PRIVATE;
   IPCP_CFG_STRUCT_PTR  ipcp_ptr = if_ptr->HANDLE;

   /* Set the MTU */
   if_ptr->MTU = PPP_getmtu(ipcp_ptr->HANDLE);

   /* Call the previous PPP_LINK_UP callback */
   if (ipcp_ptr->CALLUP) {
      ipcp_ptr->CALLUP(ipcp_ptr->PARAMUP);
   } /* Endif */

   /* Start IPCP */
   PPPFSM_lowerup(fsm);

} /* Endbody */