nlmon.c (f01387d2693813eb5271a3448e6a082322c7d75d) | nlmon.c (85773a61a310aa5214e8e87d29792803ec5a9eed) |
---|---|
1#include <linux/module.h> 2#include <linux/kernel.h> 3#include <linux/netdevice.h> 4#include <linux/netlink.h> 5#include <net/net_namespace.h> 6#include <linux/if_arp.h> 7#include <net/rtnetlink.h> 8 --- 116 unchanged lines hidden (view full) --- 125 .ndo_start_xmit = nlmon_xmit, 126 .ndo_get_stats64 = nlmon_get_stats64, 127 .ndo_change_mtu = nlmon_change_mtu, 128}; 129 130static void nlmon_setup(struct net_device *dev) 131{ 132 dev->type = ARPHRD_NETLINK; | 1#include <linux/module.h> 2#include <linux/kernel.h> 3#include <linux/netdevice.h> 4#include <linux/netlink.h> 5#include <net/net_namespace.h> 6#include <linux/if_arp.h> 7#include <net/rtnetlink.h> 8 --- 116 unchanged lines hidden (view full) --- 125 .ndo_start_xmit = nlmon_xmit, 126 .ndo_get_stats64 = nlmon_get_stats64, 127 .ndo_change_mtu = nlmon_change_mtu, 128}; 129 130static void nlmon_setup(struct net_device *dev) 131{ 132 dev->type = ARPHRD_NETLINK; |
133 dev->tx_queue_len = 0; | 133 dev->priv_flags |= IFF_NO_QUEUE; |
134 135 dev->netdev_ops = &nlmon_ops; 136 dev->ethtool_ops = &nlmon_ethtool_ops; 137 dev->destructor = free_netdev; 138 139 dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | 140 NETIF_F_HIGHDMA | NETIF_F_LLTX; 141 dev->flags = IFF_NOARP; --- 40 unchanged lines hidden --- | 134 135 dev->netdev_ops = &nlmon_ops; 136 dev->ethtool_ops = &nlmon_ethtool_ops; 137 dev->destructor = free_netdev; 138 139 dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | 140 NETIF_F_HIGHDMA | NETIF_F_LLTX; 141 dev->flags = IFF_NOARP; --- 40 unchanged lines hidden --- |