david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[udp] Add AF_INET6 socket opener

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-10-21 14:17:18 +01:00
parent 9f324cf9a5
commit e6ad90540b
1 changed files with 9 additions and 2 deletions

View File

@ -395,13 +395,20 @@ static struct interface_descriptor udp_xfer_desc =
***************************************************************************
*/
/** UDP socket opener */
struct socket_opener udp_socket_opener __socket_opener = {
/** UDP IPv4 socket opener */
struct socket_opener udp_ipv4_socket_opener __socket_opener = {
.semantics = UDP_SOCK_DGRAM,
.family = AF_INET,
.open = udp_open,
};
/** UDP IPv6 socket opener */
struct socket_opener udp_ipv6_socket_opener __socket_opener = {
.semantics = UDP_SOCK_DGRAM,
.family = AF_INET6,
.open = udp_open,
};
/** Linkage hack */
int udp_sock_dgram = UDP_SOCK_DGRAM;