Deleted Added
full compact
if_clone.c (139823) if_clone.c (141616)
1/*-
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if.c 8.5 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if.c 8.5 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/net/if_clone.c 139823 2005-01-07 01:45:51Z imp $
30 * $FreeBSD: head/sys/net/if_clone.c 141616 2005-02-10 12:02:37Z phk $
31 */
32
33#include <sys/param.h>
34#include <sys/malloc.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/kernel.h>
38#include <sys/systm.h>

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

95 IF_CLONE_UNLOCK(ifc); \
96 if_clone_free(ifc); \
97 } else { \
98 /* silently free the lock */ \
99 IF_CLONE_UNLOCK(ifc); \
100 } \
101 } while (0)
102
31 */
32
33#include <sys/param.h>
34#include <sys/malloc.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>
37#include <sys/kernel.h>
38#include <sys/systm.h>

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

95 IF_CLONE_UNLOCK(ifc); \
96 if_clone_free(ifc); \
97 } else { \
98 /* silently free the lock */ \
99 IF_CLONE_UNLOCK(ifc); \
100 } \
101 } while (0)
102
103MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework");
103static MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework");
104
105void
106if_clone_init(void)
107{
108 IF_CLONERS_LOCK_INIT();
109}
110
111/*

--- 375 unchanged lines hidden ---
104
105void
106if_clone_init(void)
107{
108 IF_CLONERS_LOCK_INIT();
109}
110
111/*

--- 375 unchanged lines hidden ---