Solved

About RAW Socket

Posted on 1998-11-01
1
383 Views
Last Modified: 2013-11-20
When I used WinSock 2 to write some program, I get a problem, that is:
 
setsockopt(sockRaw, IPPROTO_IP, IP_HDRINCL, (char *)&nOptVal, sizeof(nOptVal);
 
I get a error code 10042, that means: no support now.
 
Is current socket 2 can not support this type RAW_SOCK call? If it is true, can you give me a method about how to send all IP packet(include ip header)?
 
Thanks
 
Yuanye
0
Comment
Question by:yuanye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
vinniew earned 100 total points
ID: 1324122
There is some free code in c/c++ that will let you get access to the networking hardware at www.canberra.edu.  It's a driver, though.  I've never seen anyone implement the RAW_SOCK.  What are you trying to do?  I may have a work-around.

Vinnie
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question