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

(-)sendip.c.org (-2 / +4 lines)
Lines 48-56 Link Here
48
	ip->ihl		= (IPHDR_SIZE + optlen + 3) >> 2;
48
	ip->ihl		= (IPHDR_SIZE + optlen + 3) >> 2;
49
	ip->tos		= ip_tos;
49
	ip->tos		= ip_tos;
50
50
51
#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
51
#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
52
/* FreeBSD */
52
/* FreeBSD */
53
/* NetBSD */
53
/* NetBSD */
54
/* Darwin */
54
	ip->tot_len	= packetsize;
55
	ip->tot_len	= packetsize;
55
#else
56
#else
56
/* Linux */
57
/* Linux */
Lines 73-81 Link Here
73
			htons((unsigned short) src_id);
74
			htons((unsigned short) src_id);
74
	}
75
	}
75
76
76
#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
77
#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
77
/* FreeBSD */
78
/* FreeBSD */
78
/* NetBSD */
79
/* NetBSD */
80
/* Darwin */
79
	ip->frag_off	|= more_fragments;
81
	ip->frag_off	|= more_fragments;
80
	ip->frag_off	|= fragoff >> 3;
82
	ip->frag_off	|= fragoff >> 3;
81
#else
83
#else

Return to bug 313855