Do not cast simple_lock() to (void). It may be a do { } while() macro, and then compilation fails. Found by Håvard Eidnes.
netbsd-tap is the "pkgsrcized" version of the implementation of tap(4) that can be found in NetBSD-current. It is compatible with NetBSD 2.0 and above.