472,135 Members | 1,514 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,135 software developers and data experts.

fcntl() and packing structs with unions.

I'm having some trouble building a proper argument for an ioctl call.
The operation I'm working with is TUNSETIFF _IOW('T', 202, int) which
takes a struct ifreq as the arg. Could someone familiar with the
struct (usually defined in net/if.h) tell me how the heck to encode it
using the struct/array module? An example would be fantastic.

Thanks

Sep 4 '06 #1
0 1047

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by news.microsoft.com | last post: by
18 posts views Thread by Edward Diener | last post: by
1 post views Thread by Gajendra | last post: by
8 posts views Thread by news.microsoft.com | last post: by
17 posts views Thread by Christopher Benson-Manica | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.