7 { 'include': 'common.json' }
10 # @NetworkAddressFamily:
12 # The network address family
20 # @vsock: vsock family (since 2.8)
26 { 'enum': 'NetworkAddressFamily',
27 'data': [ 'ipv4', 'ipv6', 'unix', 'vsock', 'unknown' ] }
30 # @InetSocketAddressBase:
32 # @host: host part of the address
33 # @port: port part of the address
35 { 'struct': 'InetSocketAddressBase',
43 # Captures a socket address or address range in the Internet namespace.
45 # @numeric: true if the host/port are guaranteed to be numeric,
46 # false if name resolution should be attempted. Defaults to false.
49 # @to: If present, this is range of possible addresses, with port
50 # between @port and @to.
52 # @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
54 # @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
56 # @keep-alive: enable keep-alive when connecting to this socket. Not supported
57 # for passive sockets. (Since 4.2)
61 { 'struct': 'InetSocketAddress',
62 'base': 'InetSocketAddressBase',
68 '*keep-alive': 'bool' } }
73 # Captures a socket address in the local ("Unix socket") namespace.
75 # @path: filesystem path to use
76 # @tight: pass a socket address length confined to the minimum length of the
77 # abstract string, rather than the full sockaddr_un record length
78 # (only matters for abstract sockets, default true). (Since 5.1)
79 # @abstract: whether this is an abstract address, default false. (Since 5.1)
83 { 'struct': 'UnixSocketAddress',
87 '*abstract': 'bool' } }
90 # @VsockSocketAddress:
92 # Captures a socket address in the vsock namespace.
94 # @cid: unique host identifier
97 # Note: string types are used to allow for possible future hostname or
98 # service resolution support.
102 { 'struct': 'VsockSocketAddress',
108 # @SocketAddressLegacy:
110 # Captures the address of a socket, which could also be a named file descriptor
112 # Note: This type is deprecated in favor of SocketAddress. The
113 # difference between SocketAddressLegacy and SocketAddress is that the
114 # latter is a flat union rather than a simple union. Flat is nicer
115 # because it avoids nesting on the wire, i.e. that form has fewer {}.
120 { 'union': 'SocketAddressLegacy',
122 'inet': 'InetSocketAddress',
123 'unix': 'UnixSocketAddress',
124 'vsock': 'VsockSocketAddress',
128 # @SocketAddressType:
130 # Available SocketAddress types
132 # @inet: Internet address
134 # @unix: Unix domain socket
136 # @vsock: VMCI address
138 # @fd: decimal is for file descriptor number, otherwise a file descriptor name.
139 # Named file descriptors are permitted in monitor commands, in combination
140 # with the 'getfd' command. Decimal file descriptors are permitted at
141 # startup or other contexts where no monitor context is active.
145 { 'enum': 'SocketAddressType',
146 'data': [ 'inet', 'unix', 'vsock', 'fd' ] }
151 # Captures the address of a socket, which could also be a named file
154 # @type: Transport type
158 { 'union': 'SocketAddress',
159 'base': { 'type': 'SocketAddressType' },
160 'discriminator': 'type',
161 'data': { 'inet': 'InetSocketAddress',
162 'unix': 'UnixSocketAddress',
163 'vsock': 'VsockSocketAddress',