User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
net_ioctl [2018/09/04 09:57]
rpjday [send_ioctl()]
net_ioctl [2018/09/04 10:31] (current)
rpjday [send_ioctl()]
Line 30: Line 30:
 int send_ioctl(struct cmd_context *ctx, void *cmd) int send_ioctl(struct cmd_context *ctx, void *cmd)
 { {
-        ctx->​ifr.ifr_data = cmd;        // Where to return stuff(?)+        ctx->​ifr.ifr_data = cmd;        // command-specific structure
         return ioctl(ctx->​fd,​ SIOCETHTOOL,​ &​ctx->​ifr);​         return ioctl(ctx->​fd,​ SIOCETHTOOL,​ &​ctx->​ifr);​
 } }
net_ioctl.txt ยท Last modified: 2018/09/04 10:31 by rpjday