]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_socket.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / basic / missing_socket.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <sys/socket.h>
5
6 #if HAVE_LINUX_VM_SOCKETS_H
7 #include <linux/vm_sockets.h>
8 #else
9 #define VMADDR_CID_ANY -1U
10 struct sockaddr_vm {
11 unsigned short svm_family;
12 unsigned short svm_reserved1;
13 unsigned int svm_port;
14 unsigned int svm_cid;
15 unsigned char svm_zero[sizeof(struct sockaddr) -
16 sizeof(unsigned short) -
17 sizeof(unsigned short) -
18 sizeof(unsigned int) -
19 sizeof(unsigned int)];
20 };
21 #endif /* !HAVE_LINUX_VM_SOCKETS_H */
22
23 #ifndef AF_VSOCK
24 #define AF_VSOCK 40
25 #endif
26
27 #ifndef SO_REUSEPORT
28 #define SO_REUSEPORT 15
29 #endif
30
31 #ifndef SO_PEERGROUPS
32 #define SO_PEERGROUPS 59
33 #endif
34
35 #ifndef SOL_NETLINK
36 #define SOL_NETLINK 270
37 #endif
38
39 #ifndef SOL_ALG
40 #define SOL_ALG 279
41 #endif
42
43 /* Not exposed yet. Defined in include/linux/socket.h. */
44 #ifndef SOL_SCTP
45 #define SOL_SCTP 132
46 #endif
47
48 /* Not exposed yet. Defined in include/linux/socket.h */
49 #ifndef SCM_SECURITY
50 #define SCM_SECURITY 0x03
51 #endif
52
53 /* netinet/in.h */
54 #ifndef IP_FREEBIND
55 #define IP_FREEBIND 15
56 #endif
57
58 #ifndef IP_TRANSPARENT
59 #define IP_TRANSPARENT 19
60 #endif