netdevices do not use the header_ops, we should test if these header_ops are
really not in use.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1267
030b6a49-0b11-0410-94ab-
b0dab22257f2
if (gwj->src.dev->type != ARPHRD_CAN)
goto put_src_out;
+ if (gwj->src.dev->header_ops)
+ goto put_src_out;
+
gwj->dst.dev = dev_get_by_index(&init_net, gwj->ccgw.dst_idx);
if (!gwj->dst.dev)
if (gwj->dst.dev->type != ARPHRD_CAN)
goto put_src_dst_out;
+ if (gwj->dst.dev->header_ops)
+ goto put_src_dst_out;
+
ASSERT_RTNL();
err = cgw_register_filter(gwj);