mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Mayaqua/Network: remove unused functions
[src/Mayaqua/Network.c:7831]: (style) The function 'CheckSubnetLength6' is never used. [src/Mayaqua/Network.c:14663]: (style) The function 'CheckTCPPortThread' is never used. [src/Mayaqua/Network.c:6876]: (style) The function 'CheckUnicastAddress' is never used. [src/Mayaqua/Network.c:8220]: (style) The function 'CompareTcpTable' is never used. [src/Mayaqua/Network.c:7825]: (style) The function 'CopyIP' is never used. [src/Mayaqua/Network.c:18436]: (style) The function 'DelSockList' is never used. [src/Mayaqua/Network.c:549]: (style) The function 'DisableRUDPRegisterGlobally' is never used. [src/Mayaqua/Network.c:12161]: (style) The function 'DisableUDPChecksum' is never used. [src/Mayaqua/Network.c:6679]: (style) The function 'GenerateEui64GlobalAddress' is never used. [src/Mayaqua/Network.c:6953]: (style) The function 'GenerateMulticastMacAddress6' is never used. [src/Mayaqua/Network.c:7055]: (style) The function 'GetAllFilledAddress6' is never used. [src/Mayaqua/Network.c:11415]: (style) The function 'GetBestRouteEntryFromRouteTable' is never used. [src/Mayaqua/Network.c:16738]: (style) The function 'GetIP46Any4' is never used. [src/Mayaqua/Network.c:16771]: (style) The function 'GetIP46Any6' is never used. [src/Mayaqua/Network.c:16250]: (style) The function 'GetMachineIp' is never used. [src/Mayaqua/Network.c:12192]: (style) The function 'GetNewAvailableUdpPortRand' is never used. [src/Mayaqua/Network.c:11073]: (style) The function 'GetNumWaitThread' is never used. [src/Mayaqua/Network.c:561]: (style) The function 'GetSimpleHostname' is never used. [src/Mayaqua/Network.c:22688]: (style) The function 'GetSniNameFromPreSslConnection' is never used. [src/Mayaqua/Network.c:15761]: (style) The function 'GetSocketBufferSize' is never used. [src/Mayaqua/Network.c:6924]: (style) The function 'GetSoliciationMulticastAddr6' is never used. [src/Mayaqua/Network.c:7842]: (style) The function 'GetTcpProcessIdFromSocket' is never used. [src/Mayaqua/Network.c:7871]: (style) The function 'GetTcpProcessIdFromSocketReverse' is never used. [src/Mayaqua/Network.c:20709]: (style) The function 'GetUdpListenerPortList' is never used. [src/Mayaqua/Network.c:21971]: (style) The function 'HttpSendServerError' is never used. [src/Mayaqua/Network.c:7119]: (style) The function 'IPNot4' is never used. [src/Mayaqua/Network.c:7134]: (style) The function 'IPOr4' is never used. [src/Mayaqua/Network.c:17392]: (style) The function 'IPToStr128' is never used. [src/Mayaqua/Network.c:12182]: (style) The function 'InitAsyncSocket' is never used. [src/Mayaqua/Network.c:18091]: (style) The function 'IsIPLocalOrPrivate' is never used. [src/Mayaqua/Network.c:6813]: (style) The function 'IsInSameLocalNetworkToMe4' is never used. [src/Mayaqua/Network.c:467]: (style) The function 'IsInStrByStrList' is never used. [src/Mayaqua/Network.c:504]: (style) The function 'IsIpInStrList' is never used. [src/Mayaqua/Network.c:18793]: (style) The function 'IsIpStr46' is never used. [src/Mayaqua/Network.c:738]: (style) The function 'IsMacAddressLocal' is never used. [src/Mayaqua/Network.c:8495]: (style) The function 'IsNetworkAddress' is never used. [src/Mayaqua/Network.c:7803]: (style) The function 'IsSameIPVer' is never used. [src/Mayaqua/Network.c:14140]: (style) The function 'Listen6' is never used. [src/Mayaqua/Network.c:5792]: (style) The function 'ListenAnyPortEx' is never used. [src/Mayaqua/Network.c:11938]: (style) The function 'LockOpenSSL' is never used. [src/Mayaqua/Network.c:12266]: (style) The function 'NewRandPortByMachineAndExePath' is never used. [src/Mayaqua/Network.c:8191]: (style) The function 'PrintTcpTableList' is never used. [src/Mayaqua/Network.c:4773]: (style) The function 'RUDPGetRandPortNumber' is never used. [src/Mayaqua/Network.c:1637]: (style) The function 'RUDPSetSourceIpValidationForceDisable' is never used. [src/Mayaqua/Network.c:11157]: (style) The function 'RenewDhcp' is never used. [src/Mayaqua/Network.c:12057]: (style) The function 'SendTo6' is never used. [src/Mayaqua/Network.c:8691]: (style) The function 'SetNetworkReleaseMode' is never used. [src/Mayaqua/Network.c:18903]: (style) The function 'StrToMask46' is never used. [src/Mayaqua/Network.c:20013]: (style) The function 'UdpListenerGetPublicPortList' is never used. [src/Mayaqua/Network.c:20608]: (style) The function 'UdpListenerSendPacket' is never used. [src/Mayaqua/Network.c:17545]: (style) The function 'UniStrToIP' is never used. [src/Mayaqua/Network.c:8746]: (style) The function 'UnixCompareRouteEntryByMetric' is never used. [src/Mayaqua/Network.c:8736]: (style) The function 'UnixIpForwardRowToRouteEntry' is never used. [src/Mayaqua/Network.c:8741]: (style) The function 'UnixRouteEntryToIpForwardRow' is never used. [src/Mayaqua/Network.c:11944]: (style) The function 'UnlockOpenSSL' is never used. [src/Mayaqua/Network.c:7787]: (style) The function 'FreeTcpTableList' is never used. [src/Mayaqua/Network.c:16024]: (style) The function 'GetIP46' is never used. [src/Mayaqua/Network.c:7488]: (style) The function 'GetTcpTableFromEndPoint' is never used. [src/Mayaqua/Network.c:7777]: (style) The function 'GetTcpTableList' is never used. [src/Mayaqua/Network.c:6865]: (style) The function 'IPOr6' is never used. [src/Mayaqua/Network.c:6642]: (style) The function 'IsNetworkAddress6' is never used. [src/Mayaqua/Network.c:17942]: (style) The function 'StrToMask4' is never used. [src/Mayaqua/Network.c:8296]: (style) The function 'UnixRenewDhcp' is never used. [src/Mayaqua/Network.c:9337]: (style) The function 'Win32RenewDhcp' is never used.
This commit is contained in:
parent
1e8cf1dc5d
commit
6a1876ad06
File diff suppressed because it is too large
Load Diff
@ -1019,7 +1019,6 @@ struct HTTP_HEADER
|
|||||||
int GetCurrentTimezone();
|
int GetCurrentTimezone();
|
||||||
|
|
||||||
bool GetSniNameFromSslPacket(UCHAR *packet_buf, UINT packet_size, char *sni, UINT sni_size);
|
bool GetSniNameFromSslPacket(UCHAR *packet_buf, UINT packet_size, char *sni, UINT sni_size);
|
||||||
bool GetSniNameFromPreSslConnection(SOCK *s, char *sni, UINT sni_size);
|
|
||||||
|
|
||||||
void SetDhParam(DH_CTX *dh);
|
void SetDhParam(DH_CTX *dh);
|
||||||
|
|
||||||
@ -1065,8 +1064,6 @@ bool HttpClientSend(SOCK *s, PACK *p);
|
|||||||
PACK *HttpServerRecv(SOCK *s);
|
PACK *HttpServerRecv(SOCK *s);
|
||||||
PACK *HttpClientRecv(SOCK *s);
|
PACK *HttpClientRecv(SOCK *s);
|
||||||
|
|
||||||
bool HttpSendServerError(SOCK *s, char *target);
|
|
||||||
|
|
||||||
bool GetIPViaDnsProxyForJapanFlets(IP *ip_ret, char *hostname, bool ipv6, UINT timeout, bool *cancel, char *dns_proxy_hostname);
|
bool GetIPViaDnsProxyForJapanFlets(IP *ip_ret, char *hostname, bool ipv6, UINT timeout, bool *cancel, char *dns_proxy_hostname);
|
||||||
bool GetDnsProxyIPAddressForJapanBFlets(IP *ip_ret, UINT timeout, bool *cancel);
|
bool GetDnsProxyIPAddressForJapanBFlets(IP *ip_ret, UINT timeout, bool *cancel);
|
||||||
BUF *QueryFileByUdpForJapanBFlets(UINT timeout, bool *cancel);
|
BUF *QueryFileByUdpForJapanBFlets(UINT timeout, bool *cancel);
|
||||||
@ -1127,8 +1124,6 @@ void RUDPBulkSend(RUDP_STACK *r, RUDP_SESSION *se, void *data, UINT data_size);
|
|||||||
bool RUDPProcessBulkRecvPacket(RUDP_STACK *r, RUDP_SESSION *se, void *recv_data, UINT recv_size);
|
bool RUDPProcessBulkRecvPacket(RUDP_STACK *r, RUDP_SESSION *se, void *recv_data, UINT recv_size);
|
||||||
UINT RUDPCalcBestMssForBulk(RUDP_STACK *r, RUDP_SESSION *se);
|
UINT RUDPCalcBestMssForBulk(RUDP_STACK *r, RUDP_SESSION *se);
|
||||||
bool IsIPLocalHostOrMySelf(IP *ip);
|
bool IsIPLocalHostOrMySelf(IP *ip);
|
||||||
UINT RUDPGetRandPortNumber(UCHAR rand_port_id);
|
|
||||||
void RUDPSetSourceIpValidationForceDisable(bool b);
|
|
||||||
bool RUDPIsIpInValidateList(RUDP_STACK *r, IP *ip);
|
bool RUDPIsIpInValidateList(RUDP_STACK *r, IP *ip);
|
||||||
void RUDPAddIpToValidateList(RUDP_STACK *r, IP *ip);
|
void RUDPAddIpToValidateList(RUDP_STACK *r, IP *ip);
|
||||||
|
|
||||||
@ -1163,7 +1158,6 @@ void Win32CleanupSockEvent(SOCK_EVENT *event);
|
|||||||
bool Win32WaitSockEvent(SOCK_EVENT *event, UINT timeout);
|
bool Win32WaitSockEvent(SOCK_EVENT *event, UINT timeout);
|
||||||
bool Win32GetDefaultDns(IP *ip, char *domain, UINT size);
|
bool Win32GetDefaultDns(IP *ip, char *domain, UINT size);
|
||||||
bool Win32GetDnsSuffix(char *domain, UINT size);
|
bool Win32GetDnsSuffix(char *domain, UINT size);
|
||||||
void Win32RenewDhcp();
|
|
||||||
void Win32RenewDhcp9x(UINT if_id);
|
void Win32RenewDhcp9x(UINT if_id);
|
||||||
void Win32ReleaseDhcp9x(UINT if_id, bool wait);
|
void Win32ReleaseDhcp9x(UINT if_id, bool wait);
|
||||||
void Win32FlushDnsCache();
|
void Win32FlushDnsCache();
|
||||||
@ -1198,9 +1192,6 @@ void UnixSelect(SOCKSET *set, UINT timeout, CANCEL *c1, CANCEL *c2);
|
|||||||
void UnixInitAsyncSocket(SOCK *sock);
|
void UnixInitAsyncSocket(SOCK *sock);
|
||||||
void UnixJoinSockToSockEvent(SOCK *sock, SOCK_EVENT *event);
|
void UnixJoinSockToSockEvent(SOCK *sock, SOCK_EVENT *event);
|
||||||
void UnixFreeAsyncSocket(SOCK *sock);
|
void UnixFreeAsyncSocket(SOCK *sock);
|
||||||
void UnixIpForwardRowToRouteEntry(ROUTE_ENTRY *entry, void *ip_forward_row);
|
|
||||||
void UnixRouteEntryToIpForwardRow(void *ip_forward_row, ROUTE_ENTRY *entry);
|
|
||||||
int UnixCompareRouteEntryByMetric(void *p1, void *p2);
|
|
||||||
ROUTE_TABLE *UnixGetRouteTable();
|
ROUTE_TABLE *UnixGetRouteTable();
|
||||||
bool UnixAddRouteEntry(ROUTE_ENTRY *e, bool *already_exists);
|
bool UnixAddRouteEntry(ROUTE_ENTRY *e, bool *already_exists);
|
||||||
void UnixDeleteRouteEntry(ROUTE_ENTRY *e);
|
void UnixDeleteRouteEntry(ROUTE_ENTRY *e);
|
||||||
@ -1214,7 +1205,6 @@ void UnixSetSockEvent(SOCK_EVENT *event);
|
|||||||
void UnixCleanupSockEvent(SOCK_EVENT *event);
|
void UnixCleanupSockEvent(SOCK_EVENT *event);
|
||||||
bool UnixWaitSockEvent(SOCK_EVENT *event, UINT timeout);
|
bool UnixWaitSockEvent(SOCK_EVENT *event, UINT timeout);
|
||||||
bool UnixGetDefaultDns(IP *ip);
|
bool UnixGetDefaultDns(IP *ip);
|
||||||
void UnixRenewDhcp();
|
|
||||||
void UnixNewPipe(int *pipe_read, int *pipe_write);
|
void UnixNewPipe(int *pipe_read, int *pipe_write);
|
||||||
void UnixWritePipe(int pipe_write);
|
void UnixWritePipe(int pipe_write);
|
||||||
void UnixDeletePipe(int p1, int p2);
|
void UnixDeletePipe(int p1, int p2);
|
||||||
@ -1244,20 +1234,15 @@ void IPToInAddr(struct in_addr *addr, IP *ip);
|
|||||||
void IPToInAddr6(struct in6_addr *addr, IP *ip);
|
void IPToInAddr6(struct in6_addr *addr, IP *ip);
|
||||||
bool StrToIP(IP *ip, char *str);
|
bool StrToIP(IP *ip, char *str);
|
||||||
UINT StrToIP32(char *str);
|
UINT StrToIP32(char *str);
|
||||||
bool UniStrToIP(IP *ip, wchar_t *str);
|
|
||||||
UINT UniStrToIP32(wchar_t *str);
|
UINT UniStrToIP32(wchar_t *str);
|
||||||
void IPToStr(char *str, UINT size, IP *ip);
|
void IPToStr(char *str, UINT size, IP *ip);
|
||||||
void IPToStr4(char *str, UINT size, IP *ip);
|
void IPToStr4(char *str, UINT size, IP *ip);
|
||||||
void IPToStr32(char *str, UINT size, UINT ip);
|
void IPToStr32(char *str, UINT size, UINT ip);
|
||||||
void IPToStr128(char *str, UINT size, UCHAR *ip_bytes);
|
|
||||||
void IPToStr4or6(char *str, UINT size, UINT ip_4_uint, UCHAR *ip_6_bytes);
|
void IPToStr4or6(char *str, UINT size, UINT ip_4_uint, UCHAR *ip_6_bytes);
|
||||||
void IPToUniStr(wchar_t *str, UINT size, IP *ip);
|
void IPToUniStr(wchar_t *str, UINT size, IP *ip);
|
||||||
void IPToUniStr32(wchar_t *str, UINT size, UINT ip);
|
void IPToUniStr32(wchar_t *str, UINT size, UINT ip);
|
||||||
bool GetIPEx(IP *ip, char *hostname, bool ipv6);
|
bool GetIPEx(IP *ip, char *hostname, bool ipv6);
|
||||||
bool GetIP46(IP *ip4, IP *ip6, char *hostname);
|
|
||||||
bool GetIP46Ex(IP *ip4, IP *ip6, char *hostname, UINT timeout, bool *cancel);
|
bool GetIP46Ex(IP *ip4, IP *ip6, char *hostname, UINT timeout, bool *cancel);
|
||||||
bool GetIP46Any4(IP *ip, char *hostname);
|
|
||||||
bool GetIP46Any6(IP *ip, char *hostname);
|
|
||||||
bool GetIP(IP *ip, char *hostname);
|
bool GetIP(IP *ip, char *hostname);
|
||||||
bool GetIP4(IP *ip, char *hostname);
|
bool GetIP4(IP *ip, char *hostname);
|
||||||
bool GetIP6(IP *ip, char *hostname);
|
bool GetIP6(IP *ip, char *hostname);
|
||||||
@ -1277,7 +1262,6 @@ void GetHostNameThread(THREAD *t, void *p);
|
|||||||
void GetMachineName(char *name, UINT size);
|
void GetMachineName(char *name, UINT size);
|
||||||
void GetMachineNameEx(char *name, UINT size, bool no_load_hosts);
|
void GetMachineNameEx(char *name, UINT size, bool no_load_hosts);
|
||||||
bool GetMachineNameFromHosts(char *name, UINT size);
|
bool GetMachineNameFromHosts(char *name, UINT size);
|
||||||
void GetMachineIp(IP *ip);
|
|
||||||
void GetMachineHostName(char *name, UINT size);
|
void GetMachineHostName(char *name, UINT size);
|
||||||
void UINTToIP(IP *ip, UINT value);
|
void UINTToIP(IP *ip, UINT value);
|
||||||
UINT IPToUINT(IP *ip);
|
UINT IPToUINT(IP *ip);
|
||||||
@ -1291,7 +1275,6 @@ SOCK *ConnectEx3(char *hostname, UINT port, UINT timeout, bool *cancel_flag, cha
|
|||||||
SOCK *ConnectEx4(char *hostname, UINT port, UINT timeout, bool *cancel_flag, char *nat_t_svc_name, UINT *nat_t_error_code, bool try_start_ssl, bool ssl_no_tls, bool no_get_hostname, IP *ret_ip);
|
SOCK *ConnectEx4(char *hostname, UINT port, UINT timeout, bool *cancel_flag, char *nat_t_svc_name, UINT *nat_t_error_code, bool try_start_ssl, bool ssl_no_tls, bool no_get_hostname, IP *ret_ip);
|
||||||
SOCKET ConnectTimeoutIPv4(IP *ip, UINT port, UINT timeout, bool *cancel_flag);
|
SOCKET ConnectTimeoutIPv4(IP *ip, UINT port, UINT timeout, bool *cancel_flag);
|
||||||
void SetSocketSendRecvBufferSize(SOCKET s, UINT size);
|
void SetSocketSendRecvBufferSize(SOCKET s, UINT size);
|
||||||
UINT GetSocketBufferSize(SOCKET s, bool send);
|
|
||||||
bool SetSocketBufferSize(SOCKET s, bool send, UINT size);
|
bool SetSocketBufferSize(SOCKET s, bool send, UINT size);
|
||||||
UINT SetSocketBufferSizeWithBestEffort(SOCKET s, bool send, UINT size);
|
UINT SetSocketBufferSizeWithBestEffort(SOCKET s, bool send, UINT size);
|
||||||
void InitUdpSocketBufferSize(SOCKET s);
|
void InitUdpSocketBufferSize(SOCKET s);
|
||||||
@ -1301,7 +1284,6 @@ void Disconnect(SOCK *sock);
|
|||||||
SOCK *Listen(UINT port);
|
SOCK *Listen(UINT port);
|
||||||
SOCK *ListenEx(UINT port, bool local_only);
|
SOCK *ListenEx(UINT port, bool local_only);
|
||||||
SOCK *ListenEx2(UINT port, bool local_only, bool enable_ca, IP *listen_ip);
|
SOCK *ListenEx2(UINT port, bool local_only, bool enable_ca, IP *listen_ip);
|
||||||
SOCK *Listen6(UINT port);
|
|
||||||
SOCK *ListenEx6(UINT port, bool local_only);
|
SOCK *ListenEx6(UINT port, bool local_only);
|
||||||
SOCK *ListenEx62(UINT port, bool local_only, bool enable_ca);
|
SOCK *ListenEx62(UINT port, bool local_only, bool enable_ca);
|
||||||
SOCK *Accept(SOCK *sock);
|
SOCK *Accept(SOCK *sock);
|
||||||
@ -1330,7 +1312,6 @@ void CleanupCancel(CANCEL *c);
|
|||||||
void Cancel(CANCEL *c);
|
void Cancel(CANCEL *c);
|
||||||
void Select(SOCKSET *set, UINT timeout, CANCEL *c1, CANCEL *c2);
|
void Select(SOCKSET *set, UINT timeout, CANCEL *c1, CANCEL *c2);
|
||||||
void SetWantToUseCipher(SOCK *sock, char *name);
|
void SetWantToUseCipher(SOCK *sock, char *name);
|
||||||
void InitAsyncSocket(SOCK *sock);
|
|
||||||
SOCK *NewUDP(UINT port);
|
SOCK *NewUDP(UINT port);
|
||||||
SOCK *NewUDPEx(UINT port, bool ipv6);
|
SOCK *NewUDPEx(UINT port, bool ipv6);
|
||||||
SOCK *NewUDPEx2(UINT port, bool ipv6, IP *ip);
|
SOCK *NewUDPEx2(UINT port, bool ipv6, IP *ip);
|
||||||
@ -1341,12 +1322,8 @@ SOCK *NewUDPEx2Rand(bool ipv6, IP *ip, void *rand_seed, UINT rand_seed_size, UIN
|
|||||||
SOCK *NewUDPEx2RandMachineAndExePath(bool ipv6, IP *ip, UINT num_retry, UCHAR rand_port_id);
|
SOCK *NewUDPEx2RandMachineAndExePath(bool ipv6, IP *ip, UINT num_retry, UCHAR rand_port_id);
|
||||||
void ClearSockDfBit(SOCK *s);
|
void ClearSockDfBit(SOCK *s);
|
||||||
void SetRawSockHeaderIncludeOption(SOCK *s, bool enable);
|
void SetRawSockHeaderIncludeOption(SOCK *s, bool enable);
|
||||||
UINT GetNewAvailableUdpPortRand();
|
|
||||||
UINT NewRandPortByMachineAndExePath(UINT start_port, UINT end_port, UINT additional_int);
|
|
||||||
void DisableUDPChecksum(SOCK *s);
|
|
||||||
UINT SendTo(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size);
|
UINT SendTo(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size);
|
||||||
UINT SendToEx(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size, bool broadcast);
|
UINT SendToEx(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size, bool broadcast);
|
||||||
UINT SendTo6(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size);
|
|
||||||
UINT SendTo6Ex(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size, bool broadcast);
|
UINT SendTo6Ex(SOCK *sock, IP *dest_addr, UINT dest_port, void *data, UINT size, bool broadcast);
|
||||||
UINT RecvFrom(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size);
|
UINT RecvFrom(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size);
|
||||||
UINT RecvFrom6(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size);
|
UINT RecvFrom6(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size);
|
||||||
@ -1354,7 +1331,6 @@ void SetTimeout(SOCK *sock, UINT timeout);
|
|||||||
UINT GetTimeout(SOCK *sock);
|
UINT GetTimeout(SOCK *sock);
|
||||||
bool CheckTCPPort(char *hostname, UINT port);
|
bool CheckTCPPort(char *hostname, UINT port);
|
||||||
bool CheckTCPPortEx(char *hostname, UINT port, UINT timeout);
|
bool CheckTCPPortEx(char *hostname, UINT port, UINT timeout);
|
||||||
void CheckTCPPortThread(THREAD *thread, void *param);
|
|
||||||
ROUTE_TABLE *GetRouteTable();
|
ROUTE_TABLE *GetRouteTable();
|
||||||
void FreeRouteTable(ROUTE_TABLE *t);
|
void FreeRouteTable(ROUTE_TABLE *t);
|
||||||
bool AddRouteEntryEx(ROUTE_ENTRY *e, bool *already_exists);
|
bool AddRouteEntryEx(ROUTE_ENTRY *e, bool *already_exists);
|
||||||
@ -1365,7 +1341,6 @@ void FreeEnumVLan(char **s);
|
|||||||
UINT GetVLanInterfaceID(char *tag_name);
|
UINT GetVLanInterfaceID(char *tag_name);
|
||||||
ROUTE_ENTRY *GetBestRouteEntry(IP *ip);
|
ROUTE_ENTRY *GetBestRouteEntry(IP *ip);
|
||||||
ROUTE_ENTRY *GetBestRouteEntryEx(IP *ip, UINT exclude_if_id);
|
ROUTE_ENTRY *GetBestRouteEntryEx(IP *ip, UINT exclude_if_id);
|
||||||
ROUTE_ENTRY *GetBestRouteEntryFromRouteTable(ROUTE_TABLE *table, IP *ip);
|
|
||||||
ROUTE_ENTRY *GetBestRouteEntryFromRouteTableEx(ROUTE_TABLE *table, IP *ip, UINT exclude_if_id);
|
ROUTE_ENTRY *GetBestRouteEntryFromRouteTableEx(ROUTE_TABLE *table, IP *ip, UINT exclude_if_id);
|
||||||
void FreeRouteEntry(ROUTE_ENTRY *e);
|
void FreeRouteEntry(ROUTE_ENTRY *e);
|
||||||
void JoinSockToSockEvent(SOCK *sock, SOCK_EVENT *event);
|
void JoinSockToSockEvent(SOCK *sock, SOCK_EVENT *event);
|
||||||
@ -1379,7 +1354,6 @@ UINT SetIP32(UCHAR a1, UCHAR a2, UCHAR a3, UCHAR a4);
|
|||||||
bool GetDefaultDns(IP *ip);
|
bool GetDefaultDns(IP *ip);
|
||||||
bool GetDomainName(char *name, UINT size);
|
bool GetDomainName(char *name, UINT size);
|
||||||
bool UnixGetDomainName(char *name, UINT size);
|
bool UnixGetDomainName(char *name, UINT size);
|
||||||
void RenewDhcp();
|
|
||||||
void AcceptInit(SOCK *s);
|
void AcceptInit(SOCK *s);
|
||||||
void AcceptInitEx(SOCK *s, bool no_lookup_hostname);
|
void AcceptInitEx(SOCK *s, bool no_lookup_hostname);
|
||||||
void DisableGetHostNameWhenAcceptInit();
|
void DisableGetHostNameWhenAcceptInit();
|
||||||
@ -1397,7 +1371,6 @@ bool GetHostCache(char *hostname, UINT size, IP *ip);
|
|||||||
bool IsSubnetMask(IP *ip);
|
bool IsSubnetMask(IP *ip);
|
||||||
bool IsSubnetMask4(IP *ip);
|
bool IsSubnetMask4(IP *ip);
|
||||||
bool IsSubnetMask32(UINT ip);
|
bool IsSubnetMask32(UINT ip);
|
||||||
bool IsNetworkAddress(IP *ip, IP *mask);
|
|
||||||
bool IsNetworkAddress4(IP *ip, IP *mask);
|
bool IsNetworkAddress4(IP *ip, IP *mask);
|
||||||
bool IsNetworkAddress32(UINT ip, UINT mask);
|
bool IsNetworkAddress32(UINT ip, UINT mask);
|
||||||
bool IsHostIPAddress4(IP *ip);
|
bool IsHostIPAddress4(IP *ip);
|
||||||
@ -1410,7 +1383,6 @@ void IntToSubnetMask4(IP *ip, UINT i);
|
|||||||
bool GetNetBiosName(char *name, UINT size, IP *ip);
|
bool GetNetBiosName(char *name, UINT size, IP *ip);
|
||||||
bool NormalizeMacAddress(char *dst, UINT size, char *src);
|
bool NormalizeMacAddress(char *dst, UINT size, char *src);
|
||||||
SOCKLIST *NewSockList();
|
SOCKLIST *NewSockList();
|
||||||
void DelSockList(SOCKLIST *sl, SOCK *s);
|
|
||||||
void StopSockList(SOCKLIST *sl);
|
void StopSockList(SOCKLIST *sl);
|
||||||
void FreeSockList(SOCKLIST *sl);
|
void FreeSockList(SOCKLIST *sl);
|
||||||
bool IsIPv6Supported();
|
bool IsIPv6Supported();
|
||||||
@ -1424,13 +1396,6 @@ void DelIpClient(IP *ip);
|
|||||||
IP_CLIENT *SearchIpClient(IP *ip);
|
IP_CLIENT *SearchIpClient(IP *ip);
|
||||||
UINT GetNumIpClient(IP *ip);
|
UINT GetNumIpClient(IP *ip);
|
||||||
void SetLinuxArpFilter();
|
void SetLinuxArpFilter();
|
||||||
LIST *GetTcpTableList();
|
|
||||||
void FreeTcpTableList(LIST *o);
|
|
||||||
int CompareTcpTable(void *p1, void *p2);
|
|
||||||
void PrintTcpTableList(LIST *o);
|
|
||||||
TCPTABLE *GetTcpTableFromEndPoint(LIST *o, IP *local_ip, UINT local_port, IP *remote_ip, UINT remote_port);
|
|
||||||
UINT GetTcpProcessIdFromSocket(SOCK *s);
|
|
||||||
UINT GetTcpProcessIdFromSocketReverse(SOCK *s);
|
|
||||||
int connect_timeout(SOCKET s, struct sockaddr *addr, int size, int timeout, bool *cancel_flag);
|
int connect_timeout(SOCKET s, struct sockaddr *addr, int size, int timeout, bool *cancel_flag);
|
||||||
void EnableNetworkNameCache();
|
void EnableNetworkNameCache();
|
||||||
void DisableNetworkNameCache();
|
void DisableNetworkNameCache();
|
||||||
@ -1442,7 +1407,6 @@ void RouteToStr(char *str, UINT str_size, ROUTE_ENTRY *e);
|
|||||||
void DebugPrintRoute(ROUTE_ENTRY *e);
|
void DebugPrintRoute(ROUTE_ENTRY *e);
|
||||||
void DebugPrintRouteTable(ROUTE_TABLE *r);
|
void DebugPrintRouteTable(ROUTE_TABLE *r);
|
||||||
bool IsIPv6LocalNetworkAddress(IP *ip);
|
bool IsIPv6LocalNetworkAddress(IP *ip);
|
||||||
UINT GetNumWaitThread();
|
|
||||||
|
|
||||||
#ifdef ENABLE_SSL_LOGGING
|
#ifdef ENABLE_SSL_LOGGING
|
||||||
void SockEnableSslLogging(SOCK *s);
|
void SockEnableSslLogging(SOCK *s);
|
||||||
@ -1454,11 +1418,8 @@ void SocketTimeoutThread(THREAD *t, void *param);
|
|||||||
SOCKET_TIMEOUT_PARAM *NewSocketTimeout(SOCK *sock);
|
SOCKET_TIMEOUT_PARAM *NewSocketTimeout(SOCK *sock);
|
||||||
void FreeSocketTimeout(SOCKET_TIMEOUT_PARAM *ttp);
|
void FreeSocketTimeout(SOCKET_TIMEOUT_PARAM *ttp);
|
||||||
|
|
||||||
void CopyIP(IP *dst, IP *src);
|
|
||||||
bool CheckSubnetLength6(UINT i);
|
|
||||||
bool IsIP6(IP *ip);
|
bool IsIP6(IP *ip);
|
||||||
bool IsIP4(IP *ip);
|
bool IsIP4(IP *ip);
|
||||||
bool IsSameIPVer(IP *ip1, IP *ip2);
|
|
||||||
void IPv6AddrToIP(IP *ip, IPV6_ADDR *addr);
|
void IPv6AddrToIP(IP *ip, IPV6_ADDR *addr);
|
||||||
bool IPToIPv6Addr(IPV6_ADDR *addr, IP *ip);
|
bool IPToIPv6Addr(IPV6_ADDR *addr, IP *ip);
|
||||||
void SetIP6(IP *ip, UCHAR *value);
|
void SetIP6(IP *ip, UCHAR *value);
|
||||||
@ -1479,19 +1440,13 @@ void IPToStr6Array(char *str, UINT size, UCHAR *bytes);
|
|||||||
void IPToStr6Inner(char *str, IP *ip);
|
void IPToStr6Inner(char *str, IP *ip);
|
||||||
void IntToSubnetMask6(IP *ip, UINT i);
|
void IntToSubnetMask6(IP *ip, UINT i);
|
||||||
void IPNot6(IP *dst, IP *a);
|
void IPNot6(IP *dst, IP *a);
|
||||||
void IPOr6(IP *dst, IP *a, IP *b);
|
|
||||||
void IPAnd6(IP *dst, IP *a, IP *b);
|
void IPAnd6(IP *dst, IP *a, IP *b);
|
||||||
void GetAllRouterMulticastAddress6(IP *ip);
|
void GetAllRouterMulticastAddress6(IP *ip);
|
||||||
void GetAllNodeMulticaseAddress6(IP *ip);
|
void GetAllNodeMulticaseAddress6(IP *ip);
|
||||||
void GetLoopbackAddress6(IP *ip);
|
void GetLoopbackAddress6(IP *ip);
|
||||||
void GetAllFilledAddress6(IP *ip);
|
|
||||||
UINT GetIPAddrType6(IP *ip);
|
UINT GetIPAddrType6(IP *ip);
|
||||||
UINT GetIPv6AddrType(IPV6_ADDR *addr);
|
UINT GetIPv6AddrType(IPV6_ADDR *addr);
|
||||||
void GenerateMulticastMacAddress6(UCHAR *mac, IP *ip);
|
|
||||||
void GetSoliciationMulticastAddr6(IP *dst, IP *src);
|
|
||||||
bool CheckUnicastAddress(IP *ip);
|
|
||||||
bool IsNetworkPrefixAddress6(IP *ip, IP *subnet);
|
bool IsNetworkPrefixAddress6(IP *ip, IP *subnet);
|
||||||
bool IsNetworkAddress6(IP *ip, IP *subnet);
|
|
||||||
void GetHostAddress6(IP *dst, IP *ip, IP *subnet);
|
void GetHostAddress6(IP *dst, IP *ip, IP *subnet);
|
||||||
void GetPrefixAddress6(IP *dst, IP *ip, IP *subnet);
|
void GetPrefixAddress6(IP *dst, IP *ip, IP *subnet);
|
||||||
bool IsNetworkPrefixAddress6(IP *ip, IP *subnet);
|
bool IsNetworkPrefixAddress6(IP *ip, IP *subnet);
|
||||||
@ -1499,18 +1454,14 @@ bool IsInSameNetwork6(IP *a1, IP *a2, IP *subnet);
|
|||||||
bool IsInSameNetwork6ByStr(char *ip1, char *ip2, char *subnet);
|
bool IsInSameNetwork6ByStr(char *ip1, char *ip2, char *subnet);
|
||||||
void GenerateEui64Address6(UCHAR *dst, UCHAR *mac);
|
void GenerateEui64Address6(UCHAR *dst, UCHAR *mac);
|
||||||
void GenerateEui64LocalAddress(IP *a, UCHAR *mac);
|
void GenerateEui64LocalAddress(IP *a, UCHAR *mac);
|
||||||
void GenerateEui64GlobalAddress(IP *ip, IP *prefix, IP *subnet, UCHAR *mac);
|
|
||||||
bool IsSubnetMask6(IP *a);
|
bool IsSubnetMask6(IP *a);
|
||||||
UINT SubnetMaskToInt(IP *a);
|
UINT SubnetMaskToInt(IP *a);
|
||||||
UINT SubnetMaskToInt6(IP *a);
|
UINT SubnetMaskToInt6(IP *a);
|
||||||
UINT SubnetMaskToInt4(IP *a);
|
UINT SubnetMaskToInt4(IP *a);
|
||||||
bool IsStrIPv6Address(char *str);
|
bool IsStrIPv6Address(char *str);
|
||||||
void IPNot4(IP *dst, IP *a);
|
|
||||||
void IPOr4(IP *dst, IP *a, IP *b);
|
|
||||||
void IPAnd4(IP *dst, IP *a, IP *b);
|
void IPAnd4(IP *dst, IP *a, IP *b);
|
||||||
bool IsInSameNetwork4(IP *a1, IP *a2, IP *subnet);
|
bool IsInSameNetwork4(IP *a1, IP *a2, IP *subnet);
|
||||||
bool IsInSameNetwork4Standard(IP *a1, IP *a2);
|
bool IsInSameNetwork4Standard(IP *a1, IP *a2);
|
||||||
bool IsInSameLocalNetworkToMe4(IP *a);
|
|
||||||
|
|
||||||
bool ParseIpAndSubnetMask4(char *src, UINT *ip, UINT *mask);
|
bool ParseIpAndSubnetMask4(char *src, UINT *ip, UINT *mask);
|
||||||
bool ParseIpAndSubnetMask6(char *src, IP *ip, IP *mask);
|
bool ParseIpAndSubnetMask6(char *src, IP *ip, IP *mask);
|
||||||
@ -1521,11 +1472,8 @@ bool ParseIpAndMask46(char *src, IP *ip, IP *mask);
|
|||||||
bool IsIpStr4(char *str);
|
bool IsIpStr4(char *str);
|
||||||
bool IsIpStr6(char *str);
|
bool IsIpStr6(char *str);
|
||||||
bool IsIpMask6(char *str);
|
bool IsIpMask6(char *str);
|
||||||
bool IsIpStr46(char *str);
|
|
||||||
bool StrToMask4(IP *mask, char *str);
|
|
||||||
bool StrToMask6(IP *mask, char *str);
|
bool StrToMask6(IP *mask, char *str);
|
||||||
bool StrToMask6Addr(IPV6_ADDR *mask, char *str);
|
bool StrToMask6Addr(IPV6_ADDR *mask, char *str);
|
||||||
bool StrToMask46(IP *mask, char *str, bool ipv6);
|
|
||||||
void MaskToStr(char *str, UINT size, IP *mask);
|
void MaskToStr(char *str, UINT size, IP *mask);
|
||||||
void Mask6AddrToStrEx(char *str, UINT size, IPV6_ADDR *mask, bool always_full_address);
|
void Mask6AddrToStrEx(char *str, UINT size, IPV6_ADDR *mask, bool always_full_address);
|
||||||
void Mask6AddrToStr(char *str, UINT size, IPV6_ADDR *mask);
|
void Mask6AddrToStr(char *str, UINT size, IPV6_ADDR *mask);
|
||||||
@ -1570,14 +1518,11 @@ UINT64 GetHostIPAddressListHash();
|
|||||||
|
|
||||||
UDPLISTENER *NewUdpListener(UDPLISTENER_RECV_PROC *recv_proc, void *param, IP *listen_ip);
|
UDPLISTENER *NewUdpListener(UDPLISTENER_RECV_PROC *recv_proc, void *param, IP *listen_ip);
|
||||||
void UdpListenerThread(THREAD *thread, void *param);
|
void UdpListenerThread(THREAD *thread, void *param);
|
||||||
void UdpListenerGetPublicPortList(UDPLISTENER *u, char *dst, UINT size);
|
|
||||||
void FreeUdpListener(UDPLISTENER *u);
|
void FreeUdpListener(UDPLISTENER *u);
|
||||||
void AddPortToUdpListener(UDPLISTENER *u, UINT port);
|
void AddPortToUdpListener(UDPLISTENER *u, UINT port);
|
||||||
void DeletePortFromUdpListener(UDPLISTENER *u, UINT port);
|
void DeletePortFromUdpListener(UDPLISTENER *u, UINT port);
|
||||||
void DeleteAllPortFromUdpListener(UDPLISTENER *u);
|
void DeleteAllPortFromUdpListener(UDPLISTENER *u);
|
||||||
UINT GetUdpListenerPortList(UDPLISTENER *u, UINT **port_list);
|
|
||||||
void UdpListenerSendPackets(UDPLISTENER *u, LIST *packet_list);
|
void UdpListenerSendPackets(UDPLISTENER *u, LIST *packet_list);
|
||||||
void UdpListenerSendPacket(UDPLISTENER *u, UDPPACKET *packet);
|
|
||||||
UDPPACKET *NewUdpPacket(IP *src_ip, UINT src_port, IP *dst_ip, UINT dst_port, void *data, UINT size);
|
UDPPACKET *NewUdpPacket(IP *src_ip, UINT src_port, IP *dst_ip, UINT dst_port, void *data, UINT size);
|
||||||
void FreeUdpPacket(UDPPACKET *p);
|
void FreeUdpPacket(UDPPACKET *p);
|
||||||
UDPLISTENER_SOCK *DetermineUdpSocketForSending(UDPLISTENER *u, UDPPACKET *p);
|
UDPLISTENER_SOCK *DetermineUdpSocketForSending(UDPLISTENER *u, UDPPACKET *p);
|
||||||
@ -1602,7 +1547,6 @@ SOCK *AcceptReverse(SOCK *s);
|
|||||||
void InjectNewReverseSocketToAccept(SOCK *listen_sock, SOCK *s, IP *client_ip, UINT client_port);
|
void InjectNewReverseSocketToAccept(SOCK *listen_sock, SOCK *s, IP *client_ip, UINT client_port);
|
||||||
|
|
||||||
bool NewTcpPair(SOCK **s1, SOCK **s2);
|
bool NewTcpPair(SOCK **s1, SOCK **s2);
|
||||||
SOCK *ListenAnyPortEx(bool local_only);
|
|
||||||
SOCK *ListenAnyPortEx2(bool local_only, bool disable_ca);
|
SOCK *ListenAnyPortEx2(bool local_only, bool disable_ca);
|
||||||
|
|
||||||
bool IsIcmpApiSupported();
|
bool IsIcmpApiSupported();
|
||||||
@ -1639,7 +1583,6 @@ void GetCurrentGlobalIPGuess(IP *ip, bool ipv6);
|
|||||||
bool IsIPAddressInSameLocalNetwork(IP *a);
|
bool IsIPAddressInSameLocalNetwork(IP *a);
|
||||||
|
|
||||||
bool IsIPPrivate(IP *ip);
|
bool IsIPPrivate(IP *ip);
|
||||||
bool IsIPLocalOrPrivate(IP *ip);
|
|
||||||
bool IsIPMyHost(IP *ip);
|
bool IsIPMyHost(IP *ip);
|
||||||
void LoadPrivateIPFile();
|
void LoadPrivateIPFile();
|
||||||
bool IsOnPrivateIPFile(UINT ip);
|
bool IsOnPrivateIPFile(UINT ip);
|
||||||
@ -1647,7 +1590,6 @@ void FreePrivateIPFile();
|
|||||||
|
|
||||||
LIST *GetNicList();
|
LIST *GetNicList();
|
||||||
void FreeNicList(LIST *o);
|
void FreeNicList(LIST *o);
|
||||||
bool IsMacAddressLocal(void *addr);
|
|
||||||
bool IsMacAddressLocalInner(LIST *o, void *addr);
|
bool IsMacAddressLocalInner(LIST *o, void *addr);
|
||||||
bool IsMacAddressLocalFast(void *addr);
|
bool IsMacAddressLocalFast(void *addr);
|
||||||
void RefreshLocalMacAddressList();
|
void RefreshLocalMacAddressList();
|
||||||
@ -1659,10 +1601,7 @@ void SetCurrentDDnsFqdn(char *name);
|
|||||||
void GetCurrentDDnsFqdn(char *name, UINT size);
|
void GetCurrentDDnsFqdn(char *name, UINT size);
|
||||||
UINT GetCurrentDDnsFqdnHash();
|
UINT GetCurrentDDnsFqdnHash();
|
||||||
|
|
||||||
void GetSimpleHostname(char *hostname, UINT hostname_size, char *fqdn);
|
|
||||||
|
|
||||||
void DisableRDUPServerGlobally();
|
void DisableRDUPServerGlobally();
|
||||||
void DisableRUDPRegisterGlobally();
|
|
||||||
void SetNatTLowPriority();
|
void SetNatTLowPriority();
|
||||||
|
|
||||||
void QueryIpThreadMain(THREAD *thread, void *param);
|
void QueryIpThreadMain(THREAD *thread, void *param);
|
||||||
@ -1674,11 +1613,6 @@ void SetGetIpThreadMaxNum(UINT num);
|
|||||||
UINT GetGetIpThreadMaxNum();
|
UINT GetGetIpThreadMaxNum();
|
||||||
UINT GetCurrentGetIpThreadNum();
|
UINT GetCurrentGetIpThreadNum();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool IsIpInStrList(IP *ip, char *ip_list);
|
|
||||||
bool IsInStrByStrList(char *str, char *str_list);
|
|
||||||
|
|
||||||
#ifdef OS_WIN32
|
#ifdef OS_WIN32
|
||||||
LIST *Win32GetNicList();
|
LIST *Win32GetNicList();
|
||||||
#endif // OS_WIN32
|
#endif // OS_WIN32
|
||||||
|
Loading…
Reference in New Issue
Block a user