Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Programmatic creation of VLAN using ioctl - Not working as it should: Page 1 of 17 (17 Items)
   
Programmatic creation of VLAN using ioctl - Not working as it should  
Hi,

I tried to programmatically add and delete VLAN group by using the following ioctl calls. Doesn't work as intended. I 
then checked the ifconfig sourcecode and it looks like for QNX we have to use ioctl_socket instead of ioctl. I checked 
the code I wrote with ioctl and ioctl_packet. No problems during compilation or running but the results are completely 
different. Things are setup correct with ioctl_socket but not so with ioctl.

My questions:
1. For QNX, should I be making a general rule to use ioctl_socket instead of ioctl?
2. Are there plans to make it a standard ioctl interface instead of ioctl_socket? Can someone explain me the reason why 
the interface definition was changed instead of changing the implementation within ioctl?

Thanks,
Santosh