Sfoglia il codice sorgente

[udp] Add AF_INET6 socket opener

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 anni fa
parent
commit
e6ad90540b
1 ha cambiato i file con 9 aggiunte e 2 eliminazioni
  1. 9
    2
      src/net/udp.c

+ 9
- 2
src/net/udp.c Vedi File

@@ -395,13 +395,20 @@ static struct interface_descriptor udp_xfer_desc =
395 395
  ***************************************************************************
396 396
  */
397 397
 
398
-/** UDP socket opener */
399
-struct socket_opener udp_socket_opener __socket_opener = {
398
+/** UDP IPv4 socket opener */
399
+struct socket_opener udp_ipv4_socket_opener __socket_opener = {
400 400
 	.semantics	= UDP_SOCK_DGRAM,
401 401
 	.family		= AF_INET,
402 402
 	.open		= udp_open,
403 403
 };
404 404
 
405
+/** UDP IPv6 socket opener */
406
+struct socket_opener udp_ipv6_socket_opener __socket_opener = {
407
+	.semantics	= UDP_SOCK_DGRAM,
408
+	.family		= AF_INET6,
409
+	.open		= udp_open,
410
+};
411
+
405 412
 /** Linkage hack */
406 413
 int udp_sock_dgram = UDP_SOCK_DGRAM;
407 414
 

Loading…
Annulla
Salva