Below is the planned commit message:
Wtap(4) originally worked with two user-space scripts: device creation/deletion with src/tools/tools/wtap/wtap.c, and visibility control with src/tools/tools/wtap/vis_map.c. Since the two tools are necessary for wtap(4), it's not reasonable to locate them in src/tools. Wtapctl(8) not only combines the two scripts but also adds some convenient features, Some of these features needs the modification of wtap(4) and the others are done by adding some of the ioctl(2) command in wtap(4). - Device creation without id (automate the device creation in wtap(4)) - Device list - Show the link in the visibility plugin Also, wtap(4) can only support 64 nodes (by checking the size of mac_pool in wtap_hal/hal.c and the #define MAX_NBR_WTAP (64)), but the size for struct vis_map in plugins/visibility.h is unreasonably large (for 1024 nodes). I fixed the bug by changing the size and doing some conditional checks in wtap(4). Signed-off-by: EnWeiWu <enweiwu@FreeBSD.org>
This diff depends on D35841.