TCP/IP Programming Manual
INT(32) inaddr, net, lna;
inaddr
return value; the corresponding 4-byte Internet address. This is the return value.
net
input value; the network address portion of the Internet address.
lna
input value; the local address portion of the Internet address.
Errors
No errors are returned for this function.
inet_netof
The inet_netof function breaks apart an INET family Internet address and returns the network
address portion.
C Synopsis
#include <in.h>
#include <in6.h> /* for IPv6 use */
#include <netdb.h>
net = inet_netof (addr);
unsigned long net;
struct in_addr addr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
net := inet_netof (addr);
INT(32) net;
INT .EXT addr(in_addr);
net
return value; the network address portion of the Internet address. This is the return value.
addr
input value; a 4-byte Internet address.
Errors
No errors are returned for this function.
inet_network
The inet_network function converts an INET family address from dotted-decimal format to binary
format and returns the network address portion.
C Synopsis#include <in.h>
#include <in6.h> /* for IPv6 use */
#include <netdb.h>
l_addr = inet_network (addr_ptr);
136 Library Routines