Deleted Added
full compact
bridgestp.c (181803) bridgestp.c (183550)
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 181803 2008-08-17 23:27:27Z bz $");
38__FBSDID("$FreeBSD: head/sys/net/bridgestp.c 183550 2008-10-02 15:37:58Z zec $");
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/callout.h>

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

2012 return (1);
2013
2014 return (0);
2015}
2016
2017void
2018bstp_reinit(struct bstp_state *bs)
2019{
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/callout.h>

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

2012 return (1);
2013
2014 return (0);
2015}
2016
2017void
2018bstp_reinit(struct bstp_state *bs)
2019{
2020 INIT_VNET_NET(curvnet);
2020 struct bstp_port *bp;
2021 struct ifnet *ifp, *mif;
2022 u_char *e_addr;
2023 static const u_char llzero[ETHER_ADDR_LEN]; /* 00:00:00:00:00:00 */
2024
2025 BSTP_LOCK_ASSERT(bs);
2026
2027 mif = NULL;

--- 233 unchanged lines hidden ---
2021 struct bstp_port *bp;
2022 struct ifnet *ifp, *mif;
2023 u_char *e_addr;
2024 static const u_char llzero[ETHER_ADDR_LEN]; /* 00:00:00:00:00:00 */
2025
2026 BSTP_LOCK_ASSERT(bs);
2027
2028 mif = NULL;

--- 233 unchanged lines hidden ---