diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2015-12-31 06:18:46 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2015-12-31 06:18:46 +0000 |
commit | 6ce7c72d01782000ce3236fa25ace2cdc7ad4a79 (patch) | |
tree | 51080604bb0552caf32d7c6fd721337f577127f5 /net/hping/files/extra-patch-sendip.c | |
parent | - Update to 5.9 (diff) |
Mark this unbroken on FreeBSD < 1100030.
Pointed out by: mat
Notes
Notes:
svn path=/head/; revision=404909
Diffstat (limited to 'net/hping/files/extra-patch-sendip.c')
-rw-r--r-- | net/hping/files/extra-patch-sendip.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/hping/files/extra-patch-sendip.c b/net/hping/files/extra-patch-sendip.c new file mode 100644 index 000000000000..872861983e5a --- /dev/null +++ b/net/hping/files/extra-patch-sendip.c @@ -0,0 +1,33 @@ +--- sendip.c.orig 2003-08-01 21:28:07.000000000 +0800 ++++ sendip.c 2015-12-22 23:16:39.296072000 +0800 +@@ -48,12 +48,12 @@ + ip->ihl = (IPHDR_SIZE + optlen + 3) >> 2; + ip->tos = ip_tos; + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD || defined OSTYPE_BSDI + /* NetBSD */ + ip->tot_len = packetsize; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->tot_len = htons(packetsize); + #endif +@@ -73,13 +73,13 @@ + htons((unsigned short) src_id); + } + +-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI +-/* FreeBSD */ ++#if defined OSTYPE_NETBSD | defined OSTYPE_BSDI + /* NetBSD */ + ip->frag_off |= more_fragments; + ip->frag_off |= fragoff >> 3; + #else + /* Linux */ ++/* FreeBSD */ + /* OpenBSD */ + ip->frag_off |= htons(more_fragments); + ip->frag_off |= htons(fragoff >> 3); /* shift three flags bit */ |