Dr Andrew Scott G7VAV

My photo
 
July 2025
Mo Tu We Th Fr Sa Su
30 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 1 2 3
4 5 6 7 8 9 10


socket.h
01: #ifndef _LINUX_SOCKET_H
02: #define _LINUX_SOCKET_H
03: 
04: /*
05:  * Desired design of maximum size and alignment (see RFC2553)
06:  */
07: #define _K_SS_MAXSIZE   128     /* Implementation specific max size */
08: #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *))
09:                                 /* Implementation specific desired alignment */
10: 
11: typedef unsigned short __kernel_sa_family_t;
12: 
13: struct __kernel_sockaddr_storage {
14:         __kernel_sa_family_t    ss_family;              /* address family */
15:         /* Following field(s) are implementation specific */
16:         char            __data[_K_SS_MAXSIZE - sizeof(unsigned short)];
17:                                 /* space to achieve desired size, */
18:                                 /* _SS_MAXSIZE value minus size of ss_family */
19: } __attribute__ ((aligned(_K_SS_ALIGNSIZE)));   /* force desired alignment */
20: 
21: #endif /* _LINUX_SOCKET_H */
22: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/