8 { 'include': 'common.json' }
11 # @NetworkAddressFamily:
13 # The network address family
21 # @vsock: vsock family (since 2.8)
27 { 'enum': 'NetworkAddressFamily',
28 'data': [ 'ipv4', 'ipv6', 'unix', 'vsock', 'unknown' ] }
31 # @InetSocketAddressBase:
33 # @host: host part of the address
34 # @port: port part of the address
36 { 'struct': 'InetSocketAddressBase',
44 # Captures a socket address or address range in the Internet namespace.
46 # @numeric: true if the host/port are guaranteed to be numeric,
47 # false if name resolution should be attempted. Defaults to false.
50 # @to: If present, this is range of possible addresses, with port
51 # between @port and @to.
53 # @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
55 # @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
57 # @keep-alive: enable keep-alive when connecting to this socket. Not supported
58 # for passive sockets. (Since 4.2)
62 { 'struct': 'InetSocketAddress',
63 'base': 'InetSocketAddressBase',
69 '*keep-alive': 'bool' } }
74 # Captures a socket address in the local ("Unix socket") namespace.
76 # @path: filesystem path to use
77 # @tight: pass a socket address length confined to the minimum length of the
78 # abstract string, rather than the full sockaddr_un record length
79 # (only matters for abstract sockets, default true). (Since 5.1)
80 # @abstract: whether this is an abstract address, default false. (Since 5.1)
84 { 'struct': 'UnixSocketAddress',
88 '*abstract': 'bool' } }
91 # @VsockSocketAddress:
93 # Captures a socket address in the vsock namespace.
95 # @cid: unique host identifier
98 # Note: string types are used to allow for possible future hostname or
99 # service resolution support.
103 { 'struct': 'VsockSocketAddress',
109 # @SocketAddressLegacy:
111 # Captures the address of a socket, which could also be a named file descriptor
113 # Note: This type is deprecated in favor of SocketAddress. The
114 # difference between SocketAddressLegacy and SocketAddress is that the
115 # latter is a flat union rather than a simple union. Flat is nicer
116 # because it avoids nesting on the wire, i.e. that form has fewer {}.
121 { 'union': 'SocketAddressLegacy',
123 'inet': 'InetSocketAddress',
124 'unix': 'UnixSocketAddress',
125 'vsock': 'VsockSocketAddress',
129 # @SocketAddressType:
131 # Available SocketAddress types
133 # @inet: Internet address
135 # @unix: Unix domain socket
137 # @vsock: VMCI address
139 # @fd: decimal is for file descriptor number, otherwise a file descriptor name.
140 # Named file descriptors are permitted in monitor commands, in combination
141 # with the 'getfd' command. Decimal file descriptors are permitted at
142 # startup or other contexts where no monitor context is active.
146 { 'enum': 'SocketAddressType',
147 'data': [ 'inet', 'unix', 'vsock', 'fd' ] }
152 # Captures the address of a socket, which could also be a named file
155 # @type: Transport type
159 { 'union': 'SocketAddress',
160 'base': { 'type': 'SocketAddressType' },
161 'discriminator': 'type',
162 'data': { 'inet': 'InetSocketAddress',
163 'unix': 'UnixSocketAddress',
164 'vsock': 'VsockSocketAddress',