headers, net: Use __kernel_sa_family_t in more definitions shared with userland
Complete the work started with commit
6602a4baf4 ('net: Make userland include
of netlink.h more sane').
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d4b172d2ec
commit
bcb949b884
@@ -12,16 +12,20 @@
|
||||
*
|
||||
* See the GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <linux/socket.h>
|
||||
|
||||
#define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */
|
||||
struct sockaddr_llc {
|
||||
sa_family_t sllc_family; /* AF_LLC */
|
||||
sa_family_t sllc_arphrd; /* ARPHRD_ETHER */
|
||||
__kernel_sa_family_t sllc_family; /* AF_LLC */
|
||||
__kernel_sa_family_t sllc_arphrd; /* ARPHRD_ETHER */
|
||||
unsigned char sllc_test;
|
||||
unsigned char sllc_xid;
|
||||
unsigned char sllc_ua; /* UA data, only for SOCK_STREAM. */
|
||||
unsigned char sllc_sap;
|
||||
unsigned char sllc_mac[IFHWADDRLEN];
|
||||
unsigned char __pad[__LLC_SOCK_SIZE__ - sizeof(sa_family_t) * 2 -
|
||||
unsigned char __pad[__LLC_SOCK_SIZE__ -
|
||||
sizeof(__kernel_sa_family_t) * 2 -
|
||||
sizeof(unsigned char) * 4 - IFHWADDRLEN];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user