Accessing the routing table.

Hi,

I am currently developing a Windows 2000 (Professional) NDIS driver and wish
to be able to access information in the Routing Table (as returned by
netstat -r). Does anyone know how this can be done programmatically ?

Thanks in advance,

Gavin

This can be done using the APIs exported by the IP Helper library,
IPHLPAPI.DLL. Specifically, se GetIpForwardTable(…). The header file is
IPHLPAPI.H. Note that this isn’t available on all platforms.

Ed Lau

MidCore Software, Inc.
www.midcore.com

----- Original Message -----
From: “Gavin Button”
To: “NT Developers Interest List”
Sent: Wednesday, August 16, 2000 11:55 AM
Subject: [ntdev] Accessing the routing table.

> Hi,
>
> I am currently developing a Windows 2000 (Professional) NDIS driver and
wish
> to be able to access information in the Routing Table (as returned by
> netstat -r). Does anyone know how this can be done programmatically ?
>
> Thanks in advance,
>
> Gavin
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@midcore.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>

Hi,

Thanks for the advice, but it doesnt seem possible to include platform SDK
IP Helper Library calls within an Windows 2000 NDIS driver (unless you or
anyone else knows different??).

Has anyone got any more suggestions for accessing the routing table within a
Windows 2000 NDIS driver?

Thanks,

Gavin Button

Subject:
From: “Ed Lau”
Date: Wed, 16 Aug 2000 14:29:02 -0400
X-Message-Number: 11

This can be done using the APIs exported by the IP Helper library,
IPHLPAPI.DLL. Specifically, se GetIpForwardTable(…). The header file is
IPHLPAPI.H. Note that this isn’t available on all platforms.

Ed Lau

MidCore Software, Inc.
www.midcore.com

----- Original Message -----
From: “Gavin Button”
To: “NT Developers Interest List”
Sent: Wednesday, August 16, 2000 11:55 AM
Subject: [ntdev] Accessing the routing table.

> Hi,
>
> I am currently developing a Windows 2000 (Professional) NDIS driver and
wish
> to be able to access information in the Routing Table (as returned by
> netstat -r). Does anyone know how this can be done programmatically ?
>
> Thanks in advance,
>
> Gavin
>

Numega has a new product which is in Beta called DriverNetworks. They have
implemented complete route table manipulation API/classes in the Kernel
level. The APIs are accessable through NDIS.

I myself started using DriverNetworks. I strongly suggest looking into it.
It is an excellent product. It is in Beta 2. Check Numega site.