The tnet_accept_host function checks if a connection from the remote host is allowed or not. This allows remote host filtering. You can selectively decide which hosts are allowed to connect to the telnet server and which are not allowed. The argument rem_ip points to a buffer containing the four octets that make up the ip address of the remote machine. The argument rem_port specifies the port on the remote machine. The tnet_accept_host function is in the Telnet_uif.c module. The prototype is defined in net_config.h. note - This function is optional. If it does not exist in the project, the library default function is used instead. The library default function accepts all remote hosts.
|