]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libifconfig: Add function to get bridge status
authorRyan Moeller <freqlabs@FreeBSD.org>
Wed, 1 Jul 2020 02:32:41 +0000 (02:32 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Wed, 1 Jul 2020 02:32:41 +0000 (02:32 +0000)
commite5539fb618cc73fa5a00fc82e35b2803dd1403b3
treeac939cd5eab92b9d18fe6930af825f82b0a64014
parent64612d4e44289285a5cbdd26544421cdfd0a51b2
libifconfig: Add function to get bridge status

The new function operates similarly to ifconfig_lagg_get_lagg_status and
likewise is accompanied by a function to free the bridge status data structure.

I have included in this patch the relocation of some strings describing STP
parameters and the PV2ID macro from ifconfig into net/if_bridgevar.h as they
are useful for consumers of libifconfig.

Reviewed by: kp, melifaro, mmacy
Approved by: mmacy (mentor)
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D25460
lib/libifconfig/Makefile
lib/libifconfig/libifconfig.h
lib/libifconfig/libifconfig_bridge.c [new file with mode: 0644]
sbin/ifconfig/ifbridge.c
sys/net/if_bridgevar.h