home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
network
/
netlib_1
/
NetLibSrc
/
c
/
makeaddr
< prev
next >
Wrap
Text File
|
1995-02-28
|
259b
|
15 lines
#include "arpa/inet.h"
#include "netinet/in.h"
/*
* Create an internet address from a network number and a local address
*/
struct in_addr inet_makeaddr(u_long net,u_long lna)
{
struct in_addr address;
address.s_addr = net | lna;
return address;
}