-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, '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? Best Regards -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHb3WBxJBWvpalMpkRAmZSAKCP1zuGQ/jzFDuPJEM/pCNEkP/gIACfeImb VODEPRfu0Pl38yML0WA8Tow=Rkav -----END PGP SIGNATURE-----
On Mon, Dec 24, 2007 at 11:01:53AM +0200, Krassimir Slavchev wrote:> I need this functionality to get all ethernet interfaces. Is there other > way to do this?netstat -i -f link Maybe? -- Regards, Richard. /* Homo Sapiens non urinat in ventum */
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Arends wrote:> On Mon, Dec 24, 2007 at 11:01:53AM +0200, Krassimir Slavchev wrote: > >> I need this functionality to get all ethernet interfaces. Is there other >> way to do this? > > netstat -i -f link > > Maybe? >No, this lists all interfaces: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll fxp0 1500 <Link#1> 00:90:27:7c:b8:68 8088136 0 6987967 0 0 plip0 1500 <Link#2> 0 0 0 0 0 lo0 16384 <Link#3> 138029 0 138029 0 0 pfsyn 2020 <Link#4> 0 0 0 0 0 pflog 33208 <Link#5> 0 0 0 0 0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHb3rWxJBWvpalMpkRAtlNAJ4yXhYcLlF7MyHg0XzKTtjWSqpBcgCfRMUp fOwhWgxe+Uv+y25Rfb1DWD0=zopa -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Krassimir, Krassimir Slavchev wrote:> Hi, > > 'ifconfig -l [address_family]' does not work correct on RELENG_7If you suspect a regression in functionality, and you can reproduce it the best thing one can do is submit a problem report with send-pr http://www.freebsd.org/send-pr.html Having them reported on the list may seem nice but stands less chance the item is picked up. Regards, Ruben -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHb3/5Z88+mcQxRw0RCNdPAJ4rqsiLuVwr9QP2PAS3ALdqjNGy1QCfRu9q 65+69EzO6S2j4qyjApq7TBI=ygDu -----END PGP SIGNATURE-----
Hi, On 24/12/2007, Krassimir Slavchev <krassi@bulinfo.net> 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; }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 http://www.freebsd.org/cgi/query-pr.cgi?pr=118987 Ruben van Staveren wrote:> Hi Krassimir, > > Krassimir Slavchev wrote: >> Hi, > >> 'ifconfig -l [address_family]' does not work correct on RELENG_7 > > If you suspect a regression in functionality, and you can reproduce it > the best thing one can do is submit a problem report with send-pr > > http://www.freebsd.org/send-pr.html > > Having them reported on the list may seem nice but stands less chance > the item is picked up. > > Regards, > Ruben > >-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHe2fuxJBWvpalMpkRAkPYAJ4qnL75q97AeQrC/R7KN0OvxtaobACgg24i 1sWVgqtzJ8DMAyYsxWV2Meg=PpCm -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, This patch fixes the problem! # ifconfig -l bce0 bce1 lo0 # ifconfig -l ether bce0 bce1 Thanks pluknet wrote:> Hi, > > On 24/12/2007, Krassimir Slavchev <krassi@bulinfo.net> 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; > } >-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHe7nGxJBWvpalMpkRAn7MAKCsjDSf+uDsMQaH1Wxh09TsP43k5wCcDksO XPkb7nNG2p0wo6XvlvZlb+E=p0rg -----END PGP SIGNATURE-----