[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Sending raw IP packet in C#

Ola Andersson

11/4/2003 2:31:00 PM

Hi.

I have a problem, I try to make a router/gateway
application in c#. I have a computer with two network
cards and the main idea is to relay the received
information to the other network card.

I'll get all incoming packet as raw data (including the IP
header) and it seems to be ok, the question is how to
relay this information to the other network card?

I've tried the Socket.Send and Socket.SendTo methods but
these methods requires that I specify the destination IP
and destinaton port, but that information is in the
complete IP packet I try to send. Is there any possibility
to send the IP packet without the framework adds an extra
IP header in C#?

Is it possible to develop a router with only the .net
framework? Or do I need an additional COM or other modules?

Thanks
/Ola