Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport part of PR #24 (openvas-scanner). #37

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Mar 7, 2018

With adjustments due to code change

Check for the scanner option "time_between_request". This option avoid quick
connection establishment, termination and quick request to a single host.

  • nasl/nasl_socket.c: Include gvm/base/prefs.h, stdlib.h and sys/time.h.
    (wait_before_next_probe): New function.
    (nasl_open_privileged_socket, nasl_open_sock_tcp_bufsz, nasl_send,
    nasl_close_socket): Call new function

… change

Check for the scanner option "time_between_request". This option avoid quick
connection establishment, termination and quick request to a single host.

* nasl/nasl_socket.c: Include gvm/base/prefs.h, stdlib.h and sys/time.h.
  (wait_before_next_probe): New function.
  (nasl_open_privileged_socket, nasl_open_sock_tcp_bufsz, nasl_send,
  nasl_close_socket): Call new function
@jjnicola jjnicola requested a review from kroosec March 7, 2018 09:51
@jjnicola jjnicola changed the title Backport part of PR {openvas-scanner}#{24} (openvas-scanner). Backport part of PR #24 (openvas-scanner). Mar 7, 2018
@kroosec kroosec merged commit c757f16 into greenbone:openvas-libraries-9.0 Mar 8, 2018
@jjnicola jjnicola deleted the addtcpwait branch March 13, 2018 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants