Solved

About RAW Socket

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
List out all word 7 288
tripleUp challenge 7 78
Use of condition with 'serial' in ansible 2 58
unix example issues 18 89
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

806 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