Peter Memishian wrote:
>  > I have some doubts in usage of kstat framework (kstat_open;
>  > kstat_lookup) regarding SCTP statistics:
>  > 
>  > ïƒ  Do we have option to reset the kernel statistics in our program?


No.  If you think about it, it is not a good idea.  The statistics
can be read by many apps.  So resetting the statistics will affect
all those apps.


>  > ïƒ  When I run the command "kstat sctp 10" on my Solaris system, it
>  > provides me the statistics in every 10 seconds. So can I have the same
>  > option when using the kstat framework in my implementation? If yes, can
>  > you please tell me the workaround for that?


No.  The above is done by kstat script (/bin/kstat is a perl script)
to get updates from the kernel for every interval.


> I know this wasn't your question, but at least the "sctpstat" kstats are
> private (debugging) kstats that are unstable and subject to being changed
> incompatibly at any time, so I hope you're not trying to consume those.
> I'm not sure what the commitment level of the other SCTP kstats are (I
> don't see a manpage for them), but Kacheong (CC'd) will know.


The mib2 class global stats is from RFC 3873.  It is committed.


-- 

                                                K. Poon.
                                                [EMAIL PROTECTED]

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to