clip.c (522400623e240ad134cb4101b1fddc3245d2a7ed) clip.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/* net/atm/clip.c - RFC1577 Classical IP over ATM */
2
3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
4
5#include <linux/string.h>
6#include <linux/errno.h>
7#include <linux/kernel.h> /* for UINT_MAX */
8#include <linux/module.h>

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

607 return number;
608}
609
610static int clip_device_event(struct notifier_block *this, unsigned long event,
611 void *arg)
612{
613 struct net_device *dev = arg;
614
1/* net/atm/clip.c - RFC1577 Classical IP over ATM */
2
3/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
4
5#include <linux/string.h>
6#include <linux/errno.h>
7#include <linux/kernel.h> /* for UINT_MAX */
8#include <linux/module.h>

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

607 return number;
608}
609
610static int clip_device_event(struct notifier_block *this, unsigned long event,
611 void *arg)
612{
613 struct net_device *dev = arg;
614
615 if (dev->nd_net != &init_net)
616 return NOTIFY_DONE;
617
615 if (event == NETDEV_UNREGISTER) {
616 neigh_ifdown(&clip_tbl, dev);
617 return NOTIFY_DONE;
618 }
619
620 /* ignore non-CLIP devices */
621 if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit)
622 return NOTIFY_DONE;

--- 408 unchanged lines hidden ---
618 if (event == NETDEV_UNREGISTER) {
619 neigh_ifdown(&clip_tbl, dev);
620 return NOTIFY_DONE;
621 }
622
623 /* ignore non-CLIP devices */
624 if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit)
625 return NOTIFY_DONE;

--- 408 unchanged lines hidden ---