/*** Ping packet defines ***/
#define MAX_IP_PACKET 65536 /* (theoretical) max IP packet size */
-#define SIZE_IP_HDR 20
+#define SIZE_IP_HDR 40
#define SIZE_ICMP_HDR 8 /* from ip_icmp.h */
#define MAX_PING_DATA ( MAX_IP_PACKET - SIZE_IP_HDR - SIZE_ICMP_HDR )
icmp_unreach_str[icp->icmp_code], addr_ascii, h->host);
}
- if( inet_addr( h->host ) == INADDR_NONE )
- print_warning(" (%s)", addr_ascii);
-
print_warning("\n" );
num_othericmprcvd++;
break;
print_warning("ICMP %d from %s for ICMP Echo sent to %s",
icp->icmp_type, addr_ascii, h->host );
}
- if( inet_addr( h->host ) == INADDR_NONE )
- print_warning(" (%s)", addr_ascii );
print_warning( "\n" );
num_othericmprcvd++;
break;
icmp_unreach_str[icp->icmp6_code], addr_ascii, h->host);
}
- if( inet_addr( h->host ) == INADDR_NONE )
- print_warning(" (%s)", addr_ascii);
-
print_warning("\n" );
num_othericmprcvd++;
break;
print_warning("ICMP %d from %s for ICMP Echo sent to %s",
icp->icmp6_type, addr_ascii, h->host );
}
- if( inet_addr( h->host ) == INADDR_NONE )
- print_warning(" (%s)", addr_ascii );
print_warning( "\n" );
num_othericmprcvd++;
break;