# | Line 114 | Line 114 | void EtherInit(void) | |
---|---|---|
114 | } | |
115 | ||
116 | // Retrieve local IP address (or at least one of them) | |
117 | < | socklen_t sa_len = sizeof(sa); |
118 | < | getsockname(udp_socket, (struct sockaddr *)&sa, &sa_len); |
117 | > | socklen_t sa_length = sizeof(sa); |
118 | > | getsockname(udp_socket, (struct sockaddr *)&sa, &sa_length); |
119 | uint32 udp_ip = sa.sin_addr.s_addr; | |
120 | if (udp_ip == INADDR_ANY || udp_ip == INADDR_LOOPBACK) { | |
121 | char name[256]; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |