예제 #1
0
/**
 * Call ppp_free() inside the tcpip_thread context.
 */
static err_t
pppapi_do_ppp_free(struct tcpip_api_call_data *m)
{
  /* cast through void* to silence alignment warnings. 
   * We know it works because the structs have been instantiated as struct pppapi_msg */
  struct pppapi_msg *msg = (struct pppapi_msg *)(void*)m;

  return ppp_free(msg->msg.ppp);
}
예제 #2
0
/**
 * Call ppp_free() inside the tcpip_thread context.
 */
static void
pppapi_do_ppp_free(struct pppapi_msg_msg *msg)
{
  msg->err = ppp_free(msg->ppp);
  TCPIP_PPPAPI_ACK(msg);
}