static const char *RCS = "$Id: stubs.c,v 4.1 1994/09/29 23:09:02 jraja Exp $";
/*
 *	stubs.c - common stubs for bsdsocket.library
 *
 *	Copyright © 1994 AmiTCP/IP Group,
 *			 Network Solutions Development Inc.
 *			 All rights reserved.
 */

#undef _OPTINLINE
#include <proto/socket.h>

char *
inet_ntoa(struct in_addr addr)
{
  return Inet_NtoA(addr.s_addr);
}

struct in_addr
inet_makeaddr(int net, int host)
{
  struct in_addr addr;
  addr.s_addr = Inet_MakeAddr(net, host);
  return addr;
}

unsigned long
inet_lnaof(struct in_addr addr)
{
  return Inet_LnaOf(addr.s_addr);
}

unsigned long
inet_netof(struct in_addr addr)
{
  return Inet_NetOf(addr.s_addr);
}
