OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
misc
services.h
Go to the documentation of this file.
1
/* OpenVAS Libraries
2
* Copyright (C) 2002 Michel Arboi
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Library General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
13
*
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the Free
16
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
20
#ifndef _OPENVAS_SERVICES_H
21
#define _OPENVAS_SERVICES_H
22
23
#include "
services1.h
"
24
25
/* **** FILES **** */
26
27
#define OPENVAS_SERVICES OPENVAS_DATA_DIR "/openvas-services"
28
/* If you want OpenVAS to use a second input file, uncomment next line */
29
/*#define OPENVAS_IANA_PORTS CONF_DIR "/iana-port-numbers"*/
30
31
#define OPENVAS_SERVICES_TCP OPENVAS_STATE_DIR "/services.tcp"
32
#define OPENVAS_SERVICES_UDP OPENVAS_STATE_DIR "/services.udp"
33
/* Not really useful but for debug or information */
34
#define OPENVAS_SERVICES_TXT OPENVAS_STATE_DIR "/services.txt"
35
36
#define SERVICES_MAGIC 0x42
37
38
struct
openvas_service
39
{
40
char
magic
;
41
unsigned
short
ns_port
;
42
char
ns_name
[128];
43
};
44
45
const
char
*
openvas_get_svc_name
(
int
,
const
char
*);
46
unsigned
short
*
get_tcp_svcs
(
int
*);
47
48
#endif
Generated by
1.8.4