explicitly specify IPPROTO_UDP when calling getaddrinfo().
Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
16dd7c128d
commit
651555cc54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119080
@ -612,6 +612,7 @@ init()
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = PF_INET6;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
hints.ai_protocol = IPPROTO_UDP;
|
||||
hints.ai_flags = AI_PASSIVE;
|
||||
error = getaddrinfo(NULL, port, &hints, &res);
|
||||
if (error) {
|
||||
@ -667,6 +668,7 @@ init()
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = PF_INET6;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
hints.ai_protocol = IPPROTO_UDP;
|
||||
error = getaddrinfo(RIP6_DEST, port, &hints, &res);
|
||||
if (error) {
|
||||
fatal("%s", gai_strerror(error));
|
||||
|
Loading…
Reference in New Issue
Block a user