summaryrefslogtreecommitdiff
path: root/gpxe/src/include/gpxe/in.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-13 16:20:05 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-13 16:20:05 -0700
commit958ddda00522f768bf9adc86c0d5b446e0a672cf (patch)
treed03715b7cbd8580f90ebb231fcc987137776b3f7 /gpxe/src/include/gpxe/in.h
parent0095d560ef91676d3a07db560f58ca83d85bff95 (diff)
downloadsyslinux-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.h9
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 ) ];
};
/**