mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add a lineno member to MatchDetails.
This commit is contained in:
parent
5020f2bb94
commit
0530fa2f2d
2 changed files with 4 additions and 0 deletions
|
|
@ -484,6 +484,7 @@ const struct MatchDetails *ServiceProbeMatch::testMatch(const u8 *buf, int bufle
|
|||
if (*devicetype) MD_return.devicetype = devicetype;
|
||||
|
||||
MD_return.serviceName = servicename;
|
||||
MD_return.lineno = getLineNo();
|
||||
}
|
||||
|
||||
return &MD_return;
|
||||
|
|
|
|||
|
|
@ -124,6 +124,9 @@ struct MatchDetails {
|
|||
// The service that was matched (Or NULL) zero-terminated.
|
||||
const char *serviceName;
|
||||
|
||||
// The line number of this match in nmap-service-probes.
|
||||
int lineno;
|
||||
|
||||
// The product/verson/info for the service that was matched (Or NULL)
|
||||
// zero-terminated.
|
||||
const char *product;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue