ports/net/pchar/patches/patch-PctestIpv4Raw_cc

19 lines
555 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- PctestIpv4Raw.cc.orig Fri May 11 18:53:22 2001
+++ PctestIpv4Raw.cc Thu Aug 25 10:15:20 2005
@@ -161,13 +161,13 @@ int PctestIpv4Raw::Test(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 = tr.size;
#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;