469,904 Members | 1,898 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

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.


Sep 4 '06 #1
0 1023

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.