Search:
Type: Posts; User: notverybright
Search:
Search took 0.05 seconds; generated 22 minute(s) ago.
-
April 13th, 2024, 04:35 AM
After writing a console based app that uses Npcap libs to process packets, I've started on a Windows desktop app using VS 2022 C++ Win32 API which, at the moment, just displays packet source and...
-
March 8th, 2024, 04:16 AM
Hi Victor, Sorry, was there an imagein your reply ? Clicking the image to open it gives a 404 error
-
March 4th, 2024, 12:23 PM
Hi,
I'm trying to get my own images in Toolbar buttons but the buttons just have the text. I added the images as resources in the project. Any idea what I am missing? Here is the function (IDB_PNG1...
-
January 5th, 2024, 03:38 PM
shortTTL = ntohs(*((u_short*)ptrCurrent_Field));
...worked and it looks neater than the workaround I used. Thanks a lot to all who replied. It gives me a pointer (pun intended) for something to...
-
January 3rd, 2024, 12:18 PM
Thanks 2kaud. I tried that, but unfortunately I didn't get the right result. *ptrCurrent_Field points to a byte with value 0x0f, the next byte is d3, but after the command "shortTTL =...
-
January 3rd, 2024, 01:27 AM
ptrCurrent_Field is type u_char* I was using that as a general pointer as a reference to the next field in the packet to decode and casting it to be a pointer to a short int. I got it from a forum...
-
January 2nd, 2024, 07:36 AM
I allocated memory to a byte array and copied the packet data to the array which worked no problem and referenced the byte array instead when decoding the packet, but the same error occurred.
I've...
-
January 1st, 2024, 06:47 AM
Thanks for the reply salem_c. I'm teaching myself C++ using Visual Studio in Windows and looking at your sample code, do I need to allocate memory for the captured packet? The sample Npcap code...
-
December 27th, 2023, 05:44 AM
UPDATE: I commented out the line "pcap_dump(dumpfile, header, pkt_data);" which left the lines to open the file "dumpfile = pcap_dump_open(adhandle, argv[2]);" and close the file...
-
December 27th, 2023, 05:37 AM
Hi,
I'm writing a command line utility to process a particular type of packet using a filter. The utility has worked every time, no problem at all but when I added code to save the packet to a .pcap...
-
Sorry, my mistake, I did use "#include" rather than just "include".
@2kaud - you were right, I had my code in a file with a .c extension. I changed it to a .cpp and it works now. I was using...
-
Hi,
I'm teaching myself C++ using MS Visual Studio Community 2022, so I'm a newbie. I've written some code and I've decided to write the output of the application to text file, so I added these...
|
Click Here to Expand Forum to Full Width
|