1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

Fixed some stylistic mistakes in the previous commit.

This commit is contained in:
sean
2012-06-12 04:10:08 +00:00
parent 34c9ba9892
commit f8f3dd1921

View File

@@ -1161,11 +1161,11 @@ int send_packet(NpingTarget *target, int rawfd, u8 *pkt, size_t pktLen){
target->getTargetSockAddr(&dst, &dstlen);
assert(dst.ss_family == AF_INET);
if( o.issetMTU() == true )
res = send_frag_ip_packet(rawfd, NULL, (struct sockaddr_in *) &dst, pkt, pktLen, o.getMTU() ); //res should always be -1
res = send_frag_ip_packet(rawfd, NULL, (struct sockaddr_in *) &dst, pkt, pktLen, o.getMTU() );
else
res = send_ip_packet_sd(rawfd, (struct sockaddr_in *) &dst, pkt, pktLen);
/*send_ip_packet_sd calls Sendto which returns errors as -1 according to netutil.cc so lets catch that and return OP_FAILURE*/
if (res == -1) return OP_FAILURE;
/*send_ip_packet_sd calls Sendto which returns errors as -1 according to netutil.cc so lets catch that and return OP_FAILURE*/
if (res == -1) return OP_FAILURE;
}
}
return OP_SUCCESS;