<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello. I am trying to open pipe and send data to pipe (for later import in wireshark via wireshark -k -i \\.\pipe\DLC_s ).<br>I do it this way:<br>hPipe = CreateNamedPipe( \\.\pipe\DLC_s, PIPE_ACCESS_OUTBOUND, PIPE_NOWAIT, PIPE_UNLIMITED_INSTANCES, 256, 256, 1000, NULL);<br><br>ConnectNamedPipe(hPipe, NULL);<br><br>dumpfile = (unsigned char*) pcap_dump_open(adhandle, argv[5]);<br><br> if(dumpfile==NULL)<br> {<br> fprintf(stderr,"\nError opening output file\n");<br> return -1;<br>
}<br> printf("Dump file opened!\n");<br><br>The problem is that I cannot open file with pcap_dump_open. If I try opening with FILE *output it does without errors. This function pcap_dump_open returns NULL pointer.<br>How should I do that?<br>The problem is that I try to sniff some interface which wireshark cannot recognise (on COM port).<br>Thanks for help!<br>Vito.<br></div></div><br>
<hr size=1>Be a better sports nut! Let your teams follow you
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a></body></html>