+
+struct in_addr
+if_makeaddr(net, host)
+ int net, host;
+{
+ u_long addr;
+
+ if (net < 128)
+ addr = (host << 8) | net;
+ else if (net < 65536)
+ addr = (host << 16) | net;
+ else
+ addr = (host << 24) | net;
+ addr = htonl(addr);
+ return (*(struct in_addr *)&addr);
+}