Deleted Added
full compact
if_epair.c (195892) if_epair.c (196019)
1/*-
2 * Copyright (c) 2008 The FreeBSD Foundation
3 * Copyright (c) 2009 Bjoern A. Zeeb <bz@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This software was developed by CK Software GmbH under sponsorship
7 * from the FreeBSD Foundation.
8 *

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

33 * (``two interfaces with a virtual cross-over cable'').
34 *
35 * This is mostly intended to be used to provide connectivity between
36 * different virtual network stack instances.
37 */
38/*
39 * Things to re-think once we have more experience:
40 * - ifp->if_reassign function once we can test with vimage. Depending on
1/*-
2 * Copyright (c) 2008 The FreeBSD Foundation
3 * Copyright (c) 2009 Bjoern A. Zeeb <bz@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This software was developed by CK Software GmbH under sponsorship
7 * from the FreeBSD Foundation.
8 *

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

33 * (``two interfaces with a virtual cross-over cable'').
34 *
35 * This is mostly intended to be used to provide connectivity between
36 * different virtual network stack instances.
37 */
38/*
39 * Things to re-think once we have more experience:
40 * - ifp->if_reassign function once we can test with vimage. Depending on
41 * how if_vomve() is going to be improved.
41 * how if_vmove() is going to be improved.
42 * - Real random etheraddrs that are checked to be uniquish; we would need
43 * to re-do them in case we move the interface between network stacks
44 * in a private if_reassign function.
45 * In case we bridge to a real interface/network or between indepedent
46 * epairs on multiple stacks/machines, we may need this.
47 * For now let the user handle that case.
48 */
49
50#include <sys/cdefs.h>
42 * - Real random etheraddrs that are checked to be uniquish; we would need
43 * to re-do them in case we move the interface between network stacks
44 * in a private if_reassign function.
45 * In case we bridge to a real interface/network or between indepedent
46 * epairs on multiple stacks/machines, we may need this.
47 * For now let the user handle that case.
48 */
49
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/sys/net/if_epair.c 195892 2009-07-26 12:20:07Z bz $");
51__FBSDID("$FreeBSD: head/sys/net/if_epair.c 196019 2009-08-01 19:26:27Z rwatson $");
52
53#include <sys/param.h>
54#include <sys/kernel.h>
55#include <sys/mbuf.h>
56#include <sys/module.h>
57#include <sys/refcount.h>
58#include <sys/queue.h>
59#include <sys/smp.h>
60#include <sys/socket.h>
61#include <sys/sockio.h>
62#include <sys/sysctl.h>
63#include <sys/types.h>
52
53#include <sys/param.h>
54#include <sys/kernel.h>
55#include <sys/mbuf.h>
56#include <sys/module.h>
57#include <sys/refcount.h>
58#include <sys/queue.h>
59#include <sys/smp.h>
60#include <sys/socket.h>
61#include <sys/sockio.h>
62#include <sys/sysctl.h>
63#include <sys/types.h>
64#include <sys/vimage.h>
65
66#include <net/bpf.h>
67#include <net/ethernet.h>
68#include <net/if.h>
69#include <net/if_clone.h>
70#include <net/if_var.h>
71#include <net/if_types.h>
72#include <net/netisr.h>
64
65#include <net/bpf.h>
66#include <net/ethernet.h>
67#include <net/if.h>
68#include <net/if_clone.h>
69#include <net/if_var.h>
70#include <net/if_types.h>
71#include <net/netisr.h>
72#include <net/vnet.h>
73
74#define EPAIRNAME "epair"
75
76SYSCTL_DECL(_net_link);
77SYSCTL_NODE(_net_link, OID_AUTO, epair, CTLFLAG_RW, 0, "epair sysctl");
78
79#ifdef EPAIR_DEBUG
80static int epair_debug = 0;

--- 816 unchanged lines hidden ---
73
74#define EPAIRNAME "epair"
75
76SYSCTL_DECL(_net_link);
77SYSCTL_NODE(_net_link, OID_AUTO, epair, CTLFLAG_RW, 0, "epair sysctl");
78
79#ifdef EPAIR_DEBUG
80static int epair_debug = 0;

--- 816 unchanged lines hidden ---