问题是在DATASERAMUDP.C代码中。这是在2.03中提供的,我对MySEFL有点恼火,我没有发现这个更快。如果您在下面的代码片段中看到(这是从第141行),有一个StrucPy将默认网关注册到AdAMP;LADDR,这不应该是默认网关,而是接口地址。这是一个错误,希望他们能在2.04解决这个问题。
以上来自于百度翻译
以下为原文
The problem is in the datastream_udp.c code. which is supplied in harmony 2.03
I'm somewhat annoyed with mysefl that i did'tn spot this faster.
If you see in the code snippet below ( this is from line 141 ), there is a strcpy which is cpying the default gateway to the &laddr, This should not be the default gateway but the interface address..
Def a bug, hopefully they will resolve this in 2.04
if (ipAddr.v[0] != 0 && ipAddr.v[0] != 169) // Wait for a Valid IP
{
IPV4_ADDR laddr;
strcpy(_Port_Buffer, BOOTLOADER_UDP_PORT_NUMBER);
strcpy(_Message_Buffer, TCPIP_NETWORK_DEFAULT_GATEWAY);
TCPIP_Helper_StringToIPAddress(_Message_Buffer, &laddr);
uint16_t port = atoi(_Port_Buffer);
// udpsocket = TCPIP_UDP_ServerOpen(IP_ADDRESS_TYPE_IPV4,
// port,
// (IP_MULTI_ADDRESS*) &laddr);
// laddr is being set to the gateway address?
udpsocket = TCPIP_UDP_ServerOpen(IP_ADDRESS_TYPE_IPV4,
port, NULL );
if (udpsocket == INVALID_SOCKET)
{
return(DRV_HANDLE_INVALID);
}
connected = true;
//BSP_LEDStateSet(BSP_LED_2, BSP_LED_STATE_ON);
return(0); //Success
}
问题是在DATASERAMUDP.C代码中。这是在2.03中提供的,我对MySEFL有点恼火,我没有发现这个更快。如果您在下面的代码片段中看到(这是从第141行),有一个StrucPy将默认网关注册到AdAMP;LADDR,这不应该是默认网关,而是接口地址。这是一个错误,希望他们能在2.04解决这个问题。
以上来自于百度翻译
以下为原文
The problem is in the datastream_udp.c code. which is supplied in harmony 2.03
I'm somewhat annoyed with mysefl that i did'tn spot this faster.
If you see in the code snippet below ( this is from line 141 ), there is a strcpy which is cpying the default gateway to the &laddr, This should not be the default gateway but the interface address..
Def a bug, hopefully they will resolve this in 2.04
if (ipAddr.v[0] != 0 && ipAddr.v[0] != 169) // Wait for a Valid IP
{
IPV4_ADDR laddr;
strcpy(_Port_Buffer, BOOTLOADER_UDP_PORT_NUMBER);
strcpy(_Message_Buffer, TCPIP_NETWORK_DEFAULT_GATEWAY);
TCPIP_Helper_StringToIPAddress(_Message_Buffer, &laddr);
uint16_t port = atoi(_Port_Buffer);
// udpsocket = TCPIP_UDP_ServerOpen(IP_ADDRESS_TYPE_IPV4,
// port,
// (IP_MULTI_ADDRESS*) &laddr);
// laddr is being set to the gateway address?
udpsocket = TCPIP_UDP_ServerOpen(IP_ADDRESS_TYPE_IPV4,
port, NULL );
if (udpsocket == INVALID_SOCKET)
{
return(DRV_HANDLE_INVALID);
}
connected = true;
//BSP_LEDStateSet(BSP_LED_2, BSP_LED_STATE_ON);
return(0); //Success
}
举报