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
58 { 'struct': 'InetSocketAddress',
59 'base': 'InetSocketAddressBase',
69 # Captures a socket address in the local ("Unix socket") namespace.
71 # @path: filesystem path to use
75 { 'struct': 'UnixSocketAddress',
80 # @VsockSocketAddress:
82 # Captures a socket address in the vsock namespace.
84 # @cid: unique host identifier
87 # Note: string types are used to allow for possible future hostname or
88 # service resolution support.
92 { 'struct': 'VsockSocketAddress',
98 # @SocketAddressLegacy:
100 # Captures the address of a socket, which could also be a named file descriptor
102 # Note: This type is deprecated in favor of SocketAddress. The
103 # difference between SocketAddressLegacy and SocketAddress is that the
104 # latter is a flat union rather than a simple union. Flat is nicer
105 # because it avoids nesting on the wire, i.e. that form has fewer {}.
110 { 'union': 'SocketAddressLegacy',
112 'inet': 'InetSocketAddress',
113 'unix': 'UnixSocketAddress',
114 'vsock': 'VsockSocketAddress',
118 # @SocketAddressType:
120 # Available SocketAddress types
122 # @inet: Internet address
124 # @unix: Unix domain socket
126 # @vsock: VMCI address
128 # @fd: decimal is for file descriptor number, otherwise a file descriptor name.
129 # Named file descriptors are permitted in monitor commands, in combination
130 # with the 'getfd' command. Decimal file descriptors are permitted at
131 # startup or other contexts where no monitor context is active.
135 { 'enum': 'SocketAddressType',
136 'data': [ 'inet', 'unix', 'vsock', 'fd' ] }
141 # Captures the address of a socket, which could also be a named file
144 # @type: Transport type
148 { 'union': 'SocketAddress',
149 'base': { 'type': 'SocketAddressType' },
150 'discriminator': 'type',
151 'data': { 'inet': 'InetSocketAddress',
152 'unix': 'UnixSocketAddress',
153 'vsock': 'VsockSocketAddress',