1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-06 09:40:41 +03:00

Add SE_ Prefix to header guards

This commit is contained in:
Moataz Elmasry 2017-11-21 01:14:56 +01:00
parent 4f23c7d08a
commit a34594edc9
85 changed files with 256 additions and 244 deletions

View File

@ -111,8 +111,8 @@
// Account.h // Account.h
// Header of Account.c // Header of Account.c
#ifndef ACCOUNT_H #ifndef SE_ACCOUNT_H
#define ACCOUNT_H #define SE_ACCOUNT_H
// Policy item // Policy item
struct POLICY_ITEM struct POLICY_ITEM
@ -314,6 +314,6 @@ void FormatPolicyValue(wchar_t *str, UINT size, UINT id, UINT value);
char *NormalizePolicyName(char *name); char *NormalizePolicyName(char *name);
#endif // ACCOUNT_H #endif // SE_ACCOUNT_H

View File

@ -111,8 +111,8 @@
// Admin.h // Admin.h
// Header of Admin.c // Header of Admin.c
#ifndef ADMIN_H #ifndef SE_ADMIN_H
#define ADMIN_H #define SE_ADMIN_H
// Windows version // Windows version
struct RPC_WINVER struct RPC_WINVER
@ -1530,6 +1530,6 @@ void OutRpcAzureStatus(PACK *p, RPC_AZURE_STATUS *t);
void InRpcInternetSetting(INTERNET_SETTING *t, PACK *p); void InRpcInternetSetting(INTERNET_SETTING *t, PACK *p);
void OutRpcInternetSetting(PACK *p, INTERNET_SETTING *t); void OutRpcInternetSetting(PACK *p, INTERNET_SETTING *t);
#endif // ADMIN_H #endif // SE_ADMIN_H

View File

@ -111,8 +111,8 @@
// AzureClient.h // AzureClient.h
// Header of AzureClient.c // Header of AzureClient.c
#ifndef AZURE_CLIENT_H #ifndef SE_AZURE_CLIENT_H
#define AZURE_CLIENT_H #define SE_AZURE_CLIENT_H
// Constants // Constants
#define AZURE_SERVER_PORT 443 #define AZURE_SERVER_PORT 443
@ -170,6 +170,6 @@ bool AcGetEnable(AZURE_CLIENT *ac);
void AcWaitForRequest(AZURE_CLIENT *ac, SOCK *s, AZURE_PARAM *param); void AcWaitForRequest(AZURE_CLIENT *ac, SOCK *s, AZURE_PARAM *param);
#endif // AZURE_CLIENT_H #endif // SE_AZURE_CLIENT_H

View File

@ -111,10 +111,10 @@
// AzureServer.h // AzureServer.h
// Header of AzureServer.c // Header of AzureServer.c
#ifndef AZURE_SERVER_H #ifndef SE_AZURE_SERVER_H
#define AZURE_SERVER_H #define SE_AZURE_SERVER_H
#endif // AZURE_SERVER_H #endif // SE_AZURE_SERVER_H

View File

@ -111,8 +111,8 @@
// Bridge.h // Bridge.h
// Header of Bridge.c // Header of Bridge.c
#ifndef BRIDGE_H #ifndef SE_BRIDGE_H
#define BRIDGE_H #define SE_BRIDGE_H
#ifdef OS_WIN32 #ifdef OS_WIN32
@ -176,7 +176,7 @@ bool IsNeedWinPcap();
UINT GetEthDeviceHash(); UINT GetEthDeviceHash();
bool IsRawIpBridgeSupported(); bool IsRawIpBridgeSupported();
#endif // BRIDGE_H #endif // SE_BRIDGE_H

View File

@ -111,8 +111,8 @@
// BridgeUnix.h // BridgeUnix.h
// Header of BridgeUnix.c // Header of BridgeUnix.c
#ifndef BRIDGEUNIX_H #ifndef SE_BRIDGEUNIX_H
#define BRIDGEUNIX_H #define SE_BRIDGEUNIX_H
// Macro // Macro
#ifndef SOL_PACKET #ifndef SOL_PACKET
@ -235,6 +235,6 @@ bool DlipBindRequest(int fd);
int UnixEthOpenRawSocket(); int UnixEthOpenRawSocket();
#endif // BRIDGEUNIX_H #endif // SE_BRIDGEUNIX_H

View File

@ -111,8 +111,8 @@
// BridgeWin32.h // BridgeWin32.h
// Header of BridgeWin32.c // Header of BridgeWin32.c
#ifndef BRIDGEWIN32_H #ifndef SE_BRIDGEWIN32_H
#define BRIDGEWIN32_H #define SE_BRIDGEWIN32_H
#define BRIDGE_WIN32_PACKET_DLL "Packet.dll" #define BRIDGE_WIN32_PACKET_DLL "Packet.dll"
#define BRIDGE_WIN32_PCD_DLL "|see.dll" #define BRIDGE_WIN32_PCD_DLL "|see.dll"
@ -263,6 +263,6 @@ bool Win32IsUsingSeLow();
void Win32SetEnableSeLow(bool b); void Win32SetEnableSeLow(bool b);
bool Win32GetEnableSeLow(); bool Win32GetEnableSeLow();
#endif // BRIDGEWIN32_H #endif // SE_BRIDGEWIN32_H

View File

@ -111,8 +111,8 @@
// CM.h // CM.h
// Header of CM.c // Header of CM.c
#ifndef CM_H #ifndef SE_CM_H
#define CM_H #define SE_CM_H
// Constants // Constants
#define CM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\" CEDAR_PRODUCT_STR " VPN\\Client Manager" #define CM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\" CEDAR_PRODUCT_STR " VPN\\Client Manager"
@ -153,6 +153,6 @@ void CmStopUacHelper(void *p);
void *CmExecUiHelperMain(); void *CmExecUiHelperMain();
UINT CmGetSecureBitmapId(char *dest_hostname); UINT CmGetSecureBitmapId(char *dest_hostname);
#endif // CM_H #endif // SE_CM_H

View File

@ -113,6 +113,7 @@
// CMInner.h // CMInner.h
// Internal header for the CM.c // Internal header for the CM.c
#define STARTUP_MUTEX_NAME GC_SW_SOFTETHER_PREFIX "vpncmgr_startup_mutex" #define STARTUP_MUTEX_NAME GC_SW_SOFTETHER_PREFIX "vpncmgr_startup_mutex"
#define NAME_OF_VPN_CLIENT_MANAGER "vpncmgr" #define NAME_OF_VPN_CLIENT_MANAGER "vpncmgr"
@ -638,4 +639,3 @@ void CmProxyDlgSet(HWND hWnd, CLIENT_OPTION *o, CM_INTERNET_SETTING *setting);
bool CmGetProxyServerNameAndPortFromIeProxyRegStr(char *name, UINT name_size, UINT *port, char *str, char *server_type); bool CmGetProxyServerNameAndPortFromIeProxyRegStr(char *name, UINT name_size, UINT *port, char *str, char *server_type);
void *CmUpdateJumpList(UINT start_id); void *CmUpdateJumpList(UINT start_id);

View File

@ -111,8 +111,8 @@
// Cedar.h // Cedar.h
// Header of Cedar.c // Header of Cedar.c
#ifndef CEDAR_H #ifndef SE_CEDAR_H
#define CEDAR_H #define SE_CEDAR_H
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
@ -1263,5 +1263,5 @@ bool CedarIsThereAnyEapEnabledRadiusConfig(CEDAR *c);
#endif // CEDAR_H #endif // SE_CEDAR_H

View File

@ -111,8 +111,8 @@
// CedarType.h // CedarType.h
// List of types that Cedar using // List of types that Cedar using
#ifndef CEDARTYPE_H #ifndef SE_CEDARTYPE_H
#define CEDARTYPE_H #define SE_CEDARTYPE_H
// ============================================================== // ==============================================================
@ -764,4 +764,4 @@ typedef struct SU_ADAPTER_LIST SU_ADAPTER_LIST;
#endif // CEDARTYPE_H #endif // SE_CEDARTYPE_H

View File

@ -111,8 +111,8 @@
// Client.h // Client.h
// Header of Client.c // Header of Client.c
#ifndef CLIENT_H #ifndef SE_CLIENT_H
#define CLIENT_H #define SE_CLIENT_H
#define CLIENT_CONFIG_PORT GC_CLIENT_CONFIG_PORT // Client port number #define CLIENT_CONFIG_PORT GC_CLIENT_CONFIG_PORT // Client port number
#define CLIENT_NOTIFY_PORT GC_CLIENT_NOTIFY_PORT // Client notification port number #define CLIENT_NOTIFY_PORT GC_CLIENT_NOTIFY_PORT // Client notification port number
@ -875,6 +875,6 @@ void InRpcCmSetting(CM_SETTING *c, PACK *p);
void CiInitDriverVerStruct(MS_DRIVER_VER *ver); void CiInitDriverVerStruct(MS_DRIVER_VER *ver);
#endif // OS_EIN32 #endif // OS_EIN32
#endif // CLIENT_H #endif // SE_CLIENT_H

View File

@ -111,8 +111,8 @@
// Command.h // Command.h
// Header of Command.c // Header of Command.c
#ifndef COMMAND_H #ifndef SE_COMMAND_H
#define COMMAND_H #define SE_COMMAND_H
// Constants // Constants
#define TRAFFIC_DEFAULT_PORT 9821 #define TRAFFIC_DEFAULT_PORT 9821
@ -697,6 +697,6 @@ UINT PsVpnAzureSetEnable(CONSOLE *c, char *cmd_name, wchar_t *str, void *param);
UINT PsVpnAzureGetStatus(CONSOLE *c, char *cmd_name, wchar_t *str, void *param); UINT PsVpnAzureGetStatus(CONSOLE *c, char *cmd_name, wchar_t *str, void *param);
#endif // COMMAND_H #endif // SE_COMMAND_H

View File

@ -111,8 +111,8 @@
// Connection.h // Connection.h
// Header of Connection.c // Header of Connection.c
#ifndef CONNECTION_H #ifndef SE_CONNECTION_H
#define CONNECTION_H #define SE_CONNECTION_H
// Magic number indicating that the packet is compressed // Magic number indicating that the packet is compressed
#define CONNECTION_BULK_COMPRESS_SIGNATURE 0xDEADBEEFCAFEFACEULL #define CONNECTION_BULK_COMPRESS_SIGNATURE 0xDEADBEEFCAFEFACEULL
@ -371,4 +371,4 @@ UINT GetMachineRand();
#endif // CONNECTION_H #endif // SE_CONNECTION_H

View File

@ -111,8 +111,8 @@
// Console.h // Console.h
// Header of Console.c // Header of Console.c
#ifndef CONSOLE_H #ifndef SE_CONSOLE_H
#define CONSOLE_H #define SE_CONSOLE_H
// Constant // Constant
#define MAX_PROMPT_STRSIZE 65536 #define MAX_PROMPT_STRSIZE 65536
@ -244,7 +244,7 @@ wchar_t *ConsoleReadNextFromInFile(CONSOLE *c);
UINT ConsoleLocalGetWidth(CONSOLE *c); UINT ConsoleLocalGetWidth(CONSOLE *c);
#endif // CONSOLE_H #endif // SE_CONSOLE_H

View File

@ -111,8 +111,8 @@
// DDNS.h // DDNS.h
// Header of DDNS.c // Header of DDNS.c
#ifndef DDNS_H #ifndef SE_DDNS_H
#define DDNS_H #define SE_DDNS_H
// Certificate hash // Certificate hash
#define DDNS_CERT_HASH "78BF0499A99396907C9F49DD13571C81FE26E6F5" \ #define DDNS_CERT_HASH "78BF0499A99396907C9F49DD13571C81FE26E6F5" \
@ -245,6 +245,6 @@ void DCGetInternetSetting(DDNS_CLIENT *c, INTERNET_SETTING *t);
#endif // DDNS_H #endif // SE_DDNS_H

View File

@ -111,14 +111,14 @@
// Database.h // Database.h
// Header of Database.c // Header of Database.c
#ifndef DATABASE_H #ifndef SE_DATABASE_H
#define DATABASE_H #define SE_DATABASE_H
wchar_t *LiGetLicenseStatusStr(UINT i); wchar_t *LiGetLicenseStatusStr(UINT i);
bool LiIsLicenseKey(char *str); bool LiIsLicenseKey(char *str);
bool LiStrToKeyBit(UCHAR *keybit, char *keystr); bool LiStrToKeyBit(UCHAR *keybit, char *keystr);
#endif // DATABASE_H #endif // SE_DATABASE_H

View File

@ -111,12 +111,12 @@
// EM.h // EM.h
// Header of EM.c // Header of EM.c
#ifndef EM_H #ifndef SE_EM_H
#define EM_H #define SE_EM_H
// Public function // Public function
void EMExec(); void EMExec();
#endif // EM_H #endif // SE_EM_H

View File

@ -111,6 +111,9 @@
// EMInner.h // EMInner.h
// Inner header of EM.c // Inner header of EM.c
#ifndef SE_EM_INNER_H
#define SE_EM_INNER_H
// Constants // Constants
#define EM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\EtherLogger\\Manager" #define EM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\EtherLogger\\Manager"
@ -147,3 +150,5 @@ void EmLicenseAddDlgUpdate(HWND hWnd, RPC *s);
void EmLicenseAddDlgShiftTextItem(HWND hWnd, UINT id1, UINT id2, UINT *next_focus); void EmLicenseAddDlgShiftTextItem(HWND hWnd, UINT id1, UINT id2, UINT *next_focus);
void EmLicenseAddDlgGetText(HWND hWnd, char *str, UINT size); void EmLicenseAddDlgGetText(HWND hWnd, char *str, UINT size);
void EmLicenseAddDlgOnOk(HWND hWnd, RPC *s); void EmLicenseAddDlgOnOk(HWND hWnd, RPC *s);
#endif // SE_EM_INNER_H

View File

@ -111,8 +111,8 @@
// EtherLog.h // EtherLog.h
// Header of EtherLog.c // Header of EtherLog.c
#ifndef ETHERLOG_H #ifndef SE_ETHERLOG_H
#define ETHERLOG_H #define SE_ETHERLOG_H
// Whether this is a beta version // Whether this is a beta version
#define ELOG_IS_BETA true #define ELOG_IS_BETA true
@ -276,6 +276,6 @@ void FreeRpcEnumLicenseKey(RPC_ENUM_LICENSE_KEY *t);
void InRpcElLicenseStatus(RPC_EL_LICENSE_STATUS *t, PACK *p); void InRpcElLicenseStatus(RPC_EL_LICENSE_STATUS *t, PACK *p);
void OutRpcElLicenseStatus(PACK *p, RPC_EL_LICENSE_STATUS *t); void OutRpcElLicenseStatus(PACK *p, RPC_EL_LICENSE_STATUS *t);
#endif // ETHERLOG_H #endif // SE_ETHERLOG_H

View File

@ -111,8 +111,8 @@
// Hub.h // Hub.h
// Header of Hub.c // Header of Hub.c
#ifndef HUB_H #ifndef SE_HUB_H
#define HUB_H #define SE_HUB_H
// Prefix in the access list for investigating whether the user name which is contained in a particular file // Prefix in the access list for investigating whether the user name which is contained in a particular file
@ -645,6 +645,6 @@ void VgsSetUserAgentValue(char *str);
void VgsSetEmbTag(bool b); void VgsSetEmbTag(bool b);
EAP_CLIENT *HubNewEapClient(CEDAR *cedar, char *hubname, char *client_ip_str, char *username); EAP_CLIENT *HubNewEapClient(CEDAR *cedar, char *hubname, char *client_ip_str, char *username);
#endif // HUB_H #endif // SE_HUB_H

View File

@ -111,8 +111,8 @@
// IPsec.h // IPsec.h
// Header of IPsec.c // Header of IPsec.c
#ifndef IPSEC_H #ifndef SE_IPSEC_H
#define IPSEC_H #define SE_IPSEC_H
//// Constants //// Constants
@ -201,5 +201,5 @@ bool IPsecCheckOsService(IPSEC_SERVER *s);
void IPSecSetDisable(bool b); void IPSecSetDisable(bool b);
#endif // IPSEC_H #endif // SE_IPSEC_H

View File

@ -111,8 +111,8 @@
// IPsec_EtherIP.h // IPsec_EtherIP.h
// Header of IPsec_EtherIP.c // Header of IPsec_EtherIP.c
#ifndef IPSEC_ETHERIP_H #ifndef SE_IPSEC_ETHERIP_H
#define IPSEC_ETHERIP_H #define SE_IPSEC_ETHERIP_H
//// Macro //// Macro
@ -171,6 +171,6 @@ void EtherIPIpcConnectThread(THREAD *t, void *p);
UINT CalcEtherIPTcpMss(ETHERIP_SERVER *s); UINT CalcEtherIPTcpMss(ETHERIP_SERVER *s);
#endif // IPSEC_ETHERIP_H #endif // SE_IPSEC_ETHERIP_H

View File

@ -111,8 +111,8 @@
// IPsec_IKE.h // IPsec_IKE.h
// Header of IPsec_IKE.c // Header of IPsec_IKE.c
#ifndef IPSEC_IKE_H #ifndef SE_IPSEC_IKE_H
#define IPSEC_IKE_H #define SE_IPSEC_IKE_H
//// Macro //// Macro
@ -472,5 +472,5 @@ void ProcL2TPv3PacketRecv(IKE_SERVER *ike, IKE_CLIENT *c, UCHAR *data, UINT data
IKE_SA *SearchIkeSaByCookie(IKE_SERVER *ike, UINT64 init_cookie, UINT64 resp_cookie); IKE_SA *SearchIkeSaByCookie(IKE_SERVER *ike, UINT64 init_cookie, UINT64 resp_cookie);
#endif // IPSEC_IKE_H #endif // SE_IPSEC_IKE_H

View File

@ -111,8 +111,8 @@
// IPsec_IPC.h // IPsec_IPC.h
// Header of IPsec_IPC.c // Header of IPsec_IPC.c
#ifndef IPSEC_IPC #ifndef SE_IPSEC_IPC
#define IPSEC_IPC #define SE_IPSEC_IPC
// Constants // Constants
#define IPC_ARP_LIFETIME (3 * 60 * 1000) #define IPC_ARP_LIFETIME (3 * 60 * 1000)
@ -265,7 +265,7 @@ void FreeIPCAsync(IPC_ASYNC *a);
bool ParseAndExtractMsChapV2InfoFromPassword(IPC_MSCHAP_V2_AUTHINFO *d, char *password); bool ParseAndExtractMsChapV2InfoFromPassword(IPC_MSCHAP_V2_AUTHINFO *d, char *password);
#endif // IPSEC_IPC #endif // SE_IPSEC_IPC

View File

@ -111,8 +111,8 @@
// IPsec_IkePacket.h // IPsec_IkePacket.h
// Header of IPsec_IkePacket.c // Header of IPsec_IkePacket.c
#ifndef IPSEC_PACKET_H #ifndef SE_IPSEC_PACKET_H
#define IPSEC_PACKET_H #define SE_IPSEC_PACKET_H
// Constants // Constants
#ifdef OS_WIN32 #ifdef OS_WIN32
@ -768,6 +768,6 @@ DH_CTX *IkeDhNewCtx(IKE_DH *d);
void IkeDhFreeCtx(DH_CTX *dh); void IkeDhFreeCtx(DH_CTX *dh);
#endif // IPSEC_PACKET_H #endif // SE_IPSEC_PACKET_H

View File

@ -111,8 +111,8 @@
// IPsec_L2TP.h // IPsec_L2TP.h
// Header of IPsec_L2TP.c // Header of IPsec_L2TP.c
#ifndef IPSEC_L2TP_H #ifndef SE_IPSEC_L2TP_H
#define IPSEC_L2TP_H #define SE_IPSEC_L2TP_H
//// Macro //// Macro
@ -378,6 +378,6 @@ UINT GenerateNewSessionIdForL2TPv3(L2TP_SERVER *l2tp);
L2TP_SESSION *SearchL2TPSessionById(L2TP_SERVER *l2tp, bool is_v3, UINT id); L2TP_SESSION *SearchL2TPSessionById(L2TP_SERVER *l2tp, bool is_v3, UINT id);
void L2TPSessionManageEtherIPServer(L2TP_SERVER *l2tp, L2TP_SESSION *s); void L2TPSessionManageEtherIPServer(L2TP_SERVER *l2tp, L2TP_SESSION *s);
#endif // IPSEC_L2TP_H #endif // SE_IPSEC_L2TP_H

View File

@ -111,8 +111,8 @@
// IPsec_PPP.h // IPsec_PPP.h
// Header of IPsec_PPP.c // Header of IPsec_PPP.c
#ifndef IPSEC_PPP_H #ifndef SE_IPSEC_PPP_H
#define IPSEC_PPP_H #define SE_IPSEC_PPP_H
//// Macro //// Macro
@ -337,6 +337,6 @@ bool MsChapV2VerityPassword(IPC_MSCHAP_V2_AUTHINFO *d, char *password);
char *MsChapV2DoBruteForce(IPC_MSCHAP_V2_AUTHINFO *d, LIST *password_list); char *MsChapV2DoBruteForce(IPC_MSCHAP_V2_AUTHINFO *d, LIST *password_list);
void PPPFreeEapClient(PPP_SESSION *p); void PPPFreeEapClient(PPP_SESSION *p);
#endif // IPSEC_PPP_H #endif // SE_IPSEC_PPP_H

View File

@ -111,8 +111,8 @@
// IPsec_Win7.h // IPsec_Win7.h
// Header of IPsec_Win7.c // Header of IPsec_Win7.c
#ifndef IPSEC_WIN7_H #ifndef SE_IPSEC_WIN7_H
#define IPSEC_WIN7_H #define SE_IPSEC_WIN7_H
// Constants // Constants
#define IPSEC_WIN7_SRC_SYS_X86 "|pxwfp_x86.sys" #define IPSEC_WIN7_SRC_SYS_X86 "|pxwfp_x86.sys"
@ -142,7 +142,7 @@ void SetCurrentIPsecWin7DriverBuild();
bool IPsecWin7InitApi(); bool IPsecWin7InitApi();
#endif // IPSEC_WIN7_H #endif // SE_IPSEC_WIN7_H

View File

@ -111,8 +111,8 @@
// IPsec_Win7.h // IPsec_Win7.h
// Internal header of IPsec_Win7.c // Internal header of IPsec_Win7.c
#ifndef IPSEC_WIN7_INNER_H #ifndef SE_IPSEC_WIN7_INNER_H
#define IPSEC_WIN7_INNER_H #define SE_IPSEC_WIN7_INNER_H
// API function // API function
typedef struct IPSEC_WIN7_FUNCTIONS typedef struct IPSEC_WIN7_FUNCTIONS
@ -180,7 +180,7 @@ struct IPSEC_WIN7
}; };
#endif // IPSEC_WIN7_INNER_H #endif // SE_IPSEC_WIN7_INNER_H

View File

@ -111,8 +111,8 @@
// Interop_OpenVPN.h // Interop_OpenVPN.h
// Header of Interop_OpenVPN.c // Header of Interop_OpenVPN.c
#ifndef INTEROP_OPENVPN_H #ifndef SE_INTEROP_OPENVPN_H
#define INTEROP_OPENVPN_H #define SE_INTEROP_OPENVPN_H
//// Constants //// Constants
@ -386,6 +386,6 @@ void OvsSetNoOpenVpnUdp(bool b);
#endif // INTEROP_OPENVPN_H #endif // SE_INTEROP_OPENVPN_H

View File

@ -111,8 +111,8 @@
// Interop_SSTP.h // Interop_SSTP.h
// Header of Interop_SSTP.c // Header of Interop_SSTP.c
#ifndef INTEROP_SSTP_H #ifndef SE_INTEROP_SSTP_H
#define INTEROP_SSTP_H #define SE_INTEROP_SSTP_H
//// Constants //// Constants
#define SSTP_URI "/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/" // SSTP HTTPS URI #define SSTP_URI "/sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/" // SSTP HTTPS URI
@ -259,6 +259,6 @@ void SstpSendPacket(SSTP_SERVER *s, SSTP_PACKET *p);
bool GetNoSstp(); bool GetNoSstp();
void SetNoSstp(bool b); void SetNoSstp(bool b);
#endif // INTEROP_SSTP_H #endif // SE_INTEROP_SSTP_H

View File

@ -111,8 +111,8 @@
// Layer3.h // Layer3.h
// Header of Layer3.c // Header of Layer3.c
#ifndef LAYER3_H #ifndef SE_LAYER3_H
#define LAYER3_H #define SE_LAYER3_H
// Constants // Constants
#define L3_USERNAME "L3SW_" #define L3_USERNAME "L3SW_"
@ -249,7 +249,7 @@ void L3RecvIp(L3IF *f, PKT *p, bool self);
void L3PollingIpQueue(L3IF *f); void L3PollingIpQueue(L3IF *f);
#endif // LAYER3_H #endif // SE_LAYER3_H

View File

@ -111,8 +111,8 @@
// Link.h // Link.h
// Header of Link.c // Header of Link.c
#ifndef LINK_H #ifndef SE_LINK_H
#define LINK_H #define SE_LINK_H
struct LINK struct LINK
{ {
@ -164,7 +164,7 @@ void CleanupLink(LINK *k);
void ReleaseAllLink(HUB *h); void ReleaseAllLink(HUB *h);
void NormalizeLinkPolicy(POLICY *p); void NormalizeLinkPolicy(POLICY *p);
#endif // LINK_H #endif // SE_LINK_H

View File

@ -111,8 +111,8 @@
// Listener.h // Listener.h
// Header of Listener.c // Header of Listener.c
#ifndef LISTENER_H #ifndef SE_LISTENER_H
#define LISTENER_H #define SE_LISTENER_H
// Function to call when receiving a new connection // Function to call when receiving a new connection
@ -209,6 +209,6 @@ bool ListenerRUDPRpcRecvProc(RUDP_STACK *r, UDPPACKET *p);
void ListenerSetProcRecvRpcEnable(bool b); void ListenerSetProcRecvRpcEnable(bool b);
#endif // LISTENER_H #endif // SE_LISTENER_H

View File

@ -111,8 +111,8 @@
// Logging.h // Logging.h
// Header of Logging.c // Header of Logging.c
#ifndef LOGGING_H #ifndef SE_LOGGING_H
#define LOGGING_H #define SE_LOGGING_H
// Port number for HTTP monitoring // Port number for HTTP monitoring
@ -276,5 +276,5 @@ UINT GetEraserCheckInterval();
void SetMaxLogSize(UINT64 size); void SetMaxLogSize(UINT64 size);
UINT64 GetMaxLogSize(); UINT64 GetMaxLogSize();
#endif // LOGGING_G #endif // SE_LOGGING_G

View File

@ -111,12 +111,12 @@
// NM.h // NM.h
// Header of NM.c // Header of NM.c
#ifndef NM_H #ifndef SE_NM_H
#define NM_H #define SE_NM_H
// External function // External function
void NMExec(); void NMExec();
#endif // NM_H #endif // SE_NM_H

View File

@ -111,6 +111,8 @@
// NMInner.h // NMInner.h
// The internal header of NM.c // The internal header of NM.c
#ifndef SE_NM_INNER_H
#define SE_NM_INNER_H
// Constants // Constants
#define NM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\PacketiX VPN\\User-mode Router Manager" #define NM_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\PacketiX VPN\\User-mode Router Manager"
@ -176,3 +178,4 @@ bool NmEditPushRoute(HWND hWnd, SM_HUB *r);
UINT NmEditPushRouteProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param); UINT NmEditPushRouteProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, void *param);
#endif SE_NM_INNER_H

View File

@ -111,8 +111,8 @@
// Nat.h // Nat.h
// Header of Nat.c // Header of Nat.c
#ifndef NAT_H #ifndef SE_NAT_H
#define NAT_H #define SE_NAT_H
// Constants // Constants
#define NAT_CONFIG_FILE_NAME "@vpn_router.config" // NAT configuration file #define NAT_CONFIG_FILE_NAME "@vpn_router.config" // NAT configuration file
@ -313,6 +313,6 @@ void OutRpcDummy(PACK *p, RPC_DUMMY *t);
#endif // NAT_H #endif // SE_NAT_H

View File

@ -111,8 +111,8 @@
// NativeStack.h // NativeStack.h
// Header of NativeStack.c // Header of NativeStack.c
#ifndef NATIVESTACK_H #ifndef SE_NATIVESTACK_H
#define NATIVESTACK_H #define SE_NATIVESTACK_H
//// Constants //// Constants
#define NS_MAC_ADDRESS_BYTE_1 0xDA // First byte of the MAC address #define NS_MAC_ADDRESS_BYTE_1 0xDA // First byte of the MAC address
@ -190,6 +190,6 @@ void GenerateDummyIpAndMark(void *hash_seed, IPTABLES_ENTRY *e, UINT id);
UINT GenerateDummyMark(PRAND *p); UINT GenerateDummyMark(PRAND *p);
void GenerateDummyIp(PRAND *p, IP *ip); void GenerateDummyIp(PRAND *p, IP *ip);
#endif // NATIVESTACK_H #endif // SE_NATIVESTACK_H

View File

@ -111,8 +111,8 @@
// NullLan.h // NullLan.h
// Header of NullLan.c // Header of NullLan.c
#ifndef NULLLAN_H #ifndef SE_NULLLAN_H
#define NULLLAN_H #define SE_NULLLAN_H
#define NULL_PACKET_GENERATE_INTERVAL 100000000 // Packet generation interval #define NULL_PACKET_GENERATE_INTERVAL 100000000 // Packet generation interval
@ -139,7 +139,7 @@ void NullPaFree(SESSION *s);
void NullPacketGenerateThread(THREAD *t, void *param); void NullPacketGenerateThread(THREAD *t, void *param);
void NullGenerateMacAddress(UCHAR *mac, UINT id, UINT seq); void NullGenerateMacAddress(UCHAR *mac, UINT id, UINT seq);
#endif // NULLAN_H #endif // SE_NULLAN_H

View File

@ -111,8 +111,8 @@
// Protocol.h // Protocol.h
// Header of Protocol.c // Header of Protocol.c
#ifndef PROTOCOL_H #ifndef SE_PROTOCOL_H
#define PROTOCOL_H #define SE_PROTOCOL_H
// The parameters that will be passed to the certificate confirmation thread // The parameters that will be passed to the certificate confirmation thread
struct CHECK_CERT_THREAD_PROC struct CHECK_CERT_THREAD_PROC
@ -313,4 +313,4 @@ bool TryGetParentCertFromCertList(LIST *o, X *x, LIST *found_chain);
bool DownloadAndSaveIntermediateCertificatesIfNecessary(X *x); bool DownloadAndSaveIntermediateCertificatesIfNecessary(X *x);
#endif // PROTOCOL_H #endif // SE_PROTOCOL_H

View File

@ -111,8 +111,8 @@
// Radius.h // Radius.h
// Header of Radius.c // Header of Radius.c
#ifndef RADIUS_H #ifndef SE_RADIUS_H
#define RADIUS_H #define SE_RADIUS_H
#define RADIUS_DEFAULT_PORT 1812 // The default port number #define RADIUS_DEFAULT_PORT 1812 // The default port number
#define RADIUS_RETRY_INTERVAL 500 // Retransmission interval #define RADIUS_RETRY_INTERVAL 500 // Retransmission interval
@ -386,7 +386,7 @@ BUF *RadiusCreateNasId(char *name);
void RadiusAddValue(BUF *b, UCHAR t, UINT v, UCHAR vt, void *data, UINT size); void RadiusAddValue(BUF *b, UCHAR t, UINT v, UCHAR vt, void *data, UINT size);
LIST *RadiusParseOptions(BUF *b); LIST *RadiusParseOptions(BUF *b);
#endif // RADIUS_H #endif // SE_RADIUS_H

View File

@ -111,8 +111,8 @@
// Remote.h // Remote.h
// Header of Remote.c // Header of Remote.c
#ifndef REMOTE_H #ifndef SE_REMOTE_H
#define REMOTE_H #define SE_REMOTE_H
// RPC execution function // RPC execution function
typedef PACK *(RPC_DISPATCHER)(RPC *r, char *function_name, PACK *p); typedef PACK *(RPC_DISPATCHER)(RPC *r, char *function_name, PACK *p);
@ -149,5 +149,5 @@ UINT RpcGetError(PACK *p);
void EndRpc(RPC *rpc); void EndRpc(RPC *rpc);
void RpcFree(RPC *rpc); void RpcFree(RPC *rpc);
#endif // REMOTE_H #endif // SE_REMOTE_H

View File

@ -111,11 +111,11 @@
// SM.h // SM.h
// Header of SM.c // Header of SM.c
#ifndef SM_H #ifndef SE_SM_H
#define SM_H #define SE_SM_H
void SMExec(); void SMExec();
#endif // SM_H #endif // SE_SM_H

View File

@ -111,8 +111,8 @@
// SW.h // SW.h
// Header of SW.c // Header of SW.c
#ifndef SW_H #ifndef SE_SW_H
#define SW_H #define SE_SW_H
#define SW_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\Setup Wizard Settings" #define SW_REG_KEY "Software\\" GC_REG_COMPANY_NAME "\\Setup Wizard Settings"
@ -126,6 +126,6 @@ bool SwCompileSfx(LIST *o, wchar_t *dst_filename);
bool SwGenSfxModeMain(char *mode, wchar_t *dst); bool SwGenSfxModeMain(char *mode, wchar_t *dst);
bool SwWaitForVpnClientPortReady(UINT timeout); bool SwWaitForVpnClientPortReady(UINT timeout);
#endif // SW_H #endif // SE_SW_H

View File

@ -111,8 +111,8 @@
// Sam.h // Sam.h
// Header of Sam.c // Header of Sam.c
#ifndef SAM_H #ifndef SE_SAM_H
#define SAM_H #define SE_SAM_H
// Function prototype // Function prototype
@ -128,5 +128,5 @@ void GenRamdom(void *random);
void SecurePassword(void *secure_password, void *password, void *random); void SecurePassword(void *secure_password, void *password, void *random);
X *GetIssuerFromList(LIST *cert_list, X *cert); X *GetIssuerFromList(LIST *cert_list, X *cert);
#endif // SAM_H #endif // SE_SAM_H

View File

@ -111,8 +111,8 @@
// SeLowUser.h // SeLowUser.h
// Header for SeLowUser.c // Header for SeLowUser.c
#ifndef SELOWUSER_H #ifndef SE_SELOWUSER_H
#define SELOWUSER_H #define SE_SELOWUSER_H
#include <SeLow/SeLowCommon.h> #include <SeLow/SeLowCommon.h>
@ -180,7 +180,7 @@ void SuDeleteGarbageInfsInner();
bool SuLoadDriversHive(); bool SuLoadDriversHive();
bool SuUnloadDriversHive(); bool SuUnloadDriversHive();
#endif // SELOWUSER_H #endif // SE_SELOWUSER_H

View File

@ -111,10 +111,10 @@
// SecureInfo.h // SecureInfo.h
// Header of SecureInfo.c // Header of SecureInfo.c
#ifndef SECUREINFO_H #ifndef SE_SECUREINFO_H
#define SECUREINFO_H #define SE_SECUREINFO_H
#endif // SECUREINFO_H #endif // SE_SECUREINFO_H

View File

@ -111,8 +111,8 @@
// SecureNAT.h // SecureNAT.h
// Header of SecureNAT.c // Header of SecureNAT.c
#ifndef SECURENAT_H #ifndef SE_SECURENAT_H
#define SECURENAT_H #define SE_SECURENAT_H
struct SNAT struct SNAT
{ {
@ -130,5 +130,5 @@ void SnFreeSecureNAT(SNAT *s);
void SnSecureNATThread(THREAD *t, void *param); void SnSecureNATThread(THREAD *t, void *param);
#endif // SECURENAT_H #endif // SE_SECURENAT_H

View File

@ -111,8 +111,8 @@
// Server.h // Server.h
// Header of Server.c // Header of Server.c
#ifndef SERVER_H #ifndef SE_SERVER_H
#define SERVER_H #define SE_SERVER_H
// Default ports // Default ports
#define SERVER_DEF_PORTS_1 443 #define SERVER_DEF_PORTS_1 443
@ -746,7 +746,7 @@ void SiGetCurrentRegion(CEDAR *c, char *region, UINT region_size);
bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c); bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c);
bool SiCheckCurrentRegion(CEDAR *c, char *r); bool SiCheckCurrentRegion(CEDAR *c, char *r);
#endif // SERVER_H #endif // SE_SERVER_H

View File

@ -111,8 +111,8 @@
// Session.h // Session.h
// Header of Session.c // Header of Session.c
#ifndef SESSION_H #ifndef SE_SESSION_H
#define SESSION_H #define SE_SESSION_H
// Interval to increment the number of logins after the connection // Interval to increment the number of logins after the connection
@ -439,7 +439,7 @@ bool CompareNodeInfo(NODE_INFO *a, NODE_INFO *b);
bool IsPriorityHighestPacketForQoS(void *data, UINT size); bool IsPriorityHighestPacketForQoS(void *data, UINT size);
UINT GetNextDelayedPacketTickDiff(SESSION *s); UINT GetNextDelayedPacketTickDiff(SESSION *s);
#endif // SESSION_H #endif // SE_SESSION_H

View File

@ -111,8 +111,8 @@
// UT.h // UT.h
// Header of UT.c // Header of UT.c
#ifndef UT_H #ifndef SE_UT_H
#define UT_H #define SE_UT_H
// Constant // Constant
#define SPEED_METER_REFRESH_INTERVAL 500 #define SPEED_METER_REFRESH_INTERVAL 500
@ -134,5 +134,5 @@ void UtSpeedMeterDlgRefreshStatus(HWND hWnd);
void UtSpeedMeter(); void UtSpeedMeter();
void UtSpeedMeterEx(void *hWnd); void UtSpeedMeterEx(void *hWnd);
#endif // UT_H #endif // SE_UT_H

View File

@ -111,8 +111,8 @@
// UdpAccel.h // UdpAccel.h
// Header of UdpAccel.c // Header of UdpAccel.c
#ifndef UDPACCEL_H #ifndef SE_UDPACCEL_H
#define UDPACCEL_H #define SE_UDPACCEL_H
// Constants // Constants
#define UDP_ACCELERATION_COMMON_KEY_SIZE 20 // Common key size #define UDP_ACCELERATION_COMMON_KEY_SIZE 20 // Common key size
@ -217,6 +217,6 @@ void UdpAccelSendBlock(UDP_ACCEL *a, BLOCK *b);
UINT UdpAccelCalcMss(UDP_ACCEL *a); UINT UdpAccelCalcMss(UDP_ACCEL *a);
void NatT_GetIpThread(THREAD *thread, void *param); void NatT_GetIpThread(THREAD *thread, void *param);
#endif // UDPACCEL_H #endif // SE_UDPACCEL_H

View File

@ -111,8 +111,8 @@
// VG.h // VG.h
// Header for VG.c // Header for VG.c
#ifndef VG_H #ifndef SE_VG_H
#define VG_H #define SE_VG_H
#define VG_HUBNAME "VPNGATE" #define VG_HUBNAME "VPNGATE"
@ -121,7 +121,7 @@ bool InitVg();
void FreeVg(); void FreeVg();
void VgUseStaticLink(); void VgUseStaticLink();
#endif // VG_H #endif // SE_VG_H

View File

@ -111,8 +111,8 @@
// VLan.h // VLan.h
// Header of VLan.c // Header of VLan.c
#ifndef VLAN_H #ifndef SE_VLAN_H
#define VLAN_H #define SE_VLAN_H
// Parameters related to VLAN // Parameters related to VLAN
struct VLAN_PARAM struct VLAN_PARAM
@ -133,6 +133,6 @@ struct VLAN_PARAM
#endif // OS_WIN32 #endif // OS_WIN32
#endif // VLAN_H #endif // SE_VLAN_H

View File

@ -111,8 +111,8 @@
// VLanUnix.h // VLanUnix.h
// Header of VLanUnix.c // Header of VLanUnix.c
#ifndef VLANUNIX_H #ifndef SE_VLANUNIX_H
#define VLANUNIX_H #define SE_VLANUNIX_H
// Constant // Constant
#define TAP_READ_BUF_SIZE 1600 #define TAP_READ_BUF_SIZE 1600
@ -166,5 +166,5 @@ void UnixVLanDelete(char *name);
int UnixVLanGet(char *name); int UnixVLanGet(char *name);
int UnixCompareVLan(void *p1, void *p2); int UnixCompareVLan(void *p1, void *p2);
#endif // VLANUNIX_H #endif // SE_VLANUNIX_H

View File

@ -111,8 +111,8 @@
// VLanWin32.h // VLanWin32.h
// Header of VLanWin32.c // Header of VLanWin32.c
#ifndef VLANWIN32_H #ifndef SE_VLANWIN32_H
#define VLANWIN32_H #define SE_VLANWIN32_H
// Routing table tracking timer // Routing table tracking timer
#define TRACKING_INTERVAL_INITIAL 444 // Initial #define TRACKING_INTERVAL_INITIAL 444 // Initial
@ -197,4 +197,4 @@ void Win32ReleaseAllDhcp9x(bool wait);
void Win32GetWinVer(RPC_WINVER *v); void Win32GetWinVer(RPC_WINVER *v);
#endif // VLANWIN32_H #endif // SE_VLANWIN32_H

View File

@ -111,8 +111,8 @@
// Virtual.h // Virtual.h
// Header of Virtual.c // Header of Virtual.c
#ifndef VIRTUAL_H #ifndef SE_VIRTUAL_H
#define VIRTUAL_H #define SE_VIRTUAL_H
#define NN_RAW_IP_PORT_START 61001 #define NN_RAW_IP_PORT_START 61001
@ -695,6 +695,6 @@ void NnDeleteOldestNatSessionIfNecessary(NATIVE_NAT *t, UINT ip, UINT protocol);
void NnSetSecureNatTargetHostname(char *name); void NnSetSecureNatTargetHostname(char *name);
#endif // VIRTUAL_H #endif // SE_VIRTUAL_H

View File

@ -120,8 +120,8 @@
#include <Mayaqua/Mayaqua.h> #include <Mayaqua/Mayaqua.h>
#include <Cedar/Cedar.h> #include <Cedar/Cedar.h>
#ifndef WATERMARK_H #ifndef SE_WATERKMARK_H
#define WATERMARK_H #define SE_WATERKMARK_H
// Digital watermark // Digital watermark
extern BYTE WaterMark[]; extern BYTE WaterMark[];
@ -132,5 +132,5 @@ UINT SizeOfSaitama();
#define MAX_WATERMARK_SIZE (SizeOfWaterMark() + HTTP_PACK_RAND_SIZE_MAX * 2) #define MAX_WATERMARK_SIZE (SizeOfWaterMark() + HTTP_PACK_RAND_SIZE_MAX * 2)
#endif // WATERMARK_H #endif // SE_WATERKMARK_H

View File

@ -111,6 +111,9 @@
// WebUI.h // WebUI.h
// Header of WebUI.c // Header of WebUI.c
#ifndef SE_WEBUI_H
#define SE_WEBUI_H
#define WU_PASSWORD_NOCHANGE "********" #define WU_PASSWORD_NOCHANGE "********"
#define WU_CONTEXT_EXPIRE 600000 #define WU_CONTEXT_EXPIRE 600000
@ -143,3 +146,4 @@ WEBUI *WuNewWebUI(CEDAR *cedar);
WU_WEBPAGE *WuGetPage(char *target, WEBUI *wu); WU_WEBPAGE *WuGetPage(char *target, WEBUI *wu);
void WuFreeWebPage(WU_WEBPAGE *page); void WuFreeWebPage(WU_WEBPAGE *page);
#endif // SE_WEBUI_H

View File

@ -111,8 +111,8 @@
// Win32Com.h // Win32Com.h
// Header of Win32Com.c // Header of Win32Com.c
#ifndef WIN32COM_H #ifndef SE_WIN32COM_H
#define WIN32COM_H #define SE_WIN32COM_H
#ifdef WIN32COM_CPP #ifdef WIN32COM_CPP
@ -425,4 +425,4 @@ public:
#endif // WIN32COM_H #endif // SE_WIN32COM_H

View File

@ -111,8 +111,8 @@
// Wpc.h // Wpc.h
// Header of Wpc.c // Header of Wpc.c
#ifndef WPC_H #ifndef SE_WPC_H
#define WPC_H #define SE_WPC_H
// Constant // Constant
#define WPC_HTTP_POST_NAME "POST" // POST #define WPC_HTTP_POST_NAME "POST" // POST
@ -234,6 +234,6 @@ PACK *WpcCallEx2(char *url, INTERNET_SETTING *setting, UINT timeout_connect, UIN
char *additional_header_name, char *additional_header_value, char *sni_string); char *additional_header_name, char *additional_header_value, char *sni_string);
bool IsProxyPrivateIp(INTERNET_SETTING *s); bool IsProxyPrivateIp(INTERNET_SETTING *s);
#endif // WPC_H #endif // SE_WPC_H

View File

@ -26,8 +26,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#ifndef _BITTYPES_H #ifndef _SE_BITTYPES_H
#define _BITTYPES_H #define _SE_BITTYPES_H
#ifndef HAVE_U_INT8_T #ifndef HAVE_U_INT8_T

View File

@ -111,8 +111,8 @@
// Cfg.h // Cfg.h
// Header of Cfg.c // Header of Cfg.c
#ifndef CFG_H #ifndef SE_CFG_H
#define CFG_H #define SE_CFG_H
// Macro // Macro
//#define CHECK_CFG_NAME_EXISTS // Check duplication of the existing name //#define CHECK_CFG_NAME_EXISTS // Check duplication of the existing name
@ -271,7 +271,7 @@ bool CfgGetIp(FOLDER *f, char *name, struct IP *ip);
ITEM *CfgAddIp(FOLDER *f, char *name, struct IP *ip); ITEM *CfgAddIp(FOLDER *f, char *name, struct IP *ip);
#endif #endif
#endif // CFG_H #endif // SE_CFG_H

View File

@ -23,7 +23,7 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// //
// You should have received a copy of the GNU General Public License version 2 // You should have received a copy of the GNU Gener0al Public License version 2
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// //
@ -111,8 +111,8 @@
// Encrypt.h // Encrypt.h
// Header of Encrypt.c // Header of Encrypt.c
#ifndef ENCRYPT_H #ifndef SE_ENCRYPT_H
#define ENCRYPT_H #define SE_ENCRYPT_H
// Function of OpenSSL // Function of OpenSSL
void RAND_Init_For_SoftEther(); void RAND_Init_For_SoftEther();
@ -589,5 +589,5 @@ void DisableIntelAesAccel();
#endif // ENCRYPT_C #endif // ENCRYPT_C
#endif // ENCRYPT_H #endif // SE_ENCRYPT_H

View File

@ -111,8 +111,8 @@
// FileIO.h // FileIO.h
// Header of FileIO.c // Header of FileIO.c
#ifndef FILEIO_H #ifndef SE_FILEIO_H
#define FILEIO_H #define SE_FILEIO_H
// Constant // Constant
#define HAMCORE_DIR_NAME "hamcore" #define HAMCORE_DIR_NAME "hamcore"
@ -384,7 +384,7 @@ bool IsFileWriteLocked(char *name);
bool IsInLines(BUF *buf, char *str, bool instr); bool IsInLines(BUF *buf, char *str, bool instr);
bool IsInLinesFile(wchar_t *filename, char *str, bool instr); bool IsInLinesFile(wchar_t *filename, char *str, bool instr);
#endif // FILEIO_H #endif // SE_FILEIO_H

View File

@ -111,8 +111,8 @@
// Internat.h // Internat.h
// Header of Internat.c // Header of Internat.c
#ifndef INTERNAT_H #ifndef SE_INTERNAT_H
#define INTERNAT_H #define SE_INTERNAT_H
// String token // String token
struct UNI_TOKEN_LIST struct UNI_TOKEN_LIST
@ -248,7 +248,7 @@ void *IconvStrToWideInternal();
int IconvFreeInternal(void *d); int IconvFreeInternal(void *d);
#endif // OS_UNIX #endif // OS_UNIX
#endif // INTERNAT_H #endif // SE_INTERNAT_H

View File

@ -108,8 +108,8 @@
// test has been passed before release this source code. // test has been passed before release this source code.
#ifndef KERNEL_H #ifndef SE_KERNEL_H
#define KERNEL_H #define SE_KERNEL_H
// Memory usage information // Memory usage information
struct MEMINFO struct MEMINFO
@ -280,5 +280,5 @@ void StopThreadList(LIST *o);
void WaitAllThreadsWillBeStopped(LIST *o); void WaitAllThreadsWillBeStopped(LIST *o);
UINT GetNumberOfCpu(); UINT GetNumberOfCpu();
#endif // KERNEL_H #endif // SE_KERNEL_H

View File

@ -111,8 +111,8 @@
// MayaType.h // MayaType.h
// Mayaqua Kernel type declaration header file // Mayaqua Kernel type declaration header file
#ifndef MAYATYPE_H #ifndef SE_MAYATYPE_H
#define MAYATYPE_H #define SE_MAYATYPE_H
// Check whether the windows.h header is included // Check whether the windows.h header is included
#ifndef WINDOWS_H #ifndef WINDOWS_H
@ -586,5 +586,5 @@ typedef struct IKE_HEADER IKE_HEADER;
#endif // MAYATYPE_H #endif // SE_MAYATYPE_H

View File

@ -111,8 +111,8 @@
// Mayaqua.h // Mayaqua.h
// Mayaqua Kernel header file // Mayaqua Kernel header file
#ifndef MAYAQUA_H #ifndef SE_MAYAQUA_H
#define MAYAQUA_H #define SE_MAYAQUA_H
// PenCore.dll related // PenCore.dll related
#define PENCORE_DLL_NAME "|PenCore.dll" #define PENCORE_DLL_NAME "|PenCore.dll"
@ -624,6 +624,6 @@ USHORT CalcChecksum16(void *buf, UINT size);
#endif #endif
#endif // MAYAQUA_H #endif // SE_MAYAQUA_H

View File

@ -111,8 +111,8 @@
// Memory.h // Memory.h
// Header of Memory.c // Header of Memory.c
#ifndef MEMORY_H #ifndef SE_MEMORY_H
#define MEMORY_H #define SE_MEMORY_H
// MallocFast (not implemented) // MallocFast (not implemented)
#define MallocFast Malloc #define MallocFast Malloc
@ -477,5 +477,5 @@ void CleanupSharedBuffer(SHARED_BUFFER *b);
void AppendBufUtf8(BUF *b, wchar_t *str); void AppendBufUtf8(BUF *b, wchar_t *str);
void AppendBufStr(BUF *b, char *str); void AppendBufStr(BUF *b, char *str);
#endif // MEMORY_H #endif // SE_MEMORY_H

View File

@ -111,8 +111,8 @@
// Network.h // Network.h
// Header of Network.c // Header of Network.c
#ifndef NETWORK_H #ifndef SE_NETWORK_H
#define NETWORK_H #define SE_NETWORK_H
// Dynamic Value // Dynamic Value
struct DYN_VALUE struct DYN_VALUE
@ -1684,5 +1684,5 @@ UINT64 GetDynValueOrDefault(char *name, UINT64 default_value, UINT64 min_value,
UINT64 GetDynValueOrDefaultSafe(char *name, UINT64 default_value); UINT64 GetDynValueOrDefaultSafe(char *name, UINT64 default_value);
#endif // NETWORK_H #endif // SE_NETWORK_H

View File

@ -111,8 +111,8 @@
// OS.h // OS.h
// Header of OS.c // Header of OS.c
#ifndef OS_H #ifndef SE_OS_H
#define OS_H #define SE_OS_H
// Function prototype // Function prototype
char *OsTypeToStr(UINT type); char *OsTypeToStr(UINT type);
@ -242,5 +242,5 @@ typedef struct OS_DISPATCH_TABLE
#include <Mayaqua/Unix.h> #include <Mayaqua/Unix.h>
#endif // OS_WIN32 #endif // OS_WIN32
#endif // OS_H #endif // SE_OS_H

View File

@ -111,8 +111,8 @@
// Object.h // Object.h
// Header of Object.c // Header of Object.c
#ifndef OBJECT_H #ifndef SE_OBJECT_H
#define OBJECT_H #define SE_OBJECT_H
// Constants // Constants
@ -211,5 +211,5 @@ bool WaitEx(EVENT *e, UINT timeout, volatile bool *cancel);
void CheckDeadLock(LOCK *lock, UINT timeout, char *name); void CheckDeadLock(LOCK *lock, UINT timeout, char *name);
void CheckDeadLockThread(THREAD *t, void *param); void CheckDeadLockThread(THREAD *t, void *param);
#endif // OBJECT_H #endif // SE_OBJECT_H

View File

@ -111,8 +111,8 @@
// Pack.h // Pack.h
// Header of Pack.c // Header of Pack.c
#ifndef PACK_H #ifndef SE_PACK_H
#define PACK_H #define SE_PACK_H
// Constant // Constant
#ifdef CPU_64 #ifdef CPU_64
@ -259,4 +259,4 @@ bool PackGetData2(PACK *p, char *name, void *data, UINT size);
bool PackGetDataEx2(PACK *p, char *name, void *data, UINT size, UINT index); bool PackGetDataEx2(PACK *p, char *name, void *data, UINT size, UINT index);
bool PackIsValueExists(PACK *p, char *name); bool PackIsValueExists(PACK *p, char *name);
#endif // PACK_H #endif // SE_PACK_H

View File

@ -111,8 +111,8 @@
// Secure.h // Secure.h
// Header of Secure.c // Header of Secure.c
#ifndef SECURE_H #ifndef SE_SECURE_H
#define SECURE_H #define SE_SECURE_H
// Constant // Constant
#define MAX_SEC_DATA_SIZE 4096 #define MAX_SEC_DATA_SIZE 4096
@ -324,4 +324,4 @@ typedef struct SEC_DATA_WIN32
#endif // SECURE_C #endif // SECURE_C
#endif // SECURE_H #endif // SE_SECURE_H

View File

@ -111,8 +111,8 @@
// Str.h // Str.h
// Header of Str.c // Header of Str.c
#ifndef STR_H #ifndef SE_STR_H
#define STR_H #define SE_STR_H
// String token // String token
struct TOKEN_LIST struct TOKEN_LIST
@ -250,5 +250,5 @@ void NormalizeIntListStr(char *dst, UINT dst_size, char *src, bool sorted, char
void ClearStr(char *str, UINT str_size); void ClearStr(char *str, UINT str_size);
void SetStrCaseAccordingToBits(char *str, UINT bits); void SetStrCaseAccordingToBits(char *str, UINT bits);
#endif // STR_H #endif // SE_STR_H

View File

@ -111,8 +111,8 @@
// Table.h // Table.h
// Header of Table.c // Header of Table.c
#ifndef TABLE_H #ifndef SE_TABLE_H
#define TABLE_H #define SE_TABLE_H
#define UNICODE_CACHE_FILE L".unicode_cache_%s.dat" #define UNICODE_CACHE_FILE L".unicode_cache_%s.dat"
@ -208,7 +208,7 @@ UINT GetCurrentLangId();
void GetCurrentOsLang(LANGLIST *e); void GetCurrentOsLang(LANGLIST *e);
UINT GetCurrentOsLangId(); UINT GetCurrentOsLangId();
#endif // TABLE_H #endif // SE_TABLE_H

View File

@ -111,8 +111,8 @@
// TcpIp.h // TcpIp.h
// Header of TcpIp.c // Header of TcpIp.c
#ifndef TCPIP_H #ifndef SE_TCPIP_H
#define TCPIP_H #define SE_TCPIP_H
#ifdef OS_WIN32 #ifdef OS_WIN32
#pragma pack(push, 1) #pragma pack(push, 1)
@ -941,6 +941,6 @@ bool NormalizeClasslessRouteTableStr(char *dst, UINT dst_size, char *src);
#pragma pack(pop) #pragma pack(pop)
#endif // OS_WIN32 #endif // OS_WIN32
#endif // TCPIP_H #endif // SE_TCPIP_H

View File

@ -111,8 +111,8 @@
// Tick64.h // Tick64.h
// Header of Tick64.c // Header of Tick64.c
#ifndef TICK64_H #ifndef SE_TICK64_H
#define TICK64_H #define SE_TICK64_H
// Maximum number of correction list entries // Maximum number of correction list entries
#define MAX_ADJUST_TIME 1024 #define MAX_ADJUST_TIME 1024
@ -154,7 +154,7 @@ UINT64 Tick64ToTime64(UINT64 tick);
UINT64 TickToTime(UINT64 tick); UINT64 TickToTime(UINT64 tick);
UINT64 TickHighres64(); UINT64 TickHighres64();
#endif // TICK64_H #endif // SE_TICK64_H

View File

@ -111,8 +111,8 @@
// Tracking.h // Tracking.h
// Header of Tracking.c // Header of Tracking.c
#ifndef TRACKING_H #ifndef SE_TRACKING_H
#define TRACKING_H #define SE_TRACKING_H
// The number of array // The number of array
#define TRACKING_NUM_ARRAY 1048576 #define TRACKING_NUM_ARRAY 1048576
@ -192,6 +192,6 @@ void TrackingEnable();
void TrackingDisable(); void TrackingDisable();
bool IsTrackingEnabled(); bool IsTrackingEnabled();
#endif // TRACKING_H #endif // SE_TRACKING_H

View File

@ -99,8 +99,8 @@
// test has been passed before release this source code. // test has been passed before release this source code.
#ifndef TUNTAP_H #ifndef SE_TUNTAP_H
#define TUNTAP_H #define SE_TUNTAP_H
#ifdef UNIX_LINUX #ifdef UNIX_LINUX
@ -322,4 +322,4 @@ struct tuninfo {
#endif // UNIX_LINUX #endif // UNIX_LINUX
#endif // TUNTAP_H #endif // SE_TUNTAP_H

View File

@ -111,8 +111,8 @@
// NDIS5.h // NDIS5.h
// Header of NDIS5.c // Header of NDIS5.c
#ifndef NDIS5_H #ifndef SE_NDIS5_H
#define NDIS5_H #define SE_NDIS5_H
// Win32 DDK related // Win32 DDK related
#ifndef CPU_64 #ifndef CPU_64
@ -291,5 +291,5 @@ void NeoSetConnectState(BOOL connected);
BOOL NeoNdisOnOpen(IRP *irp, IO_STACK_LOCATION *stack); BOOL NeoNdisOnOpen(IRP *irp, IO_STACK_LOCATION *stack);
BOOL NeoNdisOnClose(IRP *irp, IO_STACK_LOCATION *stack); BOOL NeoNdisOnClose(IRP *irp, IO_STACK_LOCATION *stack);
#endif // NDIS5_H #endif // SE_NDIS5_H

View File

@ -111,8 +111,8 @@
// Neo.h // Neo.h
// Header of Neo.c // Header of Neo.c
#ifndef NEO_H #ifndef SE_NEO_H
#define NEO_H #define SE_NEO_H
// Identification string (NDIS) // Identification string (NDIS)
@ -332,7 +332,7 @@ void NeoReset(NEO_EVENT *event);
#endif // NEO_DEVICE_DRIVER #endif // NEO_DEVICE_DRIVER
#endif // NEO_H #endif // SE_NEO_H