| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Spanning tree protocol; BPDU handling |
|---|
| 3 | 4 | * Linux ethernet bridge |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Authors: |
|---|
| 6 | 7 | * Lennert Buytenhek <buytenh@gnu.org> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or |
|---|
| 9 | | - * modify it under the terms of the GNU General Public License |
|---|
| 10 | | - * as published by the Free Software Foundation; either version |
|---|
| 11 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 122 | 118 | br_set_ticks(buf+33, bpdu->forward_delay); |
|---|
| 123 | 119 | |
|---|
| 124 | 120 | br_send_bpdu(p, buf, 35); |
|---|
| 121 | + |
|---|
| 122 | + p->stp_xstats.tx_bpdu++; |
|---|
| 125 | 123 | } |
|---|
| 126 | 124 | |
|---|
| 127 | 125 | /* called under bridge lock */ |
|---|
| .. | .. |
|---|
| 137 | 135 | buf[2] = 0; |
|---|
| 138 | 136 | buf[3] = BPDU_TYPE_TCN; |
|---|
| 139 | 137 | br_send_bpdu(p, buf, 4); |
|---|
| 138 | + |
|---|
| 139 | + p->stp_xstats.tx_tcn++; |
|---|
| 140 | 140 | } |
|---|
| 141 | 141 | |
|---|
| 142 | 142 | /* |
|---|