udhcpc6: downgrade "opening listen socket" log level to 2

This matches udhcpc for IPv4.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2022-08-02 18:04:51 +02:00
parent 75aaa8b311
commit 84b89b4c22
2 changed files with 2 additions and 2 deletions

View File

@ -1083,7 +1083,7 @@ static void change_listen_mode(int new_mode)
client_data.sockfd = -1; client_data.sockfd = -1;
} }
if (new_mode == LISTEN_KERNEL) if (new_mode == LISTEN_KERNEL)
client_data.sockfd = d6_listen_socket(/*INADDR_ANY,*/ CLIENT_PORT6, client_data.interface); client_data.sockfd = d6_listen_socket(CLIENT_PORT6, client_data.interface);
else if (new_mode != LISTEN_NONE) else if (new_mode != LISTEN_NONE)
client_data.sockfd = d6_raw_socket(client_data.ifindex); client_data.sockfd = d6_raw_socket(client_data.ifindex);
/* else LISTEN_NONE: client_data.sockfd stays closed */ /* else LISTEN_NONE: client_data.sockfd stays closed */

View File

@ -110,7 +110,7 @@ int FAST_FUNC d6_listen_socket(int port, const char *inf)
int fd; int fd;
struct sockaddr_in6 addr; struct sockaddr_in6 addr;
log1("opening listen socket on *:%d %s", port, inf); log2("opening listen socket on *:%d %s", port, inf);
fd = xsocket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP); fd = xsocket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP);
setsockopt_reuseaddr(fd); setsockopt_reuseaddr(fd);