As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@
This commit is contained in:
parent
83a0aaf92c
commit
9a3af55370
59377 changed files with 98673 additions and 4712155 deletions
|
@ -13,17 +13,8 @@ Index: nmap_dns.cc
|
|||
+ if (ptr.length() >= sizeof(C_IPV4_PTR_DOMAIN) - 1 && NULL != (p = strcasestr(cptr + ptr.length() + 1 - sizeof(C_IPV4_PTR_DOMAIN), C_IPV4_PTR_DOMAIN)))
|
||||
{
|
||||
struct sockaddr_in *ip4 = (struct sockaddr_in *)&ip;
|
||||
u8 place_value[] = {1, 10, 100};
|
||||
@@ -1361,7 +1361,7 @@ bool DNS::Factory::ptrToIp(const std::string &ptr, soc
|
||||
size_t i = 0;
|
||||
|
||||
p--;
|
||||
- while (i < sizeof(ip4->sin_addr.s_addr))
|
||||
+ while (p >= cptr && i < sizeof(ip4->sin_addr.s_addr))
|
||||
{
|
||||
if (*p == '.')
|
||||
{
|
||||
@@ -1387,14 +1387,14 @@ bool DNS::Factory::ptrToIp(const std::string &ptr, soc
|
||||
static const u8 place_value[] = {1, 10, 100};
|
||||
@@ -1387,7 +1387,7 @@ bool DNS::Factory::ptrToIp(const std::string &ptr, soc
|
||||
ip.ss_family = AF_INET;
|
||||
}
|
||||
// If not, check IPv6
|
||||
|
@ -32,11 +23,3 @@ Index: nmap_dns.cc
|
|||
{
|
||||
struct sockaddr_in6 *ip6 = (struct sockaddr_in6 *)&ip;
|
||||
u8 alt = 0;
|
||||
size_t i=0;
|
||||
|
||||
p--;
|
||||
- while (i < sizeof(ip6->sin6_addr.s6_addr))
|
||||
+ while (p >= cptr && i < sizeof(ip6->sin6_addr.s6_addr))
|
||||
{
|
||||
if (*p == '.')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue