mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge PR #555: src/Mayaqua/Network: remove unused functions
This commit is contained in:
commit
9950574852
File diff suppressed because it is too large
Load Diff
@ -1019,7 +1019,6 @@ struct HTTP_HEADER
|
||||
int GetCurrentTimezone();
|
||||
|
||||
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);
|
||||
|
||||
@ -1065,8 +1064,6 @@ bool HttpClientSend(SOCK *s, PACK *p);
|
||||
PACK *HttpServerRecv(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 GetDnsProxyIPAddressForJapanBFlets(IP *ip_ret, 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);
|
||||
UINT RUDPCalcBestMssForBulk(RUDP_STACK *r, RUDP_SESSION *se);
|
||||
bool IsIPLocalHostOrMySelf(IP *ip);
|
||||
UINT RUDPGetRandPortNumber(UCHAR rand_port_id);
|
||||
void RUDPSetSourceIpValidationForceDisable(bool b);
|
||||
bool RUDPIsIpInValidateList(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 Win32GetDefaultDns(IP *ip, char *domain, UINT size);
|
||||
bool Win32GetDnsSuffix(char *domain, UINT size);
|
||||
void Win32RenewDhcp();
|
||||
void Win32RenewDhcp9x(UINT if_id);
|
||||
void Win32ReleaseDhcp9x(UINT if_id, bool wait);
|
||||
void Win32FlushDnsCache();
|
||||
@ -1198,9 +1192,6 @@ void UnixSelect(SOCKSET *set, UINT timeout, CANCEL *c1, CANCEL *c2);
|
||||
void UnixInitAsyncSocket(SOCK *sock);
|
||||
void UnixJoinSockToSockEvent(SOCK *sock, SOCK_EVENT *event);
|
||||
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();
|
||||
bool UnixAddRouteEntry(ROUTE_ENTRY *e, bool *already_exists);
|
||||
void UnixDeleteRouteEntry(ROUTE_ENTRY *e);
|
||||
@ -1214,7 +1205,6 @@ void UnixSetSockEvent(SOCK_EVENT *event);
|
||||
void UnixCleanupSockEvent(SOCK_EVENT *event);
|
||||
bool UnixWaitSockEvent(SOCK_EVENT *event, UINT timeout);
|
||||
bool UnixGetDefaultDns(IP *ip);
|
||||
void UnixRenewDhcp();
|
||||
void UnixNewPipe(int *pipe_read, int *pipe_write);
|
||||
void UnixWritePipe(int pipe_write);
|
||||
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);
|
||||
bool StrToIP(IP *ip, char *str);
|
||||
UINT StrToIP32(char *str);
|
||||
bool UniStrToIP(IP *ip, wchar_t *str);
|
||||
UINT UniStrToIP32(wchar_t *str);
|
||||
void IPToStr(char *str, UINT size, IP *ip);
|
||||
void IPToStr4(char *str, UINT size, IP *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 IPToUniStr(wchar_t *str, UINT size, IP *ip);
|
||||
void IPToUniStr32(wchar_t *str, UINT size, UINT ip);
|
||||
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 GetIP46Any4(IP *ip, char *hostname);
|
||||
bool GetIP46Any6(IP *ip, char *hostname);
|
||||
bool GetIP(IP *ip, char *hostname);
|
||||
bool GetIP4(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 GetMachineNameEx(char *name, UINT size, bool no_load_hosts);
|
||||
bool GetMachineNameFromHosts(char *name, UINT size);
|
||||
void GetMachineIp(IP *ip);
|
||||
void GetMachineHostName(char *name, UINT size);
|
||||
void UINTToIP(IP *ip, UINT value);
|
||||
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);
|
||||
SOCKET ConnectTimeoutIPv4(IP *ip, UINT port, UINT timeout, bool *cancel_flag);
|
||||
void SetSocketSendRecvBufferSize(SOCKET s, UINT size);
|
||||
UINT GetSocketBufferSize(SOCKET s, bool send);
|
||||
bool SetSocketBufferSize(SOCKET s, bool send, UINT size);
|
||||
UINT SetSocketBufferSizeWithBestEffort(SOCKET s, bool send, UINT size);
|
||||
void InitUdpSocketBufferSize(SOCKET s);
|
||||
@ -1301,7 +1284,6 @@ void Disconnect(SOCK *sock);
|
||||
SOCK *Listen(UINT port);
|
||||
SOCK *ListenEx(UINT port, bool local_only);
|
||||
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 *ListenEx62(UINT port, bool local_only, bool enable_ca);
|
||||
SOCK *Accept(SOCK *sock);
|
||||
@ -1330,7 +1312,6 @@ void CleanupCancel(CANCEL *c);
|
||||
void Cancel(CANCEL *c);
|
||||
void Select(SOCKSET *set, UINT timeout, CANCEL *c1, CANCEL *c2);
|
||||
void SetWantToUseCipher(SOCK *sock, char *name);
|
||||
void InitAsyncSocket(SOCK *sock);
|
||||
SOCK *NewUDP(UINT port);
|
||||
SOCK *NewUDPEx(UINT port, bool ipv6);
|
||||
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);
|
||||
void ClearSockDfBit(SOCK *s);
|
||||
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 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 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);
|
||||
@ -1354,7 +1331,6 @@ void SetTimeout(SOCK *sock, UINT timeout);
|
||||
UINT GetTimeout(SOCK *sock);
|
||||
bool CheckTCPPort(char *hostname, UINT port);
|
||||
bool CheckTCPPortEx(char *hostname, UINT port, UINT timeout);
|
||||
void CheckTCPPortThread(THREAD *thread, void *param);
|
||||
ROUTE_TABLE *GetRouteTable();
|
||||
void FreeRouteTable(ROUTE_TABLE *t);
|
||||
bool AddRouteEntryEx(ROUTE_ENTRY *e, bool *already_exists);
|
||||
@ -1365,7 +1341,6 @@ void FreeEnumVLan(char **s);
|
||||
UINT GetVLanInterfaceID(char *tag_name);
|
||||
ROUTE_ENTRY *GetBestRouteEntry(IP *ip);
|
||||
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);
|
||||
void FreeRouteEntry(ROUTE_ENTRY *e);
|
||||
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 GetDomainName(char *name, UINT size);
|
||||
bool UnixGetDomainName(char *name, UINT size);
|
||||
void RenewDhcp();
|
||||
void AcceptInit(SOCK *s);
|
||||
void AcceptInitEx(SOCK *s, bool no_lookup_hostname);
|
||||
void DisableGetHostNameWhenAcceptInit();
|
||||
@ -1397,7 +1371,6 @@ bool GetHostCache(char *hostname, UINT size, IP *ip);
|
||||
bool IsSubnetMask(IP *ip);
|
||||
bool IsSubnetMask4(IP *ip);
|
||||
bool IsSubnetMask32(UINT ip);
|
||||
bool IsNetworkAddress(IP *ip, IP *mask);
|
||||
bool IsNetworkAddress4(IP *ip, IP *mask);
|
||||
bool IsNetworkAddress32(UINT ip, UINT mask);
|
||||
bool IsHostIPAddress4(IP *ip);
|
||||
@ -1410,7 +1383,6 @@ void IntToSubnetMask4(IP *ip, UINT i);
|
||||
bool GetNetBiosName(char *name, UINT size, IP *ip);
|
||||
bool NormalizeMacAddress(char *dst, UINT size, char *src);
|
||||
SOCKLIST *NewSockList();
|
||||
void DelSockList(SOCKLIST *sl, SOCK *s);
|
||||
void StopSockList(SOCKLIST *sl);
|
||||
void FreeSockList(SOCKLIST *sl);
|
||||
bool IsIPv6Supported();
|
||||
@ -1424,13 +1396,6 @@ void DelIpClient(IP *ip);
|
||||
IP_CLIENT *SearchIpClient(IP *ip);
|
||||
UINT GetNumIpClient(IP *ip);
|
||||
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);
|
||||
void EnableNetworkNameCache();
|
||||
void DisableNetworkNameCache();
|
||||
@ -1442,7 +1407,6 @@ void RouteToStr(char *str, UINT str_size, ROUTE_ENTRY *e);
|
||||
void DebugPrintRoute(ROUTE_ENTRY *e);
|
||||
void DebugPrintRouteTable(ROUTE_TABLE *r);
|
||||
bool IsIPv6LocalNetworkAddress(IP *ip);
|
||||
UINT GetNumWaitThread();
|
||||
|
||||
#ifdef ENABLE_SSL_LOGGING
|
||||
void SockEnableSslLogging(SOCK *s);
|
||||
@ -1454,11 +1418,8 @@ void SocketTimeoutThread(THREAD *t, void *param);
|
||||
SOCKET_TIMEOUT_PARAM *NewSocketTimeout(SOCK *sock);
|
||||
void FreeSocketTimeout(SOCKET_TIMEOUT_PARAM *ttp);
|
||||
|
||||
void CopyIP(IP *dst, IP *src);
|
||||
bool CheckSubnetLength6(UINT i);
|
||||
bool IsIP6(IP *ip);
|
||||
bool IsIP4(IP *ip);
|
||||
bool IsSameIPVer(IP *ip1, IP *ip2);
|
||||
void IPv6AddrToIP(IP *ip, IPV6_ADDR *addr);
|
||||
bool IPToIPv6Addr(IPV6_ADDR *addr, IP *ip);
|
||||
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 IntToSubnetMask6(IP *ip, UINT i);
|
||||
void IPNot6(IP *dst, IP *a);
|
||||
void IPOr6(IP *dst, IP *a, IP *b);
|
||||
void IPAnd6(IP *dst, IP *a, IP *b);
|
||||
void GetAllRouterMulticastAddress6(IP *ip);
|
||||
void GetAllNodeMulticaseAddress6(IP *ip);
|
||||
void GetLoopbackAddress6(IP *ip);
|
||||
void GetAllFilledAddress6(IP *ip);
|
||||
UINT GetIPAddrType6(IP *ip);
|
||||
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 IsNetworkAddress6(IP *ip, IP *subnet);
|
||||
void GetHostAddress6(IP *dst, IP *ip, IP *subnet);
|
||||
void GetPrefixAddress6(IP *dst, 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);
|
||||
void GenerateEui64Address6(UCHAR *dst, UCHAR *mac);
|
||||
void GenerateEui64LocalAddress(IP *a, UCHAR *mac);
|
||||
void GenerateEui64GlobalAddress(IP *ip, IP *prefix, IP *subnet, UCHAR *mac);
|
||||
bool IsSubnetMask6(IP *a);
|
||||
UINT SubnetMaskToInt(IP *a);
|
||||
UINT SubnetMaskToInt6(IP *a);
|
||||
UINT SubnetMaskToInt4(IP *a);
|
||||
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);
|
||||
bool IsInSameNetwork4(IP *a1, IP *a2, IP *subnet);
|
||||
bool IsInSameNetwork4Standard(IP *a1, IP *a2);
|
||||
bool IsInSameLocalNetworkToMe4(IP *a);
|
||||
|
||||
bool ParseIpAndSubnetMask4(char *src, UINT *ip, UINT *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 IsIpStr6(char *str);
|
||||
bool IsIpMask6(char *str);
|
||||
bool IsIpStr46(char *str);
|
||||
bool StrToMask4(IP *mask, char *str);
|
||||
bool StrToMask6(IP *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 Mask6AddrToStrEx(char *str, UINT size, IPV6_ADDR *mask, bool always_full_address);
|
||||
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);
|
||||
void UdpListenerThread(THREAD *thread, void *param);
|
||||
void UdpListenerGetPublicPortList(UDPLISTENER *u, char *dst, UINT size);
|
||||
void FreeUdpListener(UDPLISTENER *u);
|
||||
void AddPortToUdpListener(UDPLISTENER *u, UINT port);
|
||||
void DeletePortFromUdpListener(UDPLISTENER *u, UINT port);
|
||||
void DeleteAllPortFromUdpListener(UDPLISTENER *u);
|
||||
UINT GetUdpListenerPortList(UDPLISTENER *u, UINT **port_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);
|
||||
void FreeUdpPacket(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);
|
||||
|
||||
bool NewTcpPair(SOCK **s1, SOCK **s2);
|
||||
SOCK *ListenAnyPortEx(bool local_only);
|
||||
SOCK *ListenAnyPortEx2(bool local_only, bool disable_ca);
|
||||
|
||||
bool IsIcmpApiSupported();
|
||||
@ -1639,7 +1583,6 @@ void GetCurrentGlobalIPGuess(IP *ip, bool ipv6);
|
||||
bool IsIPAddressInSameLocalNetwork(IP *a);
|
||||
|
||||
bool IsIPPrivate(IP *ip);
|
||||
bool IsIPLocalOrPrivate(IP *ip);
|
||||
bool IsIPMyHost(IP *ip);
|
||||
void LoadPrivateIPFile();
|
||||
bool IsOnPrivateIPFile(UINT ip);
|
||||
@ -1647,7 +1590,6 @@ void FreePrivateIPFile();
|
||||
|
||||
LIST *GetNicList();
|
||||
void FreeNicList(LIST *o);
|
||||
bool IsMacAddressLocal(void *addr);
|
||||
bool IsMacAddressLocalInner(LIST *o, void *addr);
|
||||
bool IsMacAddressLocalFast(void *addr);
|
||||
void RefreshLocalMacAddressList();
|
||||
@ -1659,10 +1601,7 @@ void SetCurrentDDnsFqdn(char *name);
|
||||
void GetCurrentDDnsFqdn(char *name, UINT size);
|
||||
UINT GetCurrentDDnsFqdnHash();
|
||||
|
||||
void GetSimpleHostname(char *hostname, UINT hostname_size, char *fqdn);
|
||||
|
||||
void DisableRDUPServerGlobally();
|
||||
void DisableRUDPRegisterGlobally();
|
||||
void SetNatTLowPriority();
|
||||
|
||||
void QueryIpThreadMain(THREAD *thread, void *param);
|
||||
@ -1674,11 +1613,6 @@ void SetGetIpThreadMaxNum(UINT num);
|
||||
UINT GetGetIpThreadMaxNum();
|
||||
UINT GetCurrentGetIpThreadNum();
|
||||
|
||||
|
||||
|
||||
bool IsIpInStrList(IP *ip, char *ip_list);
|
||||
bool IsInStrByStrList(char *str, char *str_list);
|
||||
|
||||
#ifdef OS_WIN32
|
||||
LIST *Win32GetNicList();
|
||||
#endif // OS_WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user