mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Actually set the base addr in NetBlockIPv6Netmask.
This is needed for proper copying of the scope_id.
This commit is contained in:
parent
249c566196
commit
7cb2946d60
1 changed files with 4 additions and 3 deletions
|
|
@ -428,9 +428,10 @@ std::string NetBlockIPv4Ranges::str() const {
|
|||
|
||||
void NetBlockIPv6Netmask::set_addr(const struct sockaddr_in6 *addr) {
|
||||
this->exhausted = false;
|
||||
this->start = addr->sin6_addr;
|
||||
this->cur = addr->sin6_addr;
|
||||
this->end = addr->sin6_addr;
|
||||
this->addr = *addr;
|
||||
this->start = this->addr.sin6_addr;
|
||||
this->cur = this->addr.sin6_addr;
|
||||
this->end = this->addr.sin6_addr;
|
||||
}
|
||||
|
||||
/* Get the sin6_scope_id member of a sockaddr_in6, based on a device name. This
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue