1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Move some flag defines from services.h to scan_lists.h where they make more sense.

This commit is contained in:
dmiller
2019-12-30 04:48:50 +00:00
parent 17304bf825
commit 697a22fd63
4 changed files with 8 additions and 10 deletions

View File

@@ -166,7 +166,6 @@
#include "nmap.h"
#include "scan_lists.h"
#include "NmapOps.h"
#include "services.h"
#include "Target.h"
#include "nmap_error.h"
#include "output.h"

View File

@@ -132,7 +132,6 @@
#include "protocols.h"
#include "NmapOps.h"
#include "services.h"
#include "charpool.h"
#include "nmap_error.h"
#include "utils.h"

View File

@@ -129,6 +129,14 @@
#ifndef SCAN_LISTS_H
#define SCAN_LISTS_H
/* just flags to indicate whether a particular port number should get tcp
* scanned, udp scanned, or both
*/
#define SCAN_TCP_PORT (1 << 0)
#define SCAN_UDP_PORT (1 << 1)
#define SCAN_SCTP_PORT (1 << 2)
#define SCAN_PROTOCOLS (1 << 3)
/* The various kinds of port/protocol scans we can have
* Each element is to point to an array of port/protocol numbers
*/

View File

@@ -142,14 +142,6 @@
#define SERVICE_TABLE_SIZE 1024
/* just flags to indicate whether a particular port number should get tcp
* scanned, udp scanned, or both
*/
#define SCAN_TCP_PORT (1 << 0)
#define SCAN_UDP_PORT (1 << 1)
#define SCAN_SCTP_PORT (1 << 2)
#define SCAN_PROTOCOLS (1 << 3)
int addportsfromservmask(char *mask, u8 *porttbl, int range_type);
struct servent *nmap_getservbyport(int port, const char *proto);
void gettoppts(double level, char *portlist, struct scan_lists * ports, char *exclude_list = NULL);