getnodebyname(3)

getnodebyname3

Decnet node entry retrieval by address

Usage

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>

struct nodeent *getnodebyname (char *name)

Overview

getnodebyname searches the decnet hosts file for the DECnet node with name equal to name and returns node information into the nodeent structure.
If no entry is found, returns NULL

Examples

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>
#include <sys/socket.h>
main(void)
{
    struct nodeent		*dp;
    if ( (dp=getnodebyname("mv3100")) == NULL)
	   printf("Error, cannot find node entry");
    else
	   printf("Node name is %s",dp->n_name);
}

Releases

Unchanged in 9 releases since Debian 3.0 (Woody).

  1. 3.0–10

From libdnet-dev 2.65+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.