|
|
@@ -42,6 +42,7 @@ void ConfigureMacAddress(const char *interface) {
|
|
|
memcpy( &(g_ethernet_link.physical_address), &ifr.ifr_hwaddr.sa_data,
|
|
|
sizeof(g_ethernet_link.physical_address) );
|
|
|
}
|
|
|
+ CloseSocket(fd);
|
|
|
}
|
|
|
|
|
|
EipStatus ConfigureNetworkInterface(const char *const network_interface) {
|
|
|
@@ -104,6 +105,8 @@ EipStatus ConfigureNetworkInterface(const char *const network_interface) {
|
|
|
g_multicast_configuration.starting_multicast_address = htonl(
|
|
|
ntohl( inet_addr("239.192.1.0") ) + (host_id << 5) );
|
|
|
|
|
|
+ CloseSocket(fd);
|
|
|
+
|
|
|
return kEipStatusOk;
|
|
|
}
|
|
|
|