Lines Matching defs:net
87 getnetbyaddr(unsigned long net, int type) {
90 return (getnetbyaddr_p(net, type, net_data));
146 getnetbyaddr_p(unsigned long net, int type, struct net_data *net_data) {
155 net == net_data->nw_last->n_net)
158 /* cannonize net(host order) */
159 if (net < 256UL) {
160 net <<= 24;
162 } else if (net < 65536UL) {
163 net <<= 16;
165 } else if (net < 16777216UL) {
166 net <<= 8;
171 /* convert to net order */
172 addr[0] = (0xFF000000 & net) >> 24;
173 addr[1] = (0x00FF0000 & net) >> 16;
174 addr[2] = (0x0000FF00 & net) >> 8;
175 addr[3] = (0x000000FF & net);
325 * What this code does: Converts net addresses from network to host form.