|
@@ -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
|
|