Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
net_ioctl [2018/09/03 16:36] – [sock_ioctl()] rpjdaynet_ioctl [2018/09/04 10:31] (current) – [send_ioctl()] rpjday
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;+        ctx->ifr.ifr_data = cmd;        // command-specific structure
         return ioctl(ctx->fd, SIOCETHTOOL, &ctx->ifr);         return ioctl(ctx->fd, SIOCETHTOOL, &ctx->ifr);
 } }
 #endif #endif
 </code> </code>
 +
 +QUESTION: What is returned in ifreq%%->%%cmd?
  
 ==== struct cmd_context ==== ==== struct cmd_context ====
  • net_ioctl.1535992592.txt.gz
  • Last modified: 2018/09/03 16:36
  • by rpjday