1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 21:29:06 +00:00

changing a couple log_write()s to use the SCRIPT_ENGINE macro rather than "SCRIPT ENGINE" literals

This commit is contained in:
kris
2008-01-21 17:18:51 +00:00
parent 0012bd6192
commit 8dc6b8d978

View File

@@ -466,7 +466,8 @@ void l_nsock_trace(nsock_iod nsiod, char* message, int direction) {
if(!nsi_is_pcap(nsiod)){
status = nsi_getlastcommunicationinfo(nsiod, &protocol, &af,
&local, &remote, sizeof(sockaddr));
log_write(LOG_STDOUT, "SCRIPT ENGINE: %s %s:%d %s %s:%d | %s\n",
log_write(LOG_STDOUT, "%s: %s %s:%d %s %s:%d | %s\n",
SCRIPT_ENGINE,
(protocol == IPPROTO_TCP)? "TCP" : "UDP",
inet_ntop_both(af, &local, ipstring_local),
inet_port_both(af, &local),
@@ -478,7 +479,8 @@ void l_nsock_trace(nsock_iod nsiod, char* message, int direction) {
free(ipstring_local);
free(ipstring_remote);
}else{ // is pcap device
log_write(LOG_STDOUT, "SCRIPT ENGINE: %s | %s\n",
log_write(LOG_STDOUT, "%s: %s | %s\n",
SCRIPT_ENGINE,
(direction == TO)? ">" : "<",
message);
}