Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 313855 | Differences between
and this patch

Collapse All | Expand All

(-)scan.c.org (-2 / +2 lines)
Lines 356-362 Link Here
356
static void receiver(struct portinfo *pi, int childpid)
356
static void receiver(struct portinfo *pi, int childpid)
357
{
357
{
358
	struct myiphdr ip;
358
	struct myiphdr ip;
359
	char packet[IP_MAX_SIZE+linkhdr_size];
359
	unsigned char packet[IP_MAX_SIZE+linkhdr_size];
360
360
361
	while(1)
361
	while(1)
362
	{
362
	{
Lines 456-462 Link Here
456
				continue;
456
				continue;
457
			/* time to copy headers in a safe place */
457
			/* time to copy headers in a safe place */
458
			p = packet+linkhdr_size+iphdrlen;
458
			p = packet+linkhdr_size+iphdrlen;
459
			memcpy(&icmp, p, sizeof(subtcp));
459
			memcpy(&icmp, p, sizeof(p));
460
			p += sizeof(icmp);
460
			p += sizeof(icmp);
461
			memcpy(&subip, p, sizeof(ip));
461
			memcpy(&subip, p, sizeof(ip));
462
			p += sizeof(ip);
462
			p += sizeof(ip);

Return to bug 313855