t6rhdb_put_host(3N)
t6rhdb_put_host, t6rhdb_put_host6 - TSIX Remote Host DataBase put host information
As shipped in IRIX 6.5.19. Last changed in IRIX 6.5.19.
NAME t6rhdb_put_host, t6rhdb_put_host6 - TSIX Remote Host DataBase put host information SYNOPSIS #include <sys/t6rhdb.h> int t6rhdb_put_host(size_t size, t6rhdb_host_buf_t *data) int t6rhdb_put_host6(size_t size, t6rhdb_host_buf_t *data) DESCRIPTION These routines set a host profile for the Remote Host DataBase, using the information supplied by data. The hosts for which the profile applies are supplied in data, after the host profile structure, as either a struct in_addr or a struct in6_addr, depending on the interface used. The size argument must be the total length of the host profile structure and the host IP addresses. For each attribute supplied in the host profile structure, the corresponding bit must be set in the hp_attributes field of the host data structure. t6rhdb_put_host() is used for IP version 4 addresses. t6rhdb_put_host6() is used for IP version 6 addresses. CAPABILITIES A process calling this function must have CAP_NETWORK_MGT capability in the effective vector of its capability set. RETURN VALUE Upon successful completion, these routines will return zero. Otherwise the appropriate error code will be returned. ERROR [EPERM] The current process does not have required privileges. [EINVAL] The data argument is NULL. [ENOMEM] Not enough memory. [EFAULT] The data argument contains an invalid pointer address. SEE ALSO libt6(3N), t6rhdb_get_host(3N), t6rhdb_get_host6(3N), t6rhdb_flush(3N), t6rhdb_flush6(3N), t6rhdb_stat(3N), SOURCE Trusted Systems Interoperability Group