OpenVAS Manager  7.0.3~git
manage_ranges_all_tcp_nmap_5_51_top_100.c
Go to the documentation of this file.
1 /* OpenVAS Manager
2  * $Id$
3  * Description: Manage library: Ranges for All TCP and Nmap 5.51 Top 100 UDP.
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2009,2010 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #include "manage_sql.h"
27 
28 #undef G_LOG_DOMAIN
29 
32 #define G_LOG_DOMAIN "md main"
33 
37 #define RANGE(type, start, end) \
38  insert_port_range (list, type, start, end)
39 
47 void
49 {
50  RANGE (PORT_PROTOCOL_TCP, 1, 65535);
51 
52  RANGE (PORT_PROTOCOL_UDP, 7, 7);
53  RANGE (PORT_PROTOCOL_UDP, 9, 9);
54  RANGE (PORT_PROTOCOL_UDP, 17, 17);
55  RANGE (PORT_PROTOCOL_UDP, 19, 19);
56  RANGE (PORT_PROTOCOL_UDP, 49, 49);
57  RANGE (PORT_PROTOCOL_UDP, 53, 53);
58  RANGE (PORT_PROTOCOL_UDP, 67, 69);
59  RANGE (PORT_PROTOCOL_UDP, 80, 80);
60  RANGE (PORT_PROTOCOL_UDP, 88, 88);
61  RANGE (PORT_PROTOCOL_UDP, 111, 111);
62  RANGE (PORT_PROTOCOL_UDP, 120, 120);
63  RANGE (PORT_PROTOCOL_UDP, 123, 123);
64  RANGE (PORT_PROTOCOL_UDP, 135, 139);
65  RANGE (PORT_PROTOCOL_UDP, 158, 158);
66  RANGE (PORT_PROTOCOL_UDP, 161, 162);
67  RANGE (PORT_PROTOCOL_UDP, 177, 177);
68  RANGE (PORT_PROTOCOL_UDP, 427, 427);
69  RANGE (PORT_PROTOCOL_UDP, 443, 443);
70  RANGE (PORT_PROTOCOL_UDP, 445, 445);
71  RANGE (PORT_PROTOCOL_UDP, 497, 497);
72  RANGE (PORT_PROTOCOL_UDP, 500, 500);
73  RANGE (PORT_PROTOCOL_UDP, 514, 515);
74  RANGE (PORT_PROTOCOL_UDP, 518, 518);
75  RANGE (PORT_PROTOCOL_UDP, 520, 520);
76  RANGE (PORT_PROTOCOL_UDP, 593, 593);
77  RANGE (PORT_PROTOCOL_UDP, 623, 623);
78  RANGE (PORT_PROTOCOL_UDP, 626, 626);
79  RANGE (PORT_PROTOCOL_UDP, 631, 631);
80  RANGE (PORT_PROTOCOL_UDP, 996, 999);
81  RANGE (PORT_PROTOCOL_UDP, 1022, 1023);
82  RANGE (PORT_PROTOCOL_UDP, 1025, 1030);
83  RANGE (PORT_PROTOCOL_UDP, 1433, 1434);
84  RANGE (PORT_PROTOCOL_UDP, 1645, 1646);
85  RANGE (PORT_PROTOCOL_UDP, 1701, 1701);
86  RANGE (PORT_PROTOCOL_UDP, 1718, 1719);
87  RANGE (PORT_PROTOCOL_UDP, 1812, 1813);
88  RANGE (PORT_PROTOCOL_UDP, 1900, 1900);
89  RANGE (PORT_PROTOCOL_UDP, 2000, 2000);
90  RANGE (PORT_PROTOCOL_UDP, 2048, 2049);
91  RANGE (PORT_PROTOCOL_UDP, 2222, 2223);
92  RANGE (PORT_PROTOCOL_UDP, 3283, 3283);
93  RANGE (PORT_PROTOCOL_UDP, 3456, 3456);
94  RANGE (PORT_PROTOCOL_UDP, 3703, 3703);
95  RANGE (PORT_PROTOCOL_UDP, 4444, 4444);
96  RANGE (PORT_PROTOCOL_UDP, 4500, 4500);
97  RANGE (PORT_PROTOCOL_UDP, 5000, 5000);
98  RANGE (PORT_PROTOCOL_UDP, 5060, 5060);
99  RANGE (PORT_PROTOCOL_UDP, 5353, 5353);
100  RANGE (PORT_PROTOCOL_UDP, 5632, 5632);
101  RANGE (PORT_PROTOCOL_UDP, 9200, 9200);
102  RANGE (PORT_PROTOCOL_UDP, 10000, 10000);
103  RANGE (PORT_PROTOCOL_UDP, 17185, 17185);
104  RANGE (PORT_PROTOCOL_UDP, 20031, 20031);
105  RANGE (PORT_PROTOCOL_UDP, 30718, 30718);
106  RANGE (PORT_PROTOCOL_UDP, 31337, 31337);
107  RANGE (PORT_PROTOCOL_UDP, 32768, 32769);
108  RANGE (PORT_PROTOCOL_UDP, 32771, 32771);
109  RANGE (PORT_PROTOCOL_UDP, 32815, 32815);
110  RANGE (PORT_PROTOCOL_UDP, 33281, 33281);
111  RANGE (PORT_PROTOCOL_UDP, 49152, 49154);
112  RANGE (PORT_PROTOCOL_UDP, 49156, 49156);
113  RANGE (PORT_PROTOCOL_UDP, 49181, 49182);
114  RANGE (PORT_PROTOCOL_UDP, 49185, 49186);
115  RANGE (PORT_PROTOCOL_UDP, 49188, 49188);
116  RANGE (PORT_PROTOCOL_UDP, 49190, 49194);
117  RANGE (PORT_PROTOCOL_UDP, 49200, 49201);
118 }
void make_port_ranges_all_tcp_nmap_5_51_top_100(port_list_t list)
Make port ranges for IANA TCP 2012.
long long int port_list_t
Definition: manage.h:297
#define RANGE(type, start, end)
Insert a port range.