File: nse_utility.h

package info (click to toggle)
nmap 6.00-0.3+deb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 55,576 kB
  • sloc: ansic: 108,190; cpp: 60,191; sh: 19,314; python: 16,531; xml: 9,428; makefile: 2,473; perl: 1,980; yacc: 608; lex: 469; asm: 372
file content (19 lines) | stat: -rw-r--r-- 636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef NMAP_NSE_UTILITY_H
#define NMAP_NSE_UTILITY_H

size_t table_length (lua_State *, int);
void setsfield (lua_State *, int, const char *, const char *);
void setnfield (lua_State *, int, const char *, lua_Number);
void setbfield (lua_State *, int, const char *, int);
void weak_table (lua_State *, int, int, const char *);

int success (lua_State *);
int safe_error (lua_State *, const char *, ...);

void check_target (lua_State *, int, const char **, const char **);
unsigned short check_port (lua_State *, int, const char **);

Target *get_target (lua_State *, int);
Port *get_port (lua_State *, Target *, Port *, int);

#endif