Module Name: src Committed By: ozaki-r Date: Fri Nov 9 06:44:31 UTC 2018
Modified Files: src/sys/net: if_bridge.c Log Message: Fix that brconfig <bridge> (addr) can't show a large number of MAC addresses The command shows only 256 addresses at maximum even if a bridge caches more addresses. It occurs because the kernel doesn't return an error if the command passes a short buffer that can't store all cached addresses; the kernel fills cached addresses as much as possible and returns it without telling that the result is truncated. Fix the issue by telling a required size of a buffer if a buffer passed from the command is not enough, which lets the command retry with an enough buffer. Reported by k-goda@IIJ To generate a diff of this commit: cvs rdiff -u -r1.159 -r1.160 src/sys/net/if_bridge.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.