netpoll.c (4e0c1159d83a658d1ffba5bc3442f4ec4cadb436) netpoll.c (e5ed639913eea3e4783a550291775ab78dd84966)
1/*
2 * Common framework for low-level network console, dump, and debugger code
3 *
4 * Sep 8 2003 Matt Mackall <mpm@selenic.com>
5 *
6 * based on the netconsole code from:
7 *
8 * Copyright (C) 2001 Ingo Molnar <mingo@redhat.com>

--- 689 unchanged lines hidden (view full) ---

698 }
699 }
700
701 if (!memcmp(np->local_mac, "\0\0\0\0\0\0", 6) && ndev->dev_addr)
702 memcpy(np->local_mac, ndev->dev_addr, 6);
703
704 if (!np->local_ip) {
705 rcu_read_lock();
1/*
2 * Common framework for low-level network console, dump, and debugger code
3 *
4 * Sep 8 2003 Matt Mackall <mpm@selenic.com>
5 *
6 * based on the netconsole code from:
7 *
8 * Copyright (C) 2001 Ingo Molnar <mingo@redhat.com>

--- 689 unchanged lines hidden (view full) ---

698 }
699 }
700
701 if (!memcmp(np->local_mac, "\0\0\0\0\0\0", 6) && ndev->dev_addr)
702 memcpy(np->local_mac, ndev->dev_addr, 6);
703
704 if (!np->local_ip) {
705 rcu_read_lock();
706 in_dev = __in_dev_get(ndev);
706 in_dev = __in_dev_get_rcu(ndev);
707
708 if (!in_dev || !in_dev->ifa_list) {
709 rcu_read_unlock();
710 printk(KERN_ERR "%s: no IP address for %s, aborting\n",
711 np->name, np->dev_name);
712 goto release;
713 }
714

--- 72 unchanged lines hidden ---
707
708 if (!in_dev || !in_dev->ifa_list) {
709 rcu_read_unlock();
710 printk(KERN_ERR "%s: no IP address for %s, aborting\n",
711 np->name, np->dev_name);
712 goto release;
713 }
714

--- 72 unchanged lines hidden ---