Linkaddr, Link_addr – Comtrol eCos User Manual

Page 548

Advertising
background image

Chapter 38. TCP/IP Library Reference

The format employed by iso_addr() is a sequence of hexadecimal “digits”

(optionally separated by periods), of the form:

<

hex digits>.

<

hex digits>.

<

hex digits>

Each pair of hexadecimal digits represents a byte with the leading digit

indicating the higher-ordered bits.

A period following an even number of

bytes has no effect (but may be used to increase legibility).

A period

following an odd number of bytes has the effect of causing the byte of

address being translated to have its higher order bits filled with zeros.

RETURN VALUES

iso_ntoa() always returns a null terminated string.

iso_addr() always

returns a pointer to a struct iso_addr.

(See BUGS.)

SEE ALSO

iso(4)

HISTORY

The iso_addr() and iso_ntoa() functions appeared in 4.3BSD-Reno.

BUGS

The returned values reside in a static memory area.

The function iso_addr() should diagnose improperly formed input, and

there should be an unambiguous way to recognize this.

BSD

June 4, 1993

BSD

link_addr

LINK_ADDR(3)

System Library Functions Manual

LINK_ADDR(3)

NAME

link_addr, link_ntoa - elementary address specification routines for link

level access

SYNOPSIS

#include

<

sys/types.h>

#include

<

sys/socket.h>

#include

<

net/if_dl.h>

void

link_addr(const char *addr, struct sockaddr_dl *sdl);

char *

link_ntoa(const struct sockaddr_dl *sdl);

DESCRIPTION

The link_addr() function interprets character strings representing link-

level addresses, returning binary information suitable for use in system

calls.

link_ntoa() takes a link-level address and returns an ASCII

444

Advertising