/* Kill all bound sockets on a dropped device.  */
static void nr_kill_by_device(struct net_device *dev)
/* Kill all bound sockets on a dropped device.  */
static void nr_kill_by_device(struct net_device *dev)
{
	struct sock *s;
	struct hlist_node *node;
	spin_lock_bh(&nr_list_lock);
	sk_for_each(s, node, &nr_list)
		if (nr_sk(s)->device == dev)
			nr_disconnect(s, ENETUNREACH);
	spin_unlock_bh(&nr_list_lock);
}