home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / unixlib_1 / !UnixLib37_netlib_netlib_c_inet_mkad < prev    next >
Encoding:
Text File  |  1996-07-28  |  530 b   |  29 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source$
  4.  * $Date$
  5.  * $Revision$
  6.  * $State$
  7.  * $Author$
  8.  *
  9.  * $Log$
  10.  ***************************************************************************/
  11.  
  12. static const char rcs_id[] = "$Id$";
  13.  
  14. #include <arpa/inet.h>
  15. #include <netinet/in.h>
  16.  
  17. /*
  18.  * Create an internet address from a network number and a local address
  19.  */
  20. struct in_addr
  21. inet_makeaddr (u_long net, u_long lna)
  22. {
  23.   struct in_addr address;
  24.  
  25.   address.s_addr = net | lna;
  26.  
  27.   return address;
  28. }
  29.