Detecting memory leaks using _CrtDumpMemoryLeaks556 (4/4/2012 2:28:20 AM) comp.lang.c Hi, This is my first time using the CRT library for detecting memory leaks, and I'm using Visual C++ 2003. As mentioned in this website (http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx), I included the s... lancer6238
Inserting IPv4 header checksum into dummy IP header6230 (12/1/2010 10:09:28 AM) comp.lang.c Hi,
I'm trying to create a packet given only the payload content.
Therefore, I will have to create dummy IPv4 and UDP headers. I'm
having some problem inserting the IPv4 checksum value into the dummy
IP h... lancer6238
Using ethtool to check for dropped packets524 (5/19/2010 6:28:02 AM) comp.os.linux.networking Hi all, I'm trying to use ethtool to check for dropped packets by my Myricom card. From ethtool -S, I see quite a few statistics that appear to be related to dropped packets, i.e. dropped_link_overflow droppe... lancer6238
What happens after a packet is captured?425 (3/30/2010 3:12:15 AM) comp.os.linux.networking Hi all, I've been reading about what happens after packets are captured by NICs, and the more I read, the more I'm confused. Firstly, I've read that traditionally, after a packet is captured by the NIC, it ge... lancer6238
Inner workings of libpcap119 (3/26/2010 8:57:01 AM) comp.os.linux.networking Hi all, I'm interested in finding out more about the inner workings of libpcap, i.e. how it interacts with the network device etc to capture packets. Can anyone recommend some online resources, as I can't seem... lancer6238
Error with threads opening files534 (2/28/2010 3:20:30 AM) comp.lang.c Hi all, I'm using C and pthread on a Linux machine, and I'm having trouble parallelizing a program. I'm basically trying to take in a folder of data files, divide them into groups, each group handled by a thr... lancer6238
Mask multiple bytes at once7202 (1/18/2010 3:55:05 AM) comp.lang.c Hi,
I would like to know if it is possible to mask multiple bytes at once.
For example, if I have a char array of 5 elements, and I have a mask
0xFF01F7 that I would like to apply on the first 3 elements o... lancer6238
File I/O - change in file size2207 (12/28/2009 9:05:59 AM) comp.os.ms-windows.programmer.win32 Hi,
I'm not sure if this is the right place to ask, but I noticed
something strange with the files written by my program. I'm using
Windows Vista, and have written a program using Visual Studio .NET
2003.... Rayne
link executable, dll, obj2188 (12/10/2009 7:09:17 AM) comp.os.ms-windows.programmer.win32 Hi all,
I'm new to programming in Windows, and the terms dll, obj etc are
pretty new to me. I'm using Visual Studio .NET 2003.
I'm trying to use Winhoard, and the instructions say
"To use the Winhoard... Rayne
inet_ntop in windows3697 (12/8/2009 3:57:46 AM) comp.os.ms-windows.programmer.win32 Hi all,
I'm trying to implement the inet_ntop function in Windows, and I found
the code from http://www.mail-archive.com/us...@ipv6.org/msg02107.html
I'm using Visual Studio .NET 2003, and according to t... Rayne
Detecting memory leaks using _CrtDumpMemoryLeaks556 (4/4/2012 2:28:20 AM) comp.lang.c Hi, This is my first time using the CRT library for detecting memory leaks, and I'm using Visual C++ 2003. As mentioned in this website (http://msdn.microsoft.com/en-us/library/x98tx3cf.aspx), I included the s... lancer6238682(96)
Using ethtool to check for dropped packets524 (5/19/2010 6:28:02 AM) comp.os.linux.networking Hi all, I'm trying to use ethtool to check for dropped packets by my Myricom card. From ethtool -S, I see quite a few statistics that appear to be related to dropped packets, i.e. dropped_link_overflow droppe... lancer6238682(96)
Hexadecimal values529 (11/16/2009 2:07:15 AM) comp.lang.c Hi all, I have a file that I'm trying to read into memory. I want to store the hexadecimal values of the file content into a buffer. Say the hexadecimal value is 12 00 00 27 09 10, I want to read the 3rd and ... lancer6238682(96)
Printing a 64-bit integer2846 (9/7/2009 2:04:08 AM) comp.lang.c Hi all, I'm using gcc version 4.1.2 on a RedHat Enterprise Linux 5 machine. I'm trying to print out a 64-bit integer with the value 6000000000 using the g++ compiler, and realized that using the format string ... lancer6238682(96)
Segmentation fault when using strtok533 (8/4/2009 7:13:21 AM) comp.lang.c Hi all, I'm trying to write a program that will read in a text file and break each line into 2 parts. The file is in the following format: 123.123.123.1,12.12.12.1 23.23.23.23,34.34.34.34 .... Each line con... lancer6238682(96)
Pointer arithmetic #41031 (6/11/2009 8:00:29 AM) comp.lang.c Hi, I have a question on pointer arithmetic. Say I have the following: uint8_t ext = 1; struct ex *temp; // sizeof(ex) = 40 bytes If I were to do temp += (ext + 2) * 4; Would I move the pointer "temp" 12 ... lancer6238682(96)
calloc vs malloc2032 (6/8/2009 8:10:54 AM) comp.lang.c Hi, I'm curious to know if there are any major differences between using calloc and malloc. I understand that calloc initializes the variables that it has allocated memory for (although I remember coming acro... lancer6238682(96)
Segmentation Fault when using free()833 (6/4/2009 2:32:11 AM) comp.lang.c Hi, I keep getting segmentation fault when I try to free a particular array variable. "state" is defined as a 4-byte data type, and "NextState" is a global variable. The value of state_size is 116994. Here is... lancer6238682(96)
Connecting to the internal network1021 (1/14/2009 7:32:33 AM) comp.os.linux.networking Hi, I want to connect 2 RedHat Linux 4 servers to my internal network that I believe assigns IP addresses by DHCP. The 2 servers actually reside in an IBM bladecenter. The connection of the servers is from th... lancer6238682(96)
Cannot ping other servers1218 (1/12/2009 8:31:48 AM) comp.os.linux.networking Hi, I have an IBM Bladecenter HS21 with 3 blade servers. All 3 blade servers were initially installed with RedHat Linux 4. I then installed ixMOS on one of the blade servers, and Mandriva Linux was also instal... lancer6238682(96)