From f8f3dd19216582f8bb0f2c25011c2cced46722d0 Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 12 Jun 2012 04:10:08 +0000 Subject: [PATCH] Fixed some stylistic mistakes in the previous commit. --- nping/utils_net.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nping/utils_net.cc b/nping/utils_net.cc index a86e85f39..3be6ae308 100644 --- a/nping/utils_net.cc +++ b/nping/utils_net.cc @@ -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;