First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 217775
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Juergen Rose <rose@rz.uni-potsdam.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217775 depends on: Show dependency tree
Bug 217775 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-15 10:06 0000
'ifconfig -V' shows in both cases:
 net-tools 1.60
ifconfig 1.42 (2001-04-13)

But 'ifconfig' of net-tools-1.60-r13 gives:
root@thinkpad:/root(1)# ifconfig 
br0       Link encap:Ethernet  HWaddr 00:0D:60:D0:75:8E  
          inet addr:192.168.1.24  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20d:60ff:fed0:758e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1192 errors:0 dropped:0 overruns:0 frame:0
          TX packets:327 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:276544 (270.0 Kb)  TX bytes:31192 (30.4 Kb)

eth0      Link encap:Ethernet  HWaddr 00:0D:60:D0:75:8E  
          inet6 addr: fe80::20d:60ff:fed0:758e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1189 errors:0 dropped:0 overruns:0 frame:0
          TX packets:334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:297772 (290.7 Kb)  TX bytes:33650 (32.8 Kb)
          Base address:0x8000 Memory:c0240000-c0260000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3032 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3032 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:256551 (250.5 Kb)  TX bytes:256551 (250.5 Kb)

vbox0     Link encap:Ethernet  HWaddr 00:FF:81:C5:B5:F6  
          inet6 addr: fe80::2ff:81ff:fec5:b5f6/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:878 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
while ifconfig of net-tools-1.60_p20071202044231 gives:
root@condor:/root(1)# ifconfig 
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.1.76  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::21a:92ff:fee0:2446  prefixlen 64  scopeid 0x20<link>
        ether 00:1a:92:e0:24:46  txqueuelen 0  (Ethernet)
        RX packets 1615  bytes 308699 (301.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1043  bytes 73111 (71.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500  metric 1
        inet6 fe80::21a:92ff:fee0:2446  prefixlen 64  scopeid 0x20<link>
        ether 00:1a:92:e0:24:46  txqueuelen 1000  (Ethernet)
        RX packets 1615  bytes 308939 (301.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1057  bytes 73915 (72.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 4112  bytes 344740 (336.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4112  bytes 344740 (336.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vbox0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500  metric 1
        inet6 fe80::2ff:24ff:fe26:890a  prefixlen 64  scopeid 0x20<link>
        ether 00:ff:24:26:89:0a  txqueuelen 100  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 842 overruns 0  carrier 0  collisions 0

Because I wrote a script which parse the output of ifconfig, I have now
trouble.
I would be already satisfied, if 'ifconfig -V' would produce different output
for both cases.

Regards
  Juergem



Reproducible: Always

------- Comment #1 From Stefan Briesenick 2008-04-15 19:37:33 0000 -------
well, net-misc/openswan-2.4.11 is also broken now:

ipsec_setup: Starting Openswan IPsec U2.4.11/K2.6.22-gentoo-r10...
ipsec_setup: unable to determine address of `ppp0'

great stuff! :-/

------- Comment #2 From Stefan Briesenick 2008-04-15 20:05:33 0000 -------
btw: you can try sys-apps/iproute2

~# ip addr show [<interface>]

this output should be more stable ;-)

on the other hand, you could check the output of "LC_ALL=C ifconfig <int>" if
it includes "inet addr: .* Mask" (old style) or "inet .* netmask" (new style).

you could even use a single 'sed' for it.

example:
LC_ALL="C" ifconfig eth1 | \
sed -n -e "s/.* inet addr:\([^ ]\+\) .*Mask:.*/\1/p" \
       -e "s/.* inet \([^ ]\+\) .*netmask .*/\1/p"

should extract the IP, either old or new style.

------- Comment #3 From SpanKY 2008-04-16 03:40:07 0000 -------
*** Bug 217824 has been marked as a duplicate of this bug. ***

------- Comment #4 From Grégoire Favre 2008-04-16 05:11:56 0000 -------
Could you explain me why Bug 217824 is the same as this one ?

------- Comment #5 From Jeroen Roovers 2008-04-17 12:51:14 0000 -------
*** Bug 218073 has been marked as a duplicate of this bug. ***

------- Comment #6 From SpanKY 2008-04-19 07:10:16 0000 -------
ive reverted the ifconfig output changes until openrc can be updated

------- Comment #7 From SpanKY 2008-04-19 07:25:48 0000 -------
openrc should be fixed now:
http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commitdiff;h=b35430c04fafb638e5bfcdabbb213b18c0374938

------- Comment #8 From SpanKY 2008-04-19 07:31:31 0000 -------
there's a patch in the upstream openswan tracker to make it use iproute instead
of ifconfig/netstat:
http://bugs.xelerance.com/view.php?id=292

------- Comment #9 From SpanKY 2008-04-19 20:35:48 0000 -------
*** Bug 217999 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug