Click here to Skip to main content
16,015,097 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual serial port and TCP/IP Pin
Nikolaou6-Dec-04 0:08
Nikolaou6-Dec-04 0:08 
GeneralRe: Virtual serial port and TCP/IP Pin
Antti Keskinen6-Dec-04 6:14
Antti Keskinen6-Dec-04 6:14 
GeneralRe: Virtual serial port and TCP/IP Pin
Nikolaou6-Dec-04 23:37
Nikolaou6-Dec-04 23:37 
GeneralRe: Virtual serial port and TCP/IP Pin
Antti Keskinen8-Dec-04 8:03
Antti Keskinen8-Dec-04 8:03 
GeneralIP Address Converted to a Number Pin
jerry1211a11-Nov-04 4:30
jerry1211a11-Nov-04 4:30 
GeneralRe: IP Address Converted to a Number Pin
Antony M Kancidrowski11-Nov-04 7:07
Antony M Kancidrowski11-Nov-04 7:07 
GeneralRe: IP Address Converted to a Number Pin
geo_m11-Nov-04 19:39
geo_m11-Nov-04 19:39 
GeneralRaw Sockets on XP SP1 Pin
Anonymous11-Nov-04 3:21
Anonymous11-Nov-04 3:21 
I'm trying to get a raw packet sent out on XP SP1. Supposedly, I should be able to do this on SP2 also (I'm not trying to spoof the source) but I have SP1 installed.

I'm using the following code to create the socket:
sd = WSASocket(AF_INET, SOCK_RAW,IPPROTO_RAW, 0, 0, 0);<br />
    if (sd == INVALID_SOCKET) {<br />
        cerr << "Failed to create raw socket: " << WSAGetLastError() <<<br />
                endl;<br />
        return -1;<br />
    }


What happens is an ARP request is sent, then the packet is sent but the Ethernet header is generated by the OS. I shouldn't even see the ARP request if I'm truly using raw sockets. The exact same thing happens when I run this on Win98 so something's missing - I just don't know what.

Searches on google, ... turn up hundreds of pages of debate on the SP2 issue but nothing that I could find in terms of examples of how to use the XP raw sockets.

Any help would be greatly appreciated.

Thanks,
Dave
GeneralRe: Raw Sockets on XP SP1 Pin
Antti Keskinen11-Nov-04 7:20
Antti Keskinen11-Nov-04 7:20 
General&lt;b&gt;Help!! How to access Static control from other class&lt;/B&gt; Pin
VikramDelhi11-Nov-04 3:13
VikramDelhi11-Nov-04 3:13 
GeneralRe: &lt;b&gt;Help!! How to access Static control from other class&lt;/B&gt; Pin
GDavy11-Nov-04 3:29
GDavy11-Nov-04 3:29 
GeneralRe: &lt;b&gt;Help!! How to access Static control from other class&lt;/B&gt; Pin
VikramDelhi13-Nov-04 23:16
VikramDelhi13-Nov-04 23:16 
GeneralShell Question - Get Parent PIDL Pin
Marcus Spitzmiller11-Nov-04 3:12
Marcus Spitzmiller11-Nov-04 3:12 
GeneralRe: Shell Question - Get Parent PIDL Pin
Michael Dunn11-Nov-04 11:14
sitebuilderMichael Dunn11-Nov-04 11:14 
QuestionHow to draw Multiple-Documents in one view Pin
br0kera11-Nov-04 2:20
br0kera11-Nov-04 2:20 
AnswerRe: How to draw Multiple-Documents in one view Pin
bryce11-Nov-04 12:50
bryce11-Nov-04 12:50 
GeneralClosing Dialogs Pin
jj92111-Nov-04 1:23
jj92111-Nov-04 1:23 
GeneralRe: Closing Dialogs Pin
eli1502197911-Nov-04 2:15
eli1502197911-Nov-04 2:15 
GeneralRe: Closing Dialogs Pin
David Crow11-Nov-04 2:17
David Crow11-Nov-04 2:17 
GeneralAccess members from a dialog to the Viewframe Pin
Ibana11-Nov-04 0:50
Ibana11-Nov-04 0:50 
QuestionHow to pass paramter to GUI based Application Pin
Azghar Hussain11-Nov-04 0:11
professionalAzghar Hussain11-Nov-04 0:11 
AnswerRe: How to pass paramter to GUI based Application Pin
Kapoor Vikrant11-Nov-04 0:40
Kapoor Vikrant11-Nov-04 0:40 
AnswerRe: How to pass paramter to GUI based Application Pin
David Crow11-Nov-04 2:23
David Crow11-Nov-04 2:23 
GeneralHelp plz Pin
eli1502197910-Nov-04 23:53
eli1502197910-Nov-04 23:53 
Generalcrash in ExitProcess Pin
avivhu10-Nov-04 23:18
avivhu10-Nov-04 23:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.