[Mageia-dev] After last update net applet shows wrong status

Michael Altizer xiche at verizon.net
Sat Jul 16 22:05:49 CEST 2011


On 07/16/2011 03:53 PM, D.Morgan wrote:
> On Sat, Jul 16, 2011 at 3:03 PM, Oliver Burger
> <oliver.bgr at googlemail.com>  wrote:
>> I just updated my system and am now running kernel-3.0...
>>
>> Now I notice, the net-applet shows, I am offline while I am definitely
>> not. Trying to connect using draknet-center I get an error message.
>> can anyone confirm?
>>
>> If yes, I'd post a bug report (against what?), Which outputs,
>> information would be needed?
>>
>> Oliver
>>
> see :
>
>
> https://bugs.mageia.org/show_bug.cgi?id=1266
>
Yep, the workaround in the bug report fixes the issue.

--- tools.pm    2011-07-16 16:03:19.729969872 -0400
+++ /usr/lib/libDrakX/network/tools.pm  2011-07-16 16:00:55.702129467 -0400
@@ -263,7 +263,7 @@

  sub get_routes() {
      my %routes;
-    foreach (cat_("/proc/net/route"))  {
+    foreach (sort {$b cmp $a} cat_("/proc/net/route"))  {
         if 
(/^(\S+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) 
{
             if (defined $3) { $routes{$1}{gateway} = hex($3) ? 
host_hex_to_dotted($3) : $routes{$1}{network} }
             if (defined $2) { $routes{$1}{network} = 
host_hex_to_dotted($2) }


More information about the Mageia-dev mailing list