Hi,

On 24/12/2007, Krassimir Slavchev <[EMAIL PROTECTED]> wrote:
> 'ifconfig -l [address_family]' does not work correct on RELENG_7
>
>
> FreeBSD 6.3-BETA2:
> # ifconfig -l
> em0 em1 plip0 lo0 pflog0
>
> #ifconfig -l ether
> em0 em1
>
> But:
> FreeBSD 7.0-BETA4:
> # ifconfig -l
> em0 em1 plip0 lo0 pflog0
>
> #ifconfig -l ether
> em0 em1 plip0 lo0 pflog0
>
> I need this functionality to get all ethernet interfaces. Is there other
> way to do this?
>

To revert this functionality try this patch please.

--- /usr/src/sbin/ifconfig/ifconfig.c   2007-12-26 23:25:17.000000000 +0300
+++ /tmp/ifconfig.c     2007-12-26 23:18:53.000000000 +0300
@@ -298,9 +298,12 @@
                 * Are we just listing the interfaces?
                 */
                if (namesonly) {
-                       if (ifindex > 1)
-                               printf(" ");
-                       fputs(name, stdout);
+                       if (afp == NULL || afp->af_af != AF_LINK ||
+                           sdl->sdl_type == IFT_ETHER) {
+                               if (ifindex > 1)
+                                       printf(" ");
+                               fputs(name, stdout);
+                       }
                        continue;
                }
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to