PC Review


Reply
Thread Tools Rate Thread

Changing the route/routing table

 
 
cyberco
Guest
Posts: n/a
 
      9th Nov 2006
I have a HTC TyTN running Windows Mobile 5 PPC with CF2.0.

Is it possible to change the route (or 'routing') table? I would like
to add/remove routes to the table (preferably using C#).

 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      9th Nov 2006
What are you trying to accomplish (as opposed to how you want to do it)?

GetIpForwardTable()
CreateIpForwardEntry()
etc.
would be the API calls for doing this sort of thing. Obviously, you'll have
to P/Invoke them from C#.

Paul T.

"cyberco" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a HTC TyTN running Windows Mobile 5 PPC with CF2.0.
>
> Is it possible to change the route (or 'routing') table? I would like
> to add/remove routes to the table (preferably using C#).
>



 
Reply With Quote
 
cyberco
Guest
Posts: n/a
 
      9th Nov 2006
I want to route IP traffic arriving on one interface to another
interface.

CreateIpForwardEntry() exists in the Iphlpapi, but I can't find any
online proof that it will work on Windows Mobile. Do you know whether
it works?

Paul G. Tobey [eMVP] wrote:
> What are you trying to accomplish (as opposed to how you want to do it)?
>
> GetIpForwardTable()
> CreateIpForwardEntry()
> etc.
> would be the API calls for doing this sort of thing. Obviously, you'll have
> to P/Invoke them from C#.
>
> Paul T.


 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      9th Nov 2006
I don't program much for Windows Mobile; I have a device, but that's about
it. I'd be surprised if changing the routing table didn't work, though.

However, the routing table will not do what you're trying to do. You can't
make a Windows Mobile device, or any other device, into a router, by adding
routing table entries. You actually have to have packet routing support in
the device and I'm fairly confident that WM devices won't have that.

Paul T.

"cyberco" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to route IP traffic arriving on one interface to another
> interface.
>
> CreateIpForwardEntry() exists in the Iphlpapi, but I can't find any
> online proof that it will work on Windows Mobile. Do you know whether
> it works?
>
> Paul G. Tobey [eMVP] wrote:
>> What are you trying to accomplish (as opposed to how you want to do it)?
>>
>> GetIpForwardTable()
>> CreateIpForwardEntry()
>> etc.
>> would be the API calls for doing this sort of thing. Obviously, you'll
>> have
>> to P/Invoke them from C#.
>>
>> Paul T.

>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      9th Nov 2006
However, reading the help some more, I might be wrong about that. Take a
look at the page titled "Routing for IPv4". Have fun!

Paul T.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:(E-Mail Removed)...
>I don't program much for Windows Mobile; I have a device, but that's about
>it. I'd be surprised if changing the routing table didn't work, though.
>
> However, the routing table will not do what you're trying to do. You
> can't make a Windows Mobile device, or any other device, into a router, by
> adding routing table entries. You actually have to have packet routing
> support in the device and I'm fairly confident that WM devices won't have
> that.
>
> Paul T.
>
> "cyberco" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I want to route IP traffic arriving on one interface to another
>> interface.
>>
>> CreateIpForwardEntry() exists in the Iphlpapi, but I can't find any
>> online proof that it will work on Windows Mobile. Do you know whether
>> it works?
>>
>> Paul G. Tobey [eMVP] wrote:
>>> What are you trying to accomplish (as opposed to how you want to do it)?
>>>
>>> GetIpForwardTable()
>>> CreateIpForwardEntry()
>>> etc.
>>> would be the API calls for doing this sort of thing. Obviously, you'll
>>> have
>>> to P/Invoke them from C#.
>>>
>>> Paul T.

>>

>
>



 
Reply With Quote
 
cyberco
Guest
Posts: n/a
 
      10th Nov 2006
Thanks, I'd love to read the page, but where can it be found?

Paul G. Tobey [eMVP] wrote:
> However, reading the help some more, I might be wrong about that. Take a
> look at the page titled "Routing for IPv4". Have fun!
>
> Paul T.
> >


 
Reply With Quote
 
Guest
Posts: n/a
 
      10th Nov 2006
Google is an amazing tool...

http://msdn.microsoft.com/library/de...ingforIPv4.asp


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"cyberco" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks, I'd love to read the page, but where can it be found?
>
> Paul G. Tobey [eMVP] wrote:
>> However, reading the help some more, I might be wrong about that. Take a
>> look at the page titled "Routing for IPv4". Have fun!
>>
>> Paul T.
>> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I allow non-admin user add a route to routing table? =?Utf-8?B?amluc2h1YW5n?= Windows XP Networking 0 26th Jul 2007 05:52 PM
Changing Route Table from C# cyberco Microsoft Dot NET Framework 2 27th Nov 2006 10:58 PM
Changing Route Table cyberco Microsoft C# .NET 3 27th Nov 2006 10:57 PM
Route table changing application Jothi Windows Networking 0 13th May 2005 03:11 PM
How to delete inactive DD route from routing table Anton Panyushkin Microsoft Windows 2000 RAS Routing 1 24th Nov 2004 12:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:16 AM.