mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Avoid additional portlist lookup when setting port state
This commit is contained in:
parent
073afa805d
commit
1a4d41a6b7
2 changed files with 11 additions and 8 deletions
|
|
@ -268,7 +268,7 @@ class PortList {
|
|||
void mapPort(u16 *portno, u8 *protocol) const;
|
||||
/* Get Port structure from PortList structure.*/
|
||||
const Port *lookupPort(u16 portno, u8 protocol) const;
|
||||
Port *createPort(u16 portno, u8 protocol);
|
||||
Port *createPort(u16 portno, u8 protocol, bool *created=NULL);
|
||||
/* Set Port structure to PortList structure.*/
|
||||
void setPortEntry(u16 portno, u8 protocol, Port *port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue