From 6fa1ec1f961ba4bf134d6db4e6ee70f56756c5ab Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 13 Apr 2024 16:28:58 -0500 Subject: [PATCH] Update: Add sockaddr_storage use in the socket type. Also fix the alphabetic order of "generic" in the documentation comments. --- level_0/f_socket/c/socket/address.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/level_0/f_socket/c/socket/address.h b/level_0/f_socket/c/socket/address.h index eb3941b..f8f57ea 100644 --- a/level_0/f_socket/c/socket/address.h +++ b/level_0/f_socket/c/socket/address.h @@ -27,13 +27,14 @@ extern "C" { * - ax25: Ax25. * - dl: Dl. * - eon: Eon. + * - generic: None specified, does not use extra fields and should be considered the fallback / failsafe (see AF_UNSPEC). * - inet4: Ipv4 internet network socket. * - inet6: Ipv6 internet network socket.. * - ipx: Ipx. * - iso: Iso. * - local: Local (aka: Unix) socket (socket file or localhost). * - ns: Ns. - * - generic: None specified, does not use extra fields and should be considered the fallback / failsafe (see AF_UNSPEC). + * - storage: The storage socket address. * - x25: X25. */ #ifndef _di_f_socket_address_form_e_ @@ -42,6 +43,7 @@ extern "C" { f_socket_address_form_inet4_e, f_socket_address_form_inet6_e, f_socket_address_form_local_e, + f_socket_address_form_storage, #ifdef _en_support_socket_address_arp_ f_socket_address_form_arp_e, @@ -98,13 +100,14 @@ extern "C" { * - ax25: Ax25. * - dl: Dl. * - eon: Eon. + * - generic: None specified, does not use extra fields and should be considered the fallback / failsafe (see AF_UNSPEC). * - inet4: Ipv4 internet network socket. * - inet6: Ipv6 internet network socket.. * - ipx: Ipx. * - iso: Iso. * - local: Local (aka: Unix) socket (socket file or localhost). * - ns: Ns. - * - generic: None specified, does not use extra fields and should be considered the fallback / failsafe (see AF_UNSPEC). + * - storage: The storage socket address. * - x25: X25. */ #ifndef _di_f_socket_address_t_ @@ -112,6 +115,7 @@ extern "C" { struct sockaddr generic; struct sockaddr_in inet4; struct sockaddr_in6 inet6; + struct sockaddr_storage storage; struct sockaddr_un local; #ifdef _en_support_socket_address_arp_ -- 1.8.3.1