ethernet device xmit function is not gettting called

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 I wrote a module to create dummy ethernet device, the intention is to
add it to a bridge and transmit modified packets. I get ethernet device
created but its xmit function is not called when the bridge receives a
packet.

I feel I have missed some information to register netdevice.

To add to bridge I did the following:
brctl addbr br0
brctl addif bro eth0
brctl addif br0 firsteth0
ifconfig etho 0.0.0.0
ifconfig bro 172.16.2.100 up

When I try to add IP address to firsteth0, I get a kernel panic!!
Can we give IP to dummy ethernet device?

Please help, I am given little time to complete this :( I am attaching
the code for the dummy ethernet device.
-Ravi



-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux