![Texas TMS320C6000 Programmer'S Reference Manual Download Page 215](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844215.webp)
NAT Proxy Filters
B-22
pfnTxCb
Pointer to proxy “Tx” callback function (NULL if none)
pfnRxCb
Pointer to proxy “Rx” callback function (NULL if none)
Return Value
Handle to new proxy, or NULL on error.
Description
This function creates a “hook” that is examined whenever a new NAT entry is
created.
The calling parameter NatMode specifies the direction of the proxy
(NAT_MODE_RX for servers behind the firewall, and NAT_MODE_TX for cli-
ents behind the firewall).
The Protocol and Port value is the IP protocol and ”well know” port of the proto-
col to proxy.
For example, if setting up a FTP client proxy, set:
NatMode = NAT_MODE_TX, Protocol = IPPROTO_TCP, and Port = 21.
IPTarget is used only in server proxies (when NatMode is set to
NAT_MODE_RX). This specifies the machine behind the firewall that is actual-
ly providing the service.
The three pointers to callback functions correspond to the proxy filter callback
functions described in the previous section.
The function returns a handle to the new proxy. Note that a proxy handle is not
the same as (or compatible with) a NAT entry handle.
The proxy should be destroyed by calling ProxyFree() when it is no longer
needed.
Destroy a Proxy Filter Declaration
ProxyFree
Syntax
void ProxyFree( HANDLE hProxy );
Parameter(s)
hProxy
Handle to Proxy Filter entry created with ProxyNew()
Return Value
nothing
Description
This function frees the supplied Proxy Filter entry. It is called to remove an
entry that is no longer required.