MFC r311290,r311293,r311294:
r311290:
Use strlcpy instead of strcpy when copying the bridge name to ifr.ifr_name
to avoid buffer overflows
CID:
1006735,
1006737,
1006738
r311293:
bridge_do_pfctl: allocate mib_name dynamically using asprintf
This is being done to reduce wasted space, simplify complexity in
the code, and to quell a Coverity warning about buffer overruns.
warning about buffer overruns.
CID:
1006736
r311294:
style cleanup
- bridge_pf_dump: use nitems instead of spelling it out longhand
- bridge_do_pfctl: sort variables by alignment for type
git-svn-id: svn://svn.freebsd.org/base/stable/10@312044
ccf9f872-aa2e-dd11-9fc8-
001c23d0bc1f