Solved

About RAW Socket

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 97
viewing source code from eclipse 13 110
VBA "SendKeys" Syntax for Multiple Keystrokes 7 118
firstChar challenge 13 122
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

808 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