pktgen.c (666002218d59db271e5c1ede1d80227170c51987) | pktgen.c (e5ed639913eea3e4783a550291775ab78dd84966) |
---|---|
1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 1653 unchanged lines hidden (view full) --- 1662 else { 1663 pkt_dev->saddr_min = 0; 1664 pkt_dev->saddr_max = 0; 1665 if (strlen(pkt_dev->src_min) == 0) { 1666 1667 struct in_device *in_dev; 1668 1669 rcu_read_lock(); | 1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 1653 unchanged lines hidden (view full) --- 1662 else { 1663 pkt_dev->saddr_min = 0; 1664 pkt_dev->saddr_max = 0; 1665 if (strlen(pkt_dev->src_min) == 0) { 1666 1667 struct in_device *in_dev; 1668 1669 rcu_read_lock(); |
1670 in_dev = __in_dev_get(pkt_dev->odev); | 1670 in_dev = __in_dev_get_rcu(pkt_dev->odev); |
1671 if (in_dev) { 1672 if (in_dev->ifa_list) { 1673 pkt_dev->saddr_min = in_dev->ifa_list->ifa_address; 1674 pkt_dev->saddr_max = pkt_dev->saddr_min; 1675 } 1676 __in_dev_put(in_dev); 1677 } 1678 rcu_read_unlock(); --- 1437 unchanged lines hidden --- | 1671 if (in_dev) { 1672 if (in_dev->ifa_list) { 1673 pkt_dev->saddr_min = in_dev->ifa_list->ifa_address; 1674 pkt_dev->saddr_max = pkt_dev->saddr_min; 1675 } 1676 __in_dev_put(in_dev); 1677 } 1678 rcu_read_unlock(); --- 1437 unchanged lines hidden --- |