Deleted Added
full compact
bridgestp.c (295126) bridgestp.c (298995)
1/* $NetBSD: bridgestp.c,v 1.5 2003/11/28 08:56:48 keihan Exp $ */
2
3/*
4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net)
5 * Copyright (c) 2006 Andrew Thompson (thompsa@FreeBSD.org)
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 */
31
32/*
33 * Implementation of the spanning tree protocol as defined in
34 * ISO/IEC 802.1D-2004, June 9, 2004.
35 */
36
37#include <sys/cdefs.h>
1/* $NetBSD: bridgestp.c,v 1.5 2003/11/28 08:56:48 keihan Exp $ */
2
3/*
4 * Copyright (c) 2000 Jason L. Wright (jason@thought.net)
5 * Copyright (c) 2006 Andrew Thompson (thompsa@FreeBSD.org)
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 */
31
32/*
33 * Implementation of the spanning tree protocol as defined in
34 * ISO/IEC 802.1D-2004, June 9, 2004.
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/net/bridgestp.c 295126 2016-02-01 17:41:21Z glebius $");
38__FBSDID("$FreeBSD: head/sys/net/bridgestp.c 298995 2016-05-03 18:05:43Z pfg $");
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/mbuf.h>
43#include <sys/socket.h>
44#include <sys/sockio.h>
45#include <sys/kernel.h>
46#include <sys/malloc.h>

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

784 /* default to our priority vector */
785 bs->bs_root_pv = bs->bs_bridge_pv;
786 bs->bs_root_msg_age = 0;
787 bs->bs_root_max_age = bs->bs_bridge_max_age;
788 bs->bs_root_fdelay = bs->bs_bridge_fdelay;
789 bs->bs_root_htime = bs->bs_bridge_htime;
790 bs->bs_root_port = NULL;
791
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/mbuf.h>
43#include <sys/socket.h>
44#include <sys/sockio.h>
45#include <sys/kernel.h>
46#include <sys/malloc.h>

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

784 /* default to our priority vector */
785 bs->bs_root_pv = bs->bs_bridge_pv;
786 bs->bs_root_msg_age = 0;
787 bs->bs_root_max_age = bs->bs_bridge_max_age;
788 bs->bs_root_fdelay = bs->bs_bridge_fdelay;
789 bs->bs_root_htime = bs->bs_bridge_htime;
790 bs->bs_root_port = NULL;
791
792 /* check if any recieved info supersedes us */
792 /* check if any received info supersedes us */
793 LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
794 if (bp->bp_infois != BSTP_INFO_RECEIVED)
795 continue;
796
797 pv = bp->bp_port_pv;
798 pv.pv_cost += bp->bp_path_cost;
799
800 /*

--- 1474 unchanged lines hidden ---
793 LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
794 if (bp->bp_infois != BSTP_INFO_RECEIVED)
795 continue;
796
797 pv = bp->bp_port_pv;
798 pv.pv_cost += bp->bp_path_cost;
799
800 /*

--- 1474 unchanged lines hidden ---