Hi,
Our company is developing an intermediate filter driver implementing
Mobile IP. There is one virtual adapter (called "Home adapter") in
the system that serves as Mobile IP tunnel entry point and all packets
sent to it are encapsulated into MobileIP tunnel and sent using filter
driver to one of physical adapters. All packets that are sent to
physical adapters from windows are blocked by filter.

In order to get it work correctly windows tcpip must route all packets
to Home adapter. Its not hard to do it if there are only
connection-less adapters, but when there is dialup connection dialed
we have a problem. No matter how the connection has "use default
gateway" flag set - tcpip always adds a routing rule for this
connection the only difference is whether its mask is 0.0.0.0 or
255.0.0.0.

We need to delete this rule every time the connection is dialed. It
works but not everywhere. It seems that Windows XP SP1 machines have
problem with the deletion of such rules. "route delete" command that
works on SP2 does not work on SP1. Is it some bug in tcpip or route
table ?

Or is there any (other) way how to get rid of that nasty rule ?

thanks in forward

--
Martin Stangel, Technology Research and Consulting
Whitestein Technologies AG
Pestalozzistrasse 24, 8032 Zurich, Switzerland
URL: www.whitestein.com, Phone: + 41 44 256 5016, Fax: + 41 44 256
5001

Re: Route table for dialups by Maxim

Maxim
Thu Jan 13 15:27:30 CST 2005

First of all, if the person having the Internet connectivity via your "home
adapter" wants to use dialup, he/she can have some serious considerations to do
this, and thus allowing him/her to do this is just smart and polite.

Second, there is a metric field in route table entry, make the metric for
your "home adapter" the shortest.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

<martin.stangel@gmail.com> wrote in message
news:ce75eb7e.0501130833.31943c84@posting.google.com...
> Hi,
> Our company is developing an intermediate filter driver implementing
> Mobile IP. There is one virtual adapter (called "Home adapter") in
> the system that serves as Mobile IP tunnel entry point and all packets
> sent to it are encapsulated into MobileIP tunnel and sent using filter
> driver to one of physical adapters. All packets that are sent to
> physical adapters from windows are blocked by filter.
>
> In order to get it work correctly windows tcpip must route all packets
> to Home adapter. Its not hard to do it if there are only
> connection-less adapters, but when there is dialup connection dialed
> we have a problem. No matter how the connection has "use default
> gateway" flag set - tcpip always adds a routing rule for this
> connection the only difference is whether its mask is 0.0.0.0 or
> 255.0.0.0.
>
> We need to delete this rule every time the connection is dialed. It
> works but not everywhere. It seems that Windows XP SP1 machines have
> problem with the deletion of such rules. "route delete" command that
> works on SP2 does not work on SP1. Is it some bug in tcpip or route
> table ?
>
> Or is there any (other) way how to get rid of that nasty rule ?
>
> thanks in forward
>
> --
> Martin Stangel, Technology Research and Consulting
> Whitestein Technologies AG
> Pestalozzistrasse 24, 8032 Zurich, Switzerland
> URL: www.whitestein.com, Phone: + 41 44 256 5016, Fax: + 41 44 256
> 5001