Lines Matching +full:port +full:- +full:mapping +full:- +full:mode

1 /* lint -save -library Flexelint comment for external headers */
3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
99 /* Port and address redirection functions. */
136 * Mode flags and other constants.
139 /* Mode flags, set using PacketAliasSetMode() */
155 * same port as they originated on. This allows e.g. rsh to work *99% of the
157 * at all). This mode bit is set by PacketAliasInit(), so it is a default
158 * mode of operation.
164 * destination port and/or address is zero), the packet aliasing engine will
165 * attempt to allocate a socket for the aliasing port it chooses. This will
168 * a default mode of operation.
173 /*-
178 * 10.0.0.0 -> 10.255.255.255
179 * 172.16.0.0 -> 172.31.255.255
180 * 192.168.0.0 -> 192.168.255.255
226 * 100.64.0.0 -> 100.127.255.255
231 * When this bit is set, UDP uses endpoint-independent mapping (EIM), as per
233 * address:port are mapped to the same NAT address:port, regardless of their
234 * destination address:port. If filtering rules allow, and if
235 * PKT_ALIAS_DENY_INCOMING is unset, any other external address:port can also
236 * send to the internal address:port through its mapped NAT address:port. This
237 * is more compatible with applications, and can reduce the need for port
238 * forwarding, but less scalable as each NAT address:port can only be
239 * concurrently used by at most one internal address:port.
241 * When this bit is unset, UDP packets use endpoint-dependent mapping (EDM)
242 * ("symmetric" NAT). Each connection from a particular internal address:port
244 * unpredictable NAT address:port. Two appplications behind EDM NATs can only
245 * connect to each other by port forwarding on the NAT, or tunnelling through
246 * an in-between server.
251 #define PKT_ALIAS_ERROR -1
259 /* lint -restore */