Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Unable to register a virtual network device in kernel 2.6.28
Hi everyone,
I am using Kubuntu 9.0.4 with kernel version 2.6.28. I want to register a virtual network device with custom ioctl. But register_netdev(struct net_device) is giving me a segmentation fault. Here is the code i have written.
The idea here is to create a virtual network device with custom ioctl and to use netfilter for implementing pre-routing and post-routing logic to shape the incoming and outgoing traffic at a gateway. But register_netdev() function is throwing segmentation fault with follwoting error. (taken from /var/log/messages).
This error is reproducable. Every thing seems to be ok in the code, but I dont know why I am getting this fault, am I missing out on some thing? Is there any thing extra I should do in the code? Please help me out....
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe