Deleted Added
full compact
if_vlan.c (132659) if_vlan.c (133741)
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 132659 2004-07-26 14:46:04Z yar $
29 * $FreeBSD: head/sys/net/if_vlan.c 133741 2004-08-15 06:24:42Z jmg $
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

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

816{
817 struct ifvlan *ifv;
818
819 VLAN_LOCK();
820 LIST_FOREACH(ifv, &ifv_list, ifv_list) {
821 if (ifv->ifv_p == ifp) {
822 ifv->ifv_if.if_link_state = ifv->ifv_p->if_link_state;
823 rt_ifmsg(&(ifv->ifv_if));
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

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

816{
817 struct ifvlan *ifv;
818
819 VLAN_LOCK();
820 LIST_FOREACH(ifv, &ifv_list, ifv_list) {
821 if (ifv->ifv_p == ifp) {
822 ifv->ifv_if.if_link_state = ifv->ifv_p->if_link_state;
823 rt_ifmsg(&(ifv->ifv_if));
824 KNOTE(&ifp->if_klist, link);
824 KNOTE_UNLOCKED(&ifp->if_klist, link);
825 }
826 }
827 VLAN_UNLOCK();
828}
829
830static int
831vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
832{

--- 155 unchanged lines hidden ---
825 }
826 }
827 VLAN_UNLOCK();
828}
829
830static int
831vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
832{

--- 155 unchanged lines hidden ---