We already have the unit number in fl_ifname.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 26 Feb 2005 14:16:57 +0000 (14:16 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Sat, 26 Feb 2005 14:16:57 +0000 (14:16 +0000)
contrib/ipfilter/ipmon.c

index fd60884..f7e2865 100644 (file)
@@ -922,7 +922,8 @@ int blen;
        }
 #if (SOLARIS || \
        (defined(NetBSD) && (NetBSD <= 1991011) && (NetBSD >= 199603)) || \
-       (defined(OpenBSD) && (OpenBSD >= 199603))) || defined(linux)
+       (defined(OpenBSD) && (OpenBSD >= 199603))) || defined(linux) || \
+       defined(__DragonFly__)
        {
        char    ifname[sizeof(ipf->fl_ifname) + 1];