ifconfig promisc

 

ifconfig promisc

调用 ioctl(skfd, SIOCSIFFLAGS, &ifr)

|

|

net/core/dev.c     net/core/dev_mcast.c

int dev_ioctl(unsigned int cmd, void __user *arg)

|

|

int dev_change_flags(struct net_device *dev, unsigned flags)

|

|

void dev_set_promiscuity(struct net_device *dev, int inc)

void dev_mc_upload(struct net_device *dev)

dev->set_multicast_list(dev)

调驱动的 void smc_set_multicast_list(struct net_device *dev)   并操作硬件

你可能感兴趣的:(ifconfig promisc)