diff options
Diffstat (limited to 'tap-win32/prototypes.h')
-rwxr-xr-x | tap-win32/prototypes.h | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/tap-win32/prototypes.h b/tap-win32/prototypes.h index 81f58f4..2237ed0 100755 --- a/tap-win32/prototypes.h +++ b/tap-win32/prototypes.h @@ -160,7 +160,8 @@ BOOLEAN ProcessARP TapAdapterPointer p_Adapter, const PARP_PACKET src, const IPADDR adapter_ip, - const IPADDR ip, + const IPADDR ip_network, + const IPADDR ip_netmask, const MACADDR mac ); @@ -177,11 +178,42 @@ VOID InjectPacket const unsigned int len ); -VOID CheckIfDhcpAndPointToPointMode +VOID CheckIfDhcpAndTunMode ( TapAdapterPointer p_Adapter ); VOID HookDispatchFunctions(); +#if ENABLE_NONADMIN + +typedef struct _SECURITY_DESCRIPTOR { + unsigned char opaque[20]; +} SECURITY_DESCRIPTOR; + +NTSYSAPI +NTSTATUS +NTAPI +ZwSetSecurityObject ( + IN HANDLE Handle, + IN SECURITY_INFORMATION SecurityInformation, + IN PSECURITY_DESCRIPTOR SecurityDescriptor); + +VOID AllowNonAdmin (TapExtensionPointer p_Extension); + +#endif + +#if PACKET_TRUNCATION_CHECK + +VOID IPv4PacketSizeVerify + ( + const UCHAR *data, + ULONG length, + BOOLEAN tun, + const char *prefix, + LONG *counter + ); + +#endif + #endif |