version 1.1.1.3, 2021/03/17 00:39:23
|
version 1.1.1.3.2.1, 2023/09/27 11:08:01
|
Line 652 UdpListen(Link l)
|
Line 652 UdpListen(Link l)
|
|
|
/* Make listening UDP socket. */ |
/* Make listening UDP socket. */ |
if (pi->If->self_addr.family==AF_INET6) { |
if (pi->If->self_addr.family==AF_INET6) { |
pi->If->csock = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP); | pi->If->csock = socket(PF_INET6, socktype(SOCK_DGRAM), IPPROTO_UDP); |
} else { |
} else { |
pi->If->csock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); | pi->If->csock = socket(PF_INET, socktype(SOCK_DGRAM), IPPROTO_UDP); |
} |
} |
(void)fcntl(pi->If->csock, F_SETFD, 1); |
(void)fcntl(pi->If->csock, F_SETFD, 1); |
|
|