Skip to content

Commit

Permalink
v4.27-9666-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dnobori committed Apr 21, 2018
1 parent 6f19de5 commit d095a82
Show file tree
Hide file tree
Showing 13 changed files with 96 additions and 26 deletions.
10 changes: 5 additions & 5 deletions src/Cedar/Cedar.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
#define CEDAR_VER 427

// Build Number
#define CEDAR_BUILD 9665
#define CEDAR_BUILD 9666

// Beta number
//#define BETA_NUMBER 3
Expand All @@ -153,16 +153,16 @@

// Specify the location to build
#ifndef BUILD_PLACE
#define BUILD_PLACE "pc33"
#define BUILD_PLACE "pc34"
#endif // BUILD_PLACE

// Specifies the build date
#define BUILD_DATE_Y 2018
#define BUILD_DATE_M 4
#define BUILD_DATE_D 21
#define BUILD_DATE_HO 0
#define BUILD_DATE_MI 54
#define BUILD_DATE_SE 23
#define BUILD_DATE_HO 14
#define BUILD_DATE_MI 23
#define BUILD_DATE_SE 36

// Tolerable time difference
#define ALLOW_TIMESTAMP_DIFF (UINT64)(3 * 24 * 60 * 60 * 1000)
Expand Down
2 changes: 1 addition & 1 deletion src/Cedar/Client.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void CiChangeAllVLanMacAddress(CLIENT *c)
RPC_CLIENT_ENUM_VLAN_ITEM *e = t.Items[i];
UCHAR mac[6];

if (StrToMac(mac, e->MacAddress) && mac[1] == 0xAC)
if (StrToMac(mac, e->MacAddress) && ((mac[0] == 0x00 && mac[1] == 0xAC) || (mac[0] = 0x5E)))
{
char *name = e->DeviceName;
RPC_CLIENT_SET_VLAN s;
Expand Down
12 changes: 6 additions & 6 deletions src/Cedar/Virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -10306,12 +10306,12 @@ void GenMacAddress(UCHAR *mac)
Hash(hash, b->Buf, b->Size, true);

// Generate a MAC address
mac[0] = 0x00;
mac[1] = 0xAC; // AC hurray
mac[2] = hash[0];
mac[3] = hash[1];
mac[4] = hash[2];
mac[5] = hash[3];
mac[0] = 0x5E;
mac[1] = hash[0];
mac[2] = hash[1];
mac[3] = hash[2];
mac[4] = hash[3];
mac[5] = hash[4];

FreeBuf(b);
}
Expand Down
4 changes: 2 additions & 2 deletions src/CurrentBuild.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUILD_NUMBER 9665
BUILD_NUMBER 9666
VERSION 427
BUILD_NAME beta
BUILD_DATE 20180421_005423
BUILD_DATE 20180421_142336
82 changes: 76 additions & 6 deletions src/Mayaqua/Microsoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -8430,6 +8430,76 @@ bool MsUpgradeVLan(char *tag_name, char *connection_tag_name, char *instance_nam
return ret;
}
bool MsUpgradeVLanWithoutLock(char *tag_name, char *connection_tag_name, char *instance_name, MS_DRIVER_VER *ver)
{
char hwid[MAX_PATH];
wchar_t hwid_w[MAX_PATH];
bool ret = false;
UCHAR old_mac_address[6];
char *s;
// Validate arguments
if (instance_name == NULL || tag_name == NULL || connection_tag_name == NULL || ver == NULL)
{
return false;
}

if (MsIsNt() == false)
{
// Can not be upgraded in Windows 9x
return false;
}

if (MsIsInfCatalogRequired())
{
if (MsIsValidVLanInstanceNameForInfCatalog(instance_name) == false)
{
return false;
}

StrUpper(instance_name);
}

Zero(hwid, sizeof(hwid));
Format(hwid, sizeof(hwid), DRIVER_DEVICE_ID_TAG, instance_name);
StrToUni(hwid_w, sizeof(hwid_w), hwid);

// Examine whether the virtual LAN card with the specified name has already registered
if (MsIsVLanExists(tag_name, instance_name) == false)
{
// Not registered
return false;
}

// Get the previous MAC address
s = MsGetMacAddress(tag_name, instance_name);
if (s == NULL)
{
Zero(old_mac_address, 6);
}
else
{
BUF *b;
b = StrToBin(s);
Free(s);

if (b->Size == 6)
{
Copy(old_mac_address, b->Buf, b->Size);
}
else
{
Zero(old_mac_address, 6);
}

FreeBuf(b);
}

ret = MsUninstallVLanWithoutLock(instance_name);

ret = MsInstallVLanWithoutLock(tag_name, connection_tag_name, instance_name, ver);

return ret;
}
bool MsUpgradeVLanWithoutLock_old(char *tag_name, char *connection_tag_name, char *instance_name, MS_DRIVER_VER *ver)
{
wchar_t infpath[MAX_PATH];
char hwid[MAX_PATH];
Expand Down Expand Up @@ -10546,12 +10616,12 @@ void MsGenMacAddress(UCHAR *mac)

Hash(hash, hash_src, sizeof(hash_src), true);

mac[0] = 0x00;
mac[1] = 0xAC;
mac[2] = hash[0];
mac[3] = hash[1];
mac[4] = hash[2];
mac[5] = hash[3];
mac[0] = 0x5E;
mac[1] = hash[0];
mac[2] = hash[1];
mac[3] = hash[2];
mac[4] = hash[3];
mac[5] = hash[4];
}

// Finish the driver installation
Expand Down
2 changes: 1 addition & 1 deletion src/bin/hamcore/strtable_cn.stb
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ CM_WOULDYOULOAD_IE_PROXY 目前,这台计算机的 Internet Explorer 配置使
CM_MSG_TITLE VPN Server "%S" (虚拟 HUB: "%S")
CM_JUMPLIST_RCCONNECT 最近使用的连接设置
CM_VPNGATE_MESSAGE 在 VPN Gate 学术项目网站上有一个公共 VPN 中继服务器列表。\r\n互联网上的任何人都可以建立 VPN 连接至任一列表上的 VPN 服务器。无需用户注册。\r\n\r\nVPN Gate 不是 SoftEther VPN 的一部分。\r\n此图标只提供了一个超链接到 http://www.vpngate.net/。\r\n\r\n安装带有 SoftEther VPN Client 的 VPN Gate Client 插件。它可用简单的配置连接到 VPN Gate 的一个公共 VPN 中继服务器。\r\n\r\n你想访问 http://www.vpngate.net/ (设在日本筑波大学) ?
CM_VLAN_REINSTALL_MSG After reinstalling the driver of the Virtual Network Adapter, it may not operate properly. In that case, delete the Virtual Network Adapter once and create it again. If it still does not work properly please create a new Virtual Network Adapter with a different name.
CM_VLAN_REINSTALL_MSG After reinstalling the driver of the Virtual Network Adapter, the MAC address associated to the current Virtual Network Adapter will change. Also, all TCP/IP settings with the Virtual Network Adapter will reset.\r\n\r\nIn the case that the reinstalled Virtual Network Adapter fails to activate, delete the Virtual Network Adapter once and create it again. If it still does not work properly please create a new Virtual Network Adapter with a different name.


# VPN Gate Service
Expand Down
2 changes: 1 addition & 1 deletion src/bin/hamcore/strtable_en.stb
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ CM_WOULDYOULOAD_IE_PROXY Currently the Internet Explorer on this computer is con
CM_MSG_TITLE VPN Server "%S" (Virtual Hub: "%S")
CM_JUMPLIST_RCCONNECT Recent VPN Servers
CM_VPNGATE_MESSAGE There is the list of Public VPN Relay Servers on the VPN Gate Academic Project Web Site.\r\nAnyone on the Internet can connect a VPN connection to any VPN servers on the list.\r\n\r\nVPN Gate Academic Project is not a part of SoftEther VPN.\r\nThis icon provides just a link to http://www.vpngate.net/.\r\nYou need to install VPN Gate Plugin to connect VPN Gate.\r\n\r\nDo you want to visit http://www.vpngate.net/ (provided by University of Tsukuba) ?
CM_VLAN_REINSTALL_MSG After reinstalling the driver of the Virtual Network Adapter, it may not operate properly. In that case, delete the Virtual Network Adapter once and create it again. If it still does not work properly please create a new Virtual Network Adapter with a different name.
CM_VLAN_REINSTALL_MSG After reinstalling the driver of the Virtual Network Adapter, the MAC address associated to the current Virtual Network Adapter will change. Also, all TCP/IP settings with the Virtual Network Adapter will reset.\r\n\r\nIn the case that the reinstalled Virtual Network Adapter fails to activate, delete the Virtual Network Adapter once and create it again. If it still does not work properly please create a new Virtual Network Adapter with a different name.


VGC_COLUMN_0 DDNS Hostname
Expand Down
2 changes: 1 addition & 1 deletion src/bin/hamcore/strtable_ja.stb
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ CM_WOULDYOULOAD_IE_PROXY 現在、このコンピュータは Internet Explorer
CM_MSG_TITLE VPN サーバー "%S" (仮想 HUB: "%S")
CM_JUMPLIST_RCCONNECT 最近の接続先
CM_VPNGATE_MESSAGE VPN Gate 学術実験プロジェクトの Web サイトには、公開 VPN 中継サーバーの一覧が公開されています。\r\nこれらの VPN サーバーには、誰でもユーザー登録なしで VPN 接続することができます。\r\n\r\nVPN Gate 学術実験プロジェクトは SoftEther VPN の一部ではありません。\r\nこのアイコンは http://www.vpngate.net/ へのリンクを提供しているに過ぎません。\r\nVPN Gate に接続するためには、VPN Gate Plugin をインストールする必要があります。\r\n\r\nhttp://www.vpngate.net/ (筑波大学における学術実験サイト) を開きますか?
CM_VLAN_REINSTALL_MSG 仮想 LAN カードのドライバを再インストールした後に、正常に動作しない場合があります。その場合は、一度仮想 LAN カードを削除し、再度作成してください。それでも正常に動作しない場合は、別の名前で仮想 LAN カードを作成してください。
CM_VLAN_REINSTALL_MSG 仮想 LAN カードのドライバを再インストールすると、MAC アドレスが変更になります。また、仮想 LAN カードに関する TCP/IP などのネットワーク設定は初期化されます。続行しますか?\r\n\r\nなお、仮想 LAN カードのドライバを再インストールしても正常に動作しない場合は、新たに別の名前で仮想 LAN カードを作成してください。


# VPN Gate Service 関係
Expand Down
Binary file modified src/bin/vpnweb.cab
Binary file not shown.
Binary file modified src/bin/vpnweb.ocx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/vpnweb/vpnweb.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Apr 21 00:54:40 2018
/* at Sat Apr 21 14:23:50 2018
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
Expand Down
2 changes: 1 addition & 1 deletion src/vpnweb/vpnweb_i.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Apr 21 00:54:40 2018
/* at Sat Apr 21 14:23:50 2018
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
Expand Down
2 changes: 1 addition & 1 deletion src/vpnweb/vpnweb_p.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


/* File created by MIDL compiler version 7.00.0500 */
/* at Sat Apr 21 00:54:40 2018
/* at Sat Apr 21 14:23:50 2018
*/
/* Compiler settings for .\vpnweb.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
Expand Down

0 comments on commit d095a82

Please sign in to comment.