mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 05:31:31 +00:00
Promote Nping to full version number. Fixes #2862
This commit is contained in:
@@ -339,8 +339,7 @@ $(NCATDIR)/ncat.h: nmap.h
|
|||||||
sed -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ > $@.tmp
|
sed -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ > $@.tmp
|
||||||
mv -f $@.tmp $@
|
mv -f $@.tmp $@
|
||||||
|
|
||||||
# Update the Nping version number. This is "0.NMAP_VERSION".
|
# Update the Nping version number.
|
||||||
# If the 0. prefix is removed it must also be removed from nmap.spec.in.
|
|
||||||
$(NPINGDIR)/nping.h: nmap.h
|
$(NPINGDIR)/nping.h: nmap.h
|
||||||
sed -e 's/^#[ \t]*define[ \t]\+NPING_VERSION[ \t]\+\(".*"\)/#define NPING_VERSION "0.$(NMAP_VERSION)"/' $@ > $@.tmp
|
sed -e 's/^#[ \t]*define[ \t]\+NPING_VERSION[ \t]\+\(".*"\)/#define NPING_VERSION "0.$(NMAP_VERSION)"/' $@ > $@.tmp
|
||||||
mv -f $@.tmp $@
|
mv -f $@.tmp $@
|
||||||
|
|||||||
@@ -125,8 +125,6 @@ uses.
|
|||||||
# Nping subpackage
|
# Nping subpackage
|
||||||
%if "%{buildnping}" != "0"
|
%if "%{buildnping}" != "0"
|
||||||
%package -n nping
|
%package -n nping
|
||||||
# If this 0. prefix is removed it must also be removed from Makefile.in.
|
|
||||||
Version: 0.%{version}
|
|
||||||
Summary: Nping packet generator
|
Summary: Nping packet generator
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@
|
|||||||
* things like "%d target IPs resolved". We don't want that message to always
|
* things like "%d target IPs resolved". We don't want that message to always
|
||||||
* get printed during Nping's execution. We only want it out when the user
|
* get printed during Nping's execution. We only want it out when the user
|
||||||
* has increase the verbosity.
|
* has increase the verbosity.
|
||||||
*
|
*
|
||||||
* So the thing here is that there are two things that should be taken
|
* So the thing here is that there are two things that should be taken
|
||||||
* into account:
|
* into account:
|
||||||
* 1. The current verbosity level that user has supplied from the command line
|
* 1. The current verbosity level that user has supplied from the command line
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
*
|
*
|
||||||
* Check the comments after each level definition to see how they should be
|
* Check the comments after each level definition to see how they should be
|
||||||
* used. Here are some examples:
|
* used. Here are some examples:
|
||||||
*
|
*
|
||||||
* nping_fatal(QT_3,"createIPv4(): NULL pointer supplied.");
|
* nping_fatal(QT_3,"createIPv4(): NULL pointer supplied.");
|
||||||
* nping_print(DBG_2,"Resolving specified targets...");
|
* nping_print(DBG_2,"Resolving specified targets...");
|
||||||
* nping_print(VB_0, "Raw packets sent: %llu ", this->stats.getSentPackets() );
|
* nping_print(VB_0, "Raw packets sent: %llu ", this->stats.getSentPackets() );
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
/* General tunable defines **************************************************/
|
/* General tunable defines **************************************************/
|
||||||
#define NPING_NAME "Nping"
|
#define NPING_NAME "Nping"
|
||||||
#define NPING_URL "https://nmap.org/nping"
|
#define NPING_URL "https://nmap.org/nping"
|
||||||
#define NPING_VERSION "0.7.95SVN"
|
#define NPING_VERSION "7.95SVN"
|
||||||
|
|
||||||
|
|
||||||
#define DEFAULT_VERBOSITY VB_0
|
#define DEFAULT_VERBOSITY VB_0
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/**< Default number of probes that are sent to each target */
|
/**< Default number of probes that are sent to each target */
|
||||||
#define DEFAULT_PACKET_COUNT 5
|
#define DEFAULT_PACKET_COUNT 5
|
||||||
|
|
||||||
/* When doing traceroute, the number of packets sent to each host must be
|
/* When doing traceroute, the number of packets sent to each host must be
|
||||||
* higher because 5 is probably not enough to reach the average target on the
|
* higher because 5 is probably not enough to reach the average target on the
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
#define DEFAULT_DELAY 1000 /**< Milliseconds between each probe */
|
#define DEFAULT_DELAY 1000 /**< Milliseconds between each probe */
|
||||||
|
|
||||||
/** Milliseconds Nping waits for replies after all probes have been sent */
|
/** Milliseconds Nping waits for replies after all probes have been sent */
|
||||||
#define DEFAULT_WAIT_AFTER_PROBES 1000
|
#define DEFAULT_WAIT_AFTER_PROBES 1000
|
||||||
|
|
||||||
#define DEFAULT_IP_TTL 64 /**< Default IP Time To Live */
|
#define DEFAULT_IP_TTL 64 /**< Default IP Time To Live */
|
||||||
#define DEFAULT_IP_TOS 0 /**< Default IP Type of Service */
|
#define DEFAULT_IP_TOS 0 /**< Default IP Type of Service */
|
||||||
@@ -305,7 +305,7 @@
|
|||||||
#define DEFAULT_TCP_WINDOW_SIZE 1480 /**< Default TCP Window size */
|
#define DEFAULT_TCP_WINDOW_SIZE 1480 /**< Default TCP Window size */
|
||||||
|
|
||||||
/**< MTU used when user just supplies option -f but no MTU value */
|
/**< MTU used when user just supplies option -f but no MTU value */
|
||||||
#define DEFAULT_MTU_FOR_FRAGMENTATION 72
|
#define DEFAULT_MTU_FOR_FRAGMENTATION 72
|
||||||
|
|
||||||
#define DEFAULT_ICMP_TYPE 8 /**< Default ICMP message: Echo Request */
|
#define DEFAULT_ICMP_TYPE 8 /**< Default ICMP message: Echo Request */
|
||||||
#define DEFAULT_ICMP_CODE 0 /**< Default ICMP code: 0 (standard) */
|
#define DEFAULT_ICMP_CODE 0 /**< Default ICMP code: 0 (standard) */
|
||||||
|
|||||||
Reference in New Issue
Block a user