|
@@ -88,7 +88,7 @@ struct sockaddr_in {
|
88
|
88
|
sizeof ( uint16_t ) /* sin_flags */ +
|
89
|
89
|
sizeof ( uint16_t ) /* sin_port */ +
|
90
|
90
|
sizeof ( struct in_addr ) /* sin_addr */ ) ];
|
91
|
|
-} __attribute__ (( may_alias ));
|
|
91
|
+} __attribute__ (( packed, may_alias ));
|
92
|
92
|
|
93
|
93
|
/**
|
94
|
94
|
* IPv6 socket address
|
|
@@ -122,7 +122,7 @@ struct sockaddr_in6 {
|
122
|
122
|
sizeof ( uint16_t ) /* sin6_port */ +
|
123
|
123
|
sizeof ( uint16_t ) /* sin6_scope_id */ +
|
124
|
124
|
sizeof ( struct in6_addr ) /* sin6_addr */ ) ];
|
125
|
|
-} __attribute__ (( may_alias ));
|
|
125
|
+} __attribute__ (( packed, may_alias ));
|
126
|
126
|
|
127
|
127
|
extern int inet_aton ( const char *cp, struct in_addr *inp );
|
128
|
128
|
extern char * inet_ntoa ( struct in_addr in );
|