1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00
Files
nmap/nping/winfix.h
david ed2ba4e168 Copy nping, nsock, nbase, zenmap, ncat from their homes in /.
If you have trouble updating after this revision you need to follow
these instructions. You have probably just seen an error like this:

svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping'
does not match expected URL 'svn://svn.insecure.org/nmap/nping'

This is caused by the replacement of SVN externals.

Here's what you need to do. First, save any local changes you might have
in the nping, nsock, nbase, ncat, and zenmap directories. (For example
by running "cd nping; svn diff > ../nping.diff".) If you don't have any
local changes you can skip this step.

Then run these commands:

rm -rf nping/ nsock/ nbase/ ncat/ zenmap/
svn update
svn cleanup

If all else fails, you can just delete your whole working directory and
check out anew:

svn co --username guest --password "" svn://svn.insecure.org/nmap

There may be further discussion in the mailing list thread at
http://seclists.org/nmap-dev/2011/q4/303.
2011-11-16 21:49:44 +00:00

38 lines
814 B
C

#ifndef WINFIX_H
#define WINFIX_H
#include <winsock2.h>
#include <windows.h>
#include <iphlpapi.h>
#ifndef EXTERNC
# ifdef __cplusplus
# define EXTERNC extern "C"
# else
# define EXTERNC extern
# endif
#endif
// windows-specific options
#include <pcap.h>
/* (exported) functions */
/* The code that has no preconditions to being called, so it can be
executed before even Nmap options parsing (so o.debugging and the
like don't need to be used. Its main function is to do
WSAStartup() as some of the option parsing code does DNS
resolution */
EXTERNC void win_pre_init();
/* Requires that win_pre_init() has already been called, also that
options processing has been done so that o.debugging is
available */
EXTERNC void win_init();
EXTERNC void win_barf(const char *msg);
#endif