/** * Call ppp_ioctl() inside the tcpip_thread context. */ static err_t pppapi_do_ppp_ioctl(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_ioctl(msg->msg.ppp, msg->msg.msg.ioctl.cmd, msg->msg.msg.ioctl.arg); }
/** * Call ppp_ioctl() inside the tcpip_thread context. */ static void pppapi_do_ppp_ioctl(struct pppapi_msg_msg *msg) { msg->err = ppp_ioctl(msg->ppp, msg->msg.ioctl.cmd, msg->msg.ioctl.arg); TCPIP_PPPAPI_ACK(msg); }