diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-13 16:20:05 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-13 16:20:05 -0700 |
commit | 958ddda00522f768bf9adc86c0d5b446e0a672cf (patch) | |
tree | d03715b7cbd8580f90ebb231fcc987137776b3f7 /gpxe/src/include/gpxe/in.h | |
parent | 0095d560ef91676d3a07db560f58ca83d85bff95 (diff) | |
download | syslinux-958ddda00522f768bf9adc86c0d5b446e0a672cf.tar.gz |
gpxe: update gpxe to latest git
Diffstat (limited to 'gpxe/src/include/gpxe/in.h')
-rw-r--r-- | gpxe/src/include/gpxe/in.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gpxe/src/include/gpxe/in.h b/gpxe/src/include/gpxe/in.h index 89530a55..40e4d407 100644 --- a/gpxe/src/include/gpxe/in.h +++ b/gpxe/src/include/gpxe/in.h @@ -62,6 +62,15 @@ struct sockaddr_in { uint16_t sin_port; /** IPv4 address */ struct in_addr sin_addr; + /** Padding + * + * This ensures that a struct @c sockaddr_tcpip is large + * enough to hold a socket address for any TCP/IP address + * family. + */ + char pad[ sizeof ( struct sockaddr ) - sizeof ( sa_family_t ) + - sizeof ( uint16_t ) + - sizeof ( struct in_addr ) ]; }; /** |