devinet.c (b2315372eac9cd9f622c32a93e323cf6f0f03462) devinet.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * NET3 IP device support routines.
3 *
4 * Version: $Id: devinet.c,v 1.44 2001/10/31 21:55:54 davem Exp $
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

1046/* Called only under RTNL semaphore */
1047
1048static int inetdev_event(struct notifier_block *this, unsigned long event,
1049 void *ptr)
1050{
1051 struct net_device *dev = ptr;
1052 struct in_device *in_dev = __in_dev_get_rtnl(dev);
1053
1/*
2 * NET3 IP device support routines.
3 *
4 * Version: $Id: devinet.c,v 1.44 2001/10/31 21:55:54 davem Exp $
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

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

1046/* Called only under RTNL semaphore */
1047
1048static int inetdev_event(struct notifier_block *this, unsigned long event,
1049 void *ptr)
1050{
1051 struct net_device *dev = ptr;
1052 struct in_device *in_dev = __in_dev_get_rtnl(dev);
1053
1054 if (dev->nd_net != &init_net)
1055 return NOTIFY_DONE;
1056
1054 ASSERT_RTNL();
1055
1056 if (!in_dev) {
1057 if (event == NETDEV_REGISTER) {
1058 in_dev = inetdev_init(dev);
1059 if (!in_dev)
1060 return notifier_from_errno(-ENOMEM);
1061 if (dev == &loopback_dev) {

--- 516 unchanged lines hidden ---
1057 ASSERT_RTNL();
1058
1059 if (!in_dev) {
1060 if (event == NETDEV_REGISTER) {
1061 in_dev = inetdev_init(dev);
1062 if (!in_dev)
1063 return notifier_from_errno(-ENOMEM);
1064 if (dev == &loopback_dev) {

--- 516 unchanged lines hidden ---