Re: RAW Sockets and Posibilities

From: Scott (scottaf_at_yahoo.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 09:17:58 -0600

I've never worked with anything like you're describing, but here's a C#
article that may give you some ideas...

http://www.codeproject.com/csharp/SendRawPacket.asp

"KevJB" <beasley@bigpond.net.au> wrote in message
news:B2E0733D-F88F-495C-ABF4-2456916B5E81@microsoft.com...
> Hey All,
> I'm really strugling to come up with any solid info on VB.NET sockets
particuarly if they are operating in RAW mode. I'll try and keep this short
and simple as I am begining to loose hope that anyone out there understandes
the sockets well enough to be able to help me.
> 1. Using RAW sockets can I somehow capture all packets addressed to an IP
address without caring what port they are directed to? What about a
promiscuious routing mode where I can capture all packets (don't care if
they have to be directed to my computer in the first place or not, just want
to know), filter according to rules and retransmit any packets I might want
on another outgoing socket (maybe to a internet machine or something)?
> 2. If any of the above is yes, does anyone have any examples of dealing
with TCP and IP headers + Options and Data and the rest under VB.NET? Are
there any detailed books on the subject? Does anyone have time to discuss
the basics with me if there are no other forms of reference?
> 3. If No to all of 1, what other languages can anyone recommend that offer
the simple and well defined GUI building tools of VB and the power to handle
raw sockets like C++? I've looked at Visual C++ but the GUI tools don't
really live up to expectations. Am I looking for C# or should I dump the
Visual Studio package compleatly and look elsewhere for a programming
language of choice?
>
> Thanks Heaps to anyone who can offer any help at all on this question,
feel free to reply or e-mail me if you need clarification of what I am
asking about or what I would like to do exactly.
>
> Thanks for your time,
> Kevin-John Beasley



Relevant Pages

  • Re: Consistent performance issues at high bandwidths, UDP.
    ... all createing multiple sockets should do is use more non-paged memory ... The only difference is the number of sockets and how many packets ... and every 3.1 seconds a frame took 3.8 seconds to send. ... inconsistent frame rates caused by a periodic delay in the call ...
    (microsoft.public.win32.programmer.networks)
  • Re: Consistent performance issues at high bandwidths, UDP.
    ... The only difference is the number of sockets and how many packets I'm ... In that test each frame took 40ms to send, ... explain this massive delay, but it is at extremely regular intervals. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Http server implementation for Windows Media Server
    ... On that level that already extra raw data even not ... similar problem applies to me as would happen with raw sockets. ... I'm assuming you are using a raw TCP ... the packets aren't ACKed because ...
    (microsoft.public.win32.programmer.networks)
  • Re: Overhead, UDP: Many packets on 1 socket vs. one packet and many ?sockets.
    ... a gigabit LAN network using UDP. ... into "frames" and each device frame is a single UDP packet. ... information in the data packets. ... over each of those sockets. ...
    (comp.unix.programmer)
  • Re: [RFC][PATCH 0/9] Network receive deadlock prevention for NBD
    ... NFS over UDP - remote side will not stop sending just because receiving socket code drops data due to OOM, or IPsec or compression, which can ... those NFS packets that belong to the critical mount), ... can take up memory right at the time you don't have any extra ... onto data for non-critical sockets, ...
    (Linux-Kernel)