/freebsd-9.3-release/usr.sbin/IPXrouted/ |
H A D | sap_input.c | 89 n->hops = htons(ntohs(n->hops) + 1); 90 if (ntohs(n->hops) >= HOPCNT_INFINITY) 105 ntohs(sap->sap.hops)); 145 if (ntohs(n->hops) > HOPCNT_INFINITY) 149 if (ntohs(n->hops) == HOPCNT_INFINITY) 165 * from anywhere and less hops or 170 (n->hops == sap->sap.hops) && 171 (ntohs(n->hops) ! [all...] |
H A D | sap_tables.c | 138 if (ntohs(sap->sap.hops) < besthops) { 140 besthops = ntohs(best->sap.hops); 157 if (ntohs(si->hops) == HOPCNT_INFINITY) 199 if (sap->clone && (ntohs(si->hops) != HOPCNT_INFINITY)) { 214 if (ntohs(osap->sap.hops) > ntohs(si->hops)) { 224 } else if (ntohs(osap->sap.hops) == ntohs(si->hops)) { 249 if (ntohs(si->hops) == HOPCNT_INFINITY) 276 if (ntohs(clone->hops) [all...] |
H A D | timer.c | 173 sap->sap.hops = htons(HOPCNT_INFINITY); 191 if ((ntohs(sap->sap.hops) + 1) == HOPCNT_INFINITY) 195 sap_msg->sap[0].hops = 196 htons(min(sap->sap.hops+1, HOPCNT_INFINITY)); 233 sap->sap.hops = htons(HOPCNT_INFINITY);
|
H A D | sap_output.c | 179 * Don't advertise services with more than 15 hops. It 182 if (ntohs(sap->sap.hops) == (HOPCNT_INFINITY - 1)) 184 metric = min(ntohs(sap->sap.hops) + 1, HOPCNT_INFINITY); 187 n->hops = htons(metric);
|
H A D | sap.h | 54 u_short hops; member in struct:sap_info
|
H A D | trace.c | 300 ntohs(sap->sap.hops)); 432 ntohs(n->hops)); 460 ntohs(sap->sap.hops));
|
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/ |
H A D | osm_switch.c | 62 if (!p_sw->hops[lid_ho]) { 63 p_sw->hops[lid_ho] = malloc(p_sw->num_ports); 64 if (!p_sw->hops[lid_ho]) 66 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports); 69 p_sw->hops[lid_ho][port_num] = num_hops; 70 if (p_sw->hops[lid_ho][0] > num_hops) 71 p_sw->hops[lid_ho][0] = num_hops; 151 if (p_sw->hops) { 153 if (p_sw->hops[i]) 154 free(p_sw->hops[ 279 uint8_t hops; local 521 uint8_t **hops; local 576 uint8_t hops; local 597 uint8_t hops; local [all...] |
H A D | osm_ucast_file.c | 109 uint8_t hops[], unsigned len) 119 osm_switch_set_hops(p_sw, lid, i, hops[i]); 259 uint8_t hops[256]; local 328 memset(hops, 0xff, sizeof(hops)); 350 "cannot parse hops number: \'%s\'\n", 355 hops[len++] = (uint8_t) num; 382 add_lid_hops(p_osm, p_sw, lid, guid, hops, len); 107 add_lid_hops(osm_opensm_t * p_osm, osm_switch_t * p_sw, uint16_t lid, ib_net64_t guid, uint8_t hops[], unsigned len) argument
|
H A D | osm_sa_multipath_record.c | 71 int hops; member in struct:osm_mpr_item 81 int hops; member in struct:osm_path_parms 185 int hops = 0; local 308 hops++; 732 p_parms->hops = hops; 736 " pkey = 0x%04X, sl = %u, hops = %u\n", mtu, rate, 737 pkt_life, cl_ntoh16(required_pkey), required_sl, hops); 863 p_pr_item->hops = path_parms.hops; [all...] |
H A D | osm_mcast_mgr.c | 139 uint32_t hops = 0; local 151 number of hops to its base LID. 173 hops += osm_switch_get_port_least_hops(p_sw, p_port); 183 avg_hops = (float)(hops / num_ports); 190 Calculate the maximal "min hops" from the given switch to any 199 uint32_t hops = 0; local 210 number of hops to its base LID. 232 hops = osm_switch_get_port_least_hops(p_sw, p_port); 233 if (hops > max_hops) 234 max_hops = hops; 261 float hops = 0; local [all...] |
H A D | osm_ucast_cache.c | 74 uint8_t **hops; member in struct:cache_switch 136 if (p_sw->hops) 137 free(p_sw->hops); 345 p_cache_sw->num_hops && p_cache_sw->hops); 356 if (p_sw->hops) 357 free(p_sw->hops); 358 p_sw->hops = p_cache_sw->hops; 359 p_cache_sw->hops = NULL; 1005 if (!p_node->sw->num_hops || !p_node->sw->hops) { [all...] |
H A D | osm_ucast_mgr.c | 148 uint8_t hops; local 166 hops = osm_switch_get_least_hops(p_remote_sw, lid_ho); 167 if (hops == OSM_NO_PATH) 169 hops++; 170 if (hops < 173 (p_this_sw, lid_ho, port_num, hops) != 0) 175 "cannot set hops for lid %u at switch 0x%" 255 The lid matrix contains the number of hops to each
|
H A D | osm_ucast_updn.c | 287 /* hack: preserve min hops entries to any other root switches */ 294 if (p_sw->hops[i]) { 301 memset(p_sw->hops[i], 0xff, p_sw->num_ports);
|
/freebsd-9.3-release/lib/libncp/ |
H A D | ipxsap.h | 57 u_short hops; member in struct:sap_entry 83 void sap_rq_response(struct sap_rq* out,u_short type,char *name,struct sockaddr_ipx* addr,u_short hops,int down_allow); 84 void sap_rq_gns_response(struct sap_rq* out,u_short type,char * name,struct sockaddr_ipx* addr,u_short hops);
|
H A D | sap.c | 159 sap_rq_general_response(struct sap_rq* rq,u_short type,char *name,struct sockaddr_ipx* addr, u_short hops,int down_allow) argument 163 if (hops >= IPX_SAP_SERVER_DOWN && !down_allow) return; 174 sep->hops = htons(hops); 179 sap_rq_gns_response(struct sap_rq* rq,u_short type,char *name,struct sockaddr_ipx* addr,u_short hops) argument 183 if (hops >= IPX_SAP_SERVER_DOWN) return; 190 sep->hops = htons(hops);
|
/freebsd-9.3-release/contrib/ofed/management/opensm/include/opensm/ |
H A D | osm_switch.h | 101 uint8_t **hops; member in struct:osm_switch 128 * Size of hops table for this switch. 130 * hops 255 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? 256 OSM_NO_PATH : p_sw->hops[lid_ho][port_num]; 317 * Cleanup existing hops tables (lid matrix) 337 * Returns the number of hops in the short path to this lid from 346 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? 347 OSM_NO_PATH : p_sw->hops[lid_ho][0]; 358 * Returns the number of hops i [all...] |
/freebsd-9.3-release/libexec/bootpd/bootpgw/ |
H A D | bootpgw.c | 125 u_char maxhops = 4; /* Number of hops allowed for requests. */ 525 u_char hops; 539 hops = bp->bp_hops; 540 if (++hops > maxhops) { 545 bp->bp_hops = hops; 521 u_char hops; local
|
/freebsd-9.3-release/sbin/dhclient/ |
H A D | dhcp.h | 62 u_int8_t hops; /* Number of relay agent hops from client */ member in struct:dhcp_packet
|
H A D | dhclient.c | 1578 ip->client->packet.hops = 0; 1702 ip->client->packet.hops = 0; 1786 ip->client->packet.hops = 0;
|
/freebsd-9.3-release/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 82 * internet host. We find out intermediate hops by launching probe 87 * defaults to 30 hops & can be changed with the -m flag). Three 104 * traceroute to nis.nsf.net (35.1.1.48), 30 hops max, 56 byte packet 124 * traceroute to allspice.lcs.mit.edu (18.26.0.115), 30 hops max 145 * MIT.) Note that the gateways 12, 14, 15, 16 & 17 hops away 180 * length. I.e., rip is really only 7 hops away. A reply that 302 u_char hops; /* hop limit of the packet */ member in struct:opacket 338 /* XXX: 2064 = 127(max hops in type 0 rthdr) * sizeof(ip6_hdr) + 16(margin) */ 374 u_long probe, hops, lport; local 899 fprintf(stderr, ", %lu hops ma [all...] |
/freebsd-9.3-release/contrib/ntp/clockstuff/ |
H A D | propdelay.c | 284 int hops; local 287 hops = finddelay(lat1, long1, lat2, long2, h, &delay); 288 printf("%sheight %g km, hops %d, delay %g seconds\n", 289 str, h, hops, delay); 403 * height and number of hops. 418 printf("waveangle dist %g height %g hops %d angle %g\n", 442 printf("propdelay dist %g height %g hops %d time %g\n", 463 int n; /* number of hops */
|
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-decnet.c | 72 int dst, src, hops; local 138 hops = EXTRACT_LE_8BITS(rhp->rh_long.lg_visits); 146 hops = (EXTRACT_LE_8BITS(rhp->rh_short.sh_visits) & VIS_MASK)+1; 165 (void)printf("%d hops ", hops); 348 (void)printf("{ids %d-%d cost %d hops %d} ", id, id + count, 378 (void)printf("{areas %d-%d cost %d hops %d} ", area, area + count,
|
/freebsd-9.3-release/contrib/wpa/src/drivers/ |
H A D | driver_wired.c | 71 u_int8_t hops; member in struct:dhcp_message
|
/freebsd-9.3-release/sbin/ping6/ |
H A D | ping6.c | 603 errx(1, "too many intermediate hops"); 899 int hops, error; local 920 for (hops = 0; hops < argc - 1; hops++) { 923 if ((error = getaddrinfo(argv[hops], NULL, &hints, 2808 "[hops ...] host\n");
|
/freebsd-9.3-release/sys/netinet6/ |
H A D | icmp6.c | 1064 * is 0, all intermediate hops must 1069 int hops; local 1086 (hops = rth0->ip6r0_len/2)) 1087 finaldst = (struct in6_addr *)(rth0 + 1) + (hops - 1);
|