Solved

About RAW Socket

Posted on 1998-11-01
1
378 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
paragon account problem 9 96
Rewrite URL With Encoded Characters 6 64
repeatEnd java challenge 42 83
Doc'in system (example?) BA 7 78
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now