mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +00:00
merge soc07 r4957 - Put <extrareasons> inside <extraports> as this should really simplify XML parsers' jobs because they won't have to keep track of what states and reasons go together
This commit is contained in:
@@ -456,13 +456,13 @@ void printportoutput(Target *currenths, PortList *plist) {
|
||||
int istate;
|
||||
|
||||
while ((istate = plist->nextIgnoredState(prevstate)) != PORT_UNKNOWN) {
|
||||
log_write(LOG_XML, "<extraports state=\"%s\" count=\"%d\" />\n",
|
||||
log_write(LOG_XML, "<extraports state=\"%s\" count=\"%d\">\n",
|
||||
statenum2str(istate), plist->getStateCounts(istate));
|
||||
print_xml_state_summary(plist, istate);
|
||||
log_write(LOG_XML, "</extraports>\n");
|
||||
prevstate = istate;
|
||||
}
|
||||
|
||||
print_xml_state_summary(plist);
|
||||
|
||||
if (numignoredports == plist->numports) {
|
||||
log_write(LOG_NORMAL|LOG_SKID|LOG_STDOUT,
|
||||
"%s %d scanned %s on %s %s ",
|
||||
|
||||
Reference in New Issue
Block a user