id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	guest	host
4264	linux kernel 2.6.31 removes support for old net_device api => Fixed in SVN	typerlc		Fedora rawhide (fc12) has moved to linux kernel 2.6.31. This kernel removes backwards compatibility for the old network driver api. Only the new net_driver_ops structure api is supported.\r\n\r\nThis means that all current versions of vbox (including 2.2.4, and 3.0 beta) will not work on this or later kernels for any distribution.\r\n\r\nSee here for discussion of this change in 2.6.31: http://patchwork.ozlabs.org/patch/27566/\r\n\r\nThis causes compilation failures in VBoxNetFlt-linux.c. Here's output from a sample build failure:\r\n\r\n{{{\r\nmake KBUILD_VERBOSE= -C /lib/modules/2.6.31-0.11.rc0.git13.fc12.i686.PAE/build SUBDIRS=/tmp/vbox.4 SRCROOT=/tmp/vbox.4 modules\r\n  CC [M]  /tmp/vbox.4/linux/VBoxNetFlt-linux.o\r\nIn file included from /tmp/vbox.4/include/VBox/intnet.h:34,\r\n                 from /tmp/vbox.4/linux/../VBoxNetFltInternal.h:26,\r\n                 from /tmp/vbox.4/linux/VBoxNetFlt-linux.c:47:\r\n/tmp/vbox.4/include/VBox/stam.h:69:7: warning: "_MSC_VER" is not defined\r\n/tmp/vbox.4/linux/VBoxNetFlt-linux.c: In function ‘vboxNetAdpNetDevInit’:\r\n/tmp/vbox.4/linux/VBoxNetFlt-linux.c:225: error: ‘struct net_device’ has no member named ‘open’\r\n/tmp/vbox.4/linux/VBoxNetFlt-linux.c:226: error: ‘struct net_device’ has no member named ‘stop’\r\n/tmp/vbox.4/linux/VBoxNetFlt-linux.c:227: error: ‘struct net_device’ has no member named ‘hard_start_xmit’\r\n/tmp/vbox.4/linux/VBoxNetFlt-linux.c:228: error: ‘struct net_device’ has no member named ‘get_stats’\r\nmake[2]: *** [/tmp/vbox.4/linux/VBoxNetFlt-linux.o] Error 1\r\nmake[1]: *** [_module_/tmp/vbox.4] Error 2\r\nmake: *** [vboxnetflt] Error 2\r\n}}}	defect	closed	major	network	VirtualBox 2.2.4	fixed			other	Linux
