ICMP Stats for QNX neutrino

Hi all,

I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
retriving the ICMP stats. The net-snmp code uses /dev/kmem to read the
stats, but QNX does not have this device. How can I get the ICMP stats (or
for that matter UDP, TCP or IP too)?

Does anyone know about /dev/kmem in QNX?

Thanks in advance for any help.

-Farooque

Farooque Khan <farooquek@concretioindia.com> wrote:

Hi all,

I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
retriving the ICMP stats. The net-snmp code uses /dev/kmem to read the
stats, but QNX does not have this device. How can I get the ICMP stats (or
for that matter UDP, TCP or IP too)?

Does anyone know about /dev/kmem in QNX?

I’m afraid you can’t do that.

popen(“netstat -p icmp”, ); and parse the output is your best bet.

-xtang

Thanks for the reply. But how does netstat actually do it? There must be
some interface it is using. Isn’t it?

-Farooque

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:acg837$b8u$3@nntp.qnx.com

Farooque Khan <> farooquek@concretioindia.com> > wrote:
Hi all,

I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
retriving the ICMP stats. The net-snmp code uses /dev/kmem to read the
stats, but QNX does not have this device. How can I get the ICMP stats
(or
for that matter UDP, TCP or IP too)?

Does anyone know about /dev/kmem in QNX?

I’m afraid you can’t do that.

popen(“netstat -p icmp”, ); and parse the output is your best bet.

-xtang

Also , what about TCP, UDP and IP statistics?

Thanks in advance.

-Farooque

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:acg837$b8u$3@nntp.qnx.com

Farooque Khan <> farooquek@concretioindia.com> > wrote:
Hi all,

I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
retriving the ICMP stats. The net-snmp code uses /dev/kmem to read the
stats, but QNX does not have this device. How can I get the ICMP stats
(or
for that matter UDP, TCP or IP too)?

Does anyone know about /dev/kmem in QNX?

I’m afraid you can’t do that.

popen(“netstat -p icmp”, ); and parse the output is your best bet.

-xtang

There currently isn’t a published way to do this. I’ll point
you to the thread titled ‘pcblookup’ in qdn.public.ddk.network
for the best hints.

-seanb

Farooque Khan <farooquek@concretioindia.com> wrote:
: Also , what about TCP, UDP and IP statistics?

: Thanks in advance.

: -Farooque

: “Xiaodan Tang” <xtang@qnx.com> wrote in message
: news:acg837$b8u$3@nntp.qnx.com
:> Farooque Khan <farooquek@concretioindia.com> wrote:
:> > Hi all,
:>
:> > I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
:> > retriving the ICMP stats. The net-snmp code uses /dev/kmem to read the
:> > stats, but QNX does not have this device. How can I get the ICMP stats
: (or
:> > for that matter UDP, TCP or IP too)?
:>
:> > Does anyone know about /dev/kmem in QNX?
:>
:> I’m afraid you can’t do that.
:>
:> popen(“netstat -p icmp”, ); and parse the output is your best bet.
:>
:> -xtang
:>

Thanks a lot, I will check it out.

-Farooque

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:aciu2m$cqd$1@nntp.qnx.com

There currently isn’t a published way to do this. I’ll point
you to the thread titled ‘pcblookup’ in qdn.public.ddk.network
for the best hints.

-seanb

Farooque Khan <> farooquek@concretioindia.com> > wrote:
: Also , what about TCP, UDP and IP statistics?

: Thanks in advance.

: -Farooque

: “Xiaodan Tang” <> xtang@qnx.com> > wrote in message
: news:acg837$b8u$> 3@nntp.qnx.com> …
:> Farooque Khan <> farooquek@concretioindia.com> > wrote:
:> > Hi all,
:
:> > I am porting net-snmp 5.0.1 to QNX neutrino. We are having problems
:> > retriving the ICMP stats. The net-snmp code uses /dev/kmem to read
the
:> > stats, but QNX does not have this device. How can I get the ICMP
stats
: (or
:> > for that matter UDP, TCP or IP too)?
:
:> > Does anyone know about /dev/kmem in QNX?
:
:> I’m afraid you can’t do that.
:
:> popen(“netstat -p icmp”, ); and parse the output is your best bet.
:
:> -xtang
: