Hi Stephen:
Stephen Hemminger <[EMAIL PROTECTED]> wrote:
>
> --- linux-2.6.16.2.orig/net/atm/clip.c 2006-04-12 10:10:43.000000000 -0700
> +++ linux-2.6.16.2/net/atm/clip.c 2006-04-12 10:15:46.000000000 -0700
> @@ -613,12 +613,19 @@
>
>
> static int clip_device_event(struct notifier_block *this,unsigned long event,
> - void *dev)
> + void *arg)
> {
> + struct net_device *dev = arg;
> +
> + if (event == NETDEV_DOWN) {
> + neigh_ifdown(&clip_tbl, dev);
> + return NOTIFY_DONE;
> + }
You want NETDEV_UNREGISTER because neigh entries may get added
even if the device is down.
Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html