Displaying 1 result from an estimated 1 matches for "bridge_dev_setup".
2007 Apr 18
1
[Bridge] A question about modify bridge source
...g;
//the bridge initiation , will be called in module_init
struct Bridge *Bridge_fdb_init()
{
struct Bridge *br;
if ((br = kmalloc(sizeof(*br),GFP_KERNEL)) == NULL)
return NULL;
memset(br,0,sizeof(*br));
strncpy(br->dev.name,"BRIDGE",IFNAMSIZ);
ether_setup(&br->dev);
Bridge_dev_setup(&br->dev);
br->lock = RW_LOCK_UNLOCKED;
br->hash_lock = RW_LOCK_UNLOCKED;
register_netdev(&br->dev);
// netif_start_queue(&br->dev);
ethdev = dev_get_by_name("eth0");
ethdev->br_port = (struct net_bridge_port *)br;
dev_set_promiscuity(ethdev,1);
d...