mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
some bugfixes from Eddie Bell related to build_icmp_raw ttl argument and nmap_getprotobyname calling nmap_protocols_init
This commit is contained in:
parent
3543208670
commit
70bdc77289
3 changed files with 5 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
4.21ALPHA2
|
||||
|
||||
o Nmap now has a public Subversion (SVN) source code repository. See
|
||||
|
|
@ -12,6 +13,8 @@ o Update IANA assignment IP list for random IP (-iR) generation.
|
|||
|
||||
o Applied more code cleanup patches from Kris Katterjohn.
|
||||
|
||||
o Applied some internal bugfix patches from Eddie Bell.
|
||||
|
||||
4.21ALPHA1
|
||||
|
||||
o Integrated the Nmap Scripting Engine (NSE) into mainline Nmap.
|
||||
|
|
|
|||
|
|
@ -180,11 +180,7 @@ static int nmap_protocols_init() {
|
|||
|
||||
struct protoent *nmap_getprotbynum(int num) {
|
||||
struct protocol_list *current;
|
||||
|
||||
// nmap_protocols_init never returns -1 ?!
|
||||
//if (nmap_protocols_init() == -1)
|
||||
// return NULL;
|
||||
|
||||
nmap_protocols_init();
|
||||
for(current = protocol_table[num % PROTOCOL_TABLE_SIZE];
|
||||
current; current = current->next) {
|
||||
if (num == current->protoent->p_proto)
|
||||
|
|
|
|||
2
tcpip.cc
2
tcpip.cc
|
|
@ -1441,7 +1441,7 @@ if ( o.badsum )
|
|||
|
||||
return build_ip_raw(source, victim,
|
||||
IPPROTO_ICMP,
|
||||
o.ttl, get_random_u16(), tos, df,
|
||||
ttl, get_random_u16(), tos, df,
|
||||
ipopt, ipoptlen,
|
||||
ping, icmplen,
|
||||
packetlen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue