LLTGETHOSTBYADDR(3N)

NAME

lltgethostbyaddr - get LLT host entry

SYNOPSIS

cc [file...] file... -llltdb [library...]

#include sys/lltapi.h

struct llt_hostent_t *lltgethostbyaddr(ulong_t addr);

DESCRIPTION

This function obtains entries describing LLT hosts from the /etc/llthosts file.

lltgethostbyaddr() searches for information for an LLT host with a given LLT address specified by the unsigned long parameter addr, and returns the corresponding host’s entry.

NOTES

LLT host entries are represented by the struct llt_hostent_t structure defined in sys/lltapi.h:

typedef struct {
char *h_name; l /*name of host*/
int h_length; l /*length of address*/
char *h_addr; l /*LLT systemid*/
} llt_hostent_t;

lltgethostbyaddr() returns a pointer to a struct llt_hostent_t if it successfully locates the requested entry; otherwise, it returns NULL.

FILES

/etc/llthosts

/usr/lib/liblltdb.so.1

SEE ALSO

llthosts(4)

COPYRIGHTS

Copyright (c) 2016 Veritas.

All rights reserved.


VCS 7.1 LLTGETHOSTBYADDR(3N)