Andras:

>> +diff -Naur libgtop-2.26.0.old/sysdeps/solaris/netload.c
>> libgtop-2.26.0/sysdeps/solaris/netload.c
>> +--- libgtop-2.26.0.old/sysdeps/solaris/netload.c    2009-03-23
>> 20:02:34.031743396 +0200
>> ++++ libgtop-2.26.0/sysdeps/solaris/netload.c    2009-03-23
>> 20:00:36.697284713 +0200
>> +@@ -182,7 +182,7 @@
>> +     /*
>> +      *  chop off the trailing interface
>> +      */
>> +-    module = strdup( name );
>> ++    module = strdup( "link" );
>> +     ptr = module + strlen( module ) - 1;
>> +     while( (ptr>  module)&&  isdigit( (int) *ptr ) ) {
>> +         *ptr = '\0';
>> +
>>
>> Why is this one required?
>
> take a look at the code:
>       if( (ksp = kstat_lookup( kctl,
>                       module, 0, name )) == NULL ) {
>
> if you have let's say hme0:
> module = hme
> name = hme0
> which is correct, but let's say if you rename it...
> module = rename
> name = rename0
> which of course will fail...
> of course you can ask why it doesnt use the "output" from the
> netlist... dont ask me

I don't understand how this relates to changing name to "link" in
the netload.c file.  Could you explain?

Brian

Reply via email to