$OpenBSD: patch-PctestIpv4_cc,v 1.2 2008/12/04 10:33:40 sthen Exp $ --- PctestIpv4.cc.orig Sat Feb 12 20:32:18 2005 +++ PctestIpv4.cc Thu Dec 4 09:46:15 2008 @@ -328,13 +328,13 @@ char *PctestIpv4::GenerateAdvancePacket(TestRecord &tr ipHeader.ip_v = 4; #endif /* __osf__ */ ipHeader.ip_tos = Tos; -#ifdef linux +#if defined(linux) || defined (__OpenBSD__) ipHeader.ip_len = htons(tr.size); #else ipHeader.ip_len = Mtu; #endif /* linux */ ipHeader.ip_id = htons(0); -#ifdef linux +#if defined(linux) || defined (__OpenBSD__) ipHeader.ip_off = htons(IP_DF); #else ipHeader.ip_off = IP_DF;