Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am familiarizing myself with a bunch of different RFCs, and at the moment have a decent DHCP server programmed... One of the things a good server does is send ARP broadcasts to potential addresses to make sure that no other machine uses them.

 

Long story short, VB.NET doesn't naitively support ARP and at the moment I'd rather not use the iphelper API. I've seen you can specify RAW for both the protocol type and the socket type, however, I've never been able to get it to send (or recieve) raw packets (meaning I want the entire header, etc. which is 'under' the IP layer, and thus, apparently inaccessible to .NET's sockets)

 

Is there any way at all to recieve (or send) my own raw packets in .NET?

Posted
Thanks for replying, but I realized I may not have been clear enough in my previous post. I was wondering if it were possible to receive data *below* the IP layer.
Posted

A socket is a TCP/IP mechanism and is defined with both an IP and port number. If you want to receive data below the network layer (where IP resides) then it is going to involve placing your NIC into "promiscuous mode" and monitoring the raw data on your network segment.

 

This might be of use.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...