Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Functions | Variables
geteth.c File Reference

Go to the source code of this file.

Data Structures

struct  ethent


static int get_ether_entry (char *in_buf, eth_address *e, char *out_buf, size_t out_buf_size)
static void end_ether_entries (void)
void W32_CALL InitEthersFile (const char *fname)
const char *W32_CALL GetEthersFile (void)
int W32_CALL NumEtherEntries (void)
void W32_CALL ReadEthersFile (void)
 Read the /etc/ethers file. More...
void W32_CALL DumpEthersCache (void)
const char *W32_CALL GetEtherName (const eth_address *eth)
int main (void)


static struct ethenteth0 = NULL
static int num_entries = -1
static char ethersFname [MAX_PATHLEN] = ""

Detailed Description

`/etc/ethers' file functions for Watt-32.

Definition in file geteth.c.

Function Documentation

void W32_CALL ReadEthersFile ( void  )

Read the /etc/ethers file.

This MUST be called after any /etc/hosts file has been read.

: Assert that.

Definition at line 104 of file geteth.c.

References _arp_cache_add(), and called_from_resolve.