--- embedaddon/hping2/sendip.c 2012/02/21 22:11:37 1.1.1.1 +++ embedaddon/hping2/sendip.c 2016/11/02 11:15:52 1.1.1.2 @@ -8,7 +8,7 @@ * $rev: 8$ */ -/* $Id: sendip.c,v 1.1.1.1 2012/02/21 22:11:37 misho Exp $ */ +/* $Id: sendip.c,v 1.1.1.2 2016/11/02 11:15:52 misho Exp $ */ #include #include @@ -48,12 +48,12 @@ void send_ip (char* src, char *dst, char *data, unsign 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 @@ void send_ip (char* src, char *dst, char *data, unsign 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 */