Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating persistent routes in WinCE

827 views
Skip to first unread message

Curt Coleman

unread,
Oct 30, 2002, 7:28:26 PM10/30/02
to
Hello,

Is there a way to create a persistent route in WinCE? In
Win2k, etc., you can use the route -p command in the
command prompt, but that obviously doesn't exist in WinCE
(more specifically PocketPC).

I've been playing around with CreateIpForwardEntry and the
other iphlpapi functions, and can't seem to figure out how
to make routes permanent using those functions. After a
reset of either the WinCE device or the adapter associated
with the routes, they are all flushed. I've also tried
looking around in the registry, and can't even find where
non-persistent routes are stored.

In short: Is there such a thing as a persistent route in
WinCE? If so, how can I create one?

Any help would be appreciated.

Thanks,
Curt

Jeff Kelley [MS]

unread,
Oct 30, 2002, 9:50:35 PM10/30/02
to
CE doesn't support persistent routes.The routes that are created with
CreateIpForwardEntry are not stored in the registry, so when the device is
reset they are deleted. Similarly, routes get deleted when the adapter they
are associated with is removed.

To implement persistent routes that survive resets would require writing
them to the registry then adding a startup application that reads those
registry settings and calls CreateIpForwardEntry appropriately. To have
routes that survive adapter removal and insertion would require having a
route manager daemon running that maintains the desired route table, listens
for the comings and goings of adapters (there is an IP Helper notification
API useful here), and calls CreateIpForwardEntry when necessary.

I've written something similar to that except that it was to manage ARP
Proxies rather than routes.

--
Jeff Kelley
Windows CE Networking

This posting is provided "AS IS" with no warranties, and confers no rights.

"Curt Coleman" <Curtis....@viasat.com> wrote in message
news:2d8601c28074$6d90c100$95e62ecf@tkmsftngxs02...

Curt Coleman

unread,
Oct 31, 2002, 12:35:44 PM10/31/02
to
I was afraid that was the case. Shouldn't be too hard to
implement, though.

Thanks,
Curt

>.
>

0 new messages