Deleted Added
full compact
if_vlan.c (60536) if_vlan.c (63090)
1/*
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*
2 * Copyright 1998 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

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

21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/net/if_vlan.c 60536 2000-05-14 02:18:43Z archie $
29 * $FreeBSD: head/sys/net/if_vlan.c 63090 2000-07-13 22:54:34Z archie $
30 */
31
32/*
33 * if_vlan.c - pseudo-device driver for IEEE 802.1Q virtual LANs.
34 * Might be extended some day to also handle IEEE 802.1p priority
35 * tagging. This is sort of sneaky in the implementation, since
36 * we need to pretend to be enough of an Ethernet implementation
37 * to make arp work. The way we do this is by telling everyone

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

165 ifp->if_linkmiblen = sizeof ifv_softc[i].ifv_mib;
166 /* NB: mtu is not set here */
167
168 ifp->if_init = vlan_ifinit;
169 ifp->if_start = vlan_start;
170 ifp->if_ioctl = vlan_ioctl;
171 ifp->if_output = ether_output;
172 ifp->if_snd.ifq_maxlen = ifqmaxlen;
30 */
31
32/*
33 * if_vlan.c - pseudo-device driver for IEEE 802.1Q virtual LANs.
34 * Might be extended some day to also handle IEEE 802.1p priority
35 * tagging. This is sort of sneaky in the implementation, since
36 * we need to pretend to be enough of an Ethernet implementation
37 * to make arp work. The way we do this is by telling everyone

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

165 ifp->if_linkmiblen = sizeof ifv_softc[i].ifv_mib;
166 /* NB: mtu is not set here */
167
168 ifp->if_init = vlan_ifinit;
169 ifp->if_start = vlan_start;
170 ifp->if_ioctl = vlan_ioctl;
171 ifp->if_output = ether_output;
172 ifp->if_snd.ifq_maxlen = ifqmaxlen;
173 if_attach(ifp);
174 ether_ifattach(ifp);
175 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
173 ether_ifattach(ifp, ETHER_BPF_SUPPORTED);
176 /* Now undo some of the damage... */
177 ifp->if_data.ifi_type = IFT_8021_VLAN;
178 ifp->if_data.ifi_hdrlen = EVL_ENCAPLEN;
179 ifp->if_resolvemulti = 0;
180 }
181}
182PSEUDO_SET(vlaninit, if_vlan);
183

--- 355 unchanged lines hidden ---
174 /* Now undo some of the damage... */
175 ifp->if_data.ifi_type = IFT_8021_VLAN;
176 ifp->if_data.ifi_hdrlen = EVL_ENCAPLEN;
177 ifp->if_resolvemulti = 0;
178 }
179}
180PSEUDO_SET(vlaninit, if_vlan);
181

--- 355 unchanged lines hidden ---