On Sat, Jul 16, 2011 at 17:05, Michael Altizer <[email protected]> wrote:
> On 07/16/2011 03:53 PM, D.Morgan wrote: > >> On Sat, Jul 16, 2011 at 3:03 PM, Oliver Burger >> <[email protected]> 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<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/tool**s.pm <http://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) > } > /proc/net/routes is a bit strange with 3.0+ kernels, I think that this patch is probably the best way to handle it at the moment. On a side note, Blino, is there a need to parse its content with a regexp? All values there are tab-separated, so perhaps this 'if' check could be much simplified with a split(), no? -- Eugeni Dodonov http://eugeni.dodonov.net/
