Exemple #1
0
/**
 * Call ppp_listen() inside the tcpip_thread context.
 */
static err_t
pppapi_do_ppp_listen(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_listen(msg->msg.ppp);
}
Exemple #2
0
/**
 * Call ppp_listen() inside the tcpip_thread context.
 */
static void
pppapi_do_ppp_listen(struct pppapi_msg_msg *msg)
{
  msg->err = ppp_listen(msg->ppp, msg->msg.listen.addrs);
  TCPIP_PPPAPI_ACK(msg);
}