Deleted Added
full compact
30c30
< * $FreeBSD: head/sys/net/if_disc.c 191148 2009-04-16 20:30:28Z kmacy $
---
> * $FreeBSD: head/sys/net/if_disc.c 241610 2012-10-16 13:37:54Z glebius $
62,63d61
< #define DISCNAME "disc"
<
75c73,74
< static MALLOC_DEFINE(M_DISC, DISCNAME, "Discard interface");
---
> static const char discname[] = "disc";
> static MALLOC_DEFINE(M_DISC, discname, "Discard interface");
77c76
< IFC_SIMPLE_DECLARE(disc, 0);
---
> static struct if_clone *disc_cloner;
93c92
< if_initname(ifp, ifc->ifc_name, unit);
---
> if_initname(ifp, discname, unit);
138c137,138
< if_clone_attach(&disc_cloner);
---
> disc_cloner = if_clone_simple(discname, disc_clone_create,
> disc_clone_destroy, 0);
141c141
< if_clone_detach(&disc_cloner);
---
> if_clone_detach(disc_cloner);