Lines Matching defs:net
44 #include <net/if.h>
45 #include <net/route.h>
46 #include <net/if_ether.h>
389 u_short net;
421 * that phase 1 probes use only nodes, not net.node pairs. Under
422 * phase 2, both the net and node must be the same.
441 * We will probe this address on the net first, before
444 * in this net and then increment the net. etc.etc. until
452 * If we are phase 2, and the net was not
453 * specified * then we select a random net
458 net = ntohs(nr.nr_firstnet) +
461 net = ntohs(nr.nr_firstnet);
465 * if a net was supplied, then check that it
480 * otherwise just use the new net number..
482 net = ntohs(sat->sat_addr.s_net);
490 net = ntohs(sat->sat_addr.s_net);
507 for (i = nnets, netinc = 1; i > 0; net = ntohs(nr.nr_firstnet) +
508 ((net - ntohs(nr.nr_firstnet) + netinc) % nnets), i--) {
509 AA_SAT(aa)->sat_addr.s_net = htons(net);
677 * If the node was right then if the net is right, it's a broadcast
683 * failing that, if the net is one we have, it's a broadcast as well.
817 printf("on %s %x.%x\n", (flags & RTF_HOST) ? "host" : "net",