#include <net_config.h>
BOOL tftp_accept_host (
U8* rem_ip, /* IP address of the remote host. */
U16 rem_port ); /* Remote port used for communication. */
Description
The tftp_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
TFTP 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 tftp_accept_host function is in the TFTP_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.
Return Value
The tftp_accept_host function returns __TRUE if the
connection from the remote host is allowed. If the connection is not
allowed, this function shall return __FALSE.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.