Lines Matching refs:zone

88 static u_int  hzonehash=0;	/* hash val of home zone */
147 p += (*p +1); /* p -> zone */
207 char zone[35],object[35],type[35];
208 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone));
213 ("nbp_LKUP for:%s:%s@%s", object, type, zone));
221 /* true if home zone == destination zone */
282 /*### LD 01/18/94 Check if the dest is also the home zone. */
287 ("nbp_input: FWDRQ:zone not found\n"));
291 zhome = TRUE; /* one of our ports is in destination zone */
326 register int zno; /* zone table entry numb */
327 register int ztind; /* zone bitmap index into RT_entry */
328 register int ztbit; /* zone bit to check within above index */
329 register int zhome=0; /* true if home zone == destination zone */
351 zhome = TRUE; /* one of our ports is in destination zone */
365 if (!(rt->ZoneBitMap[ztind] & ztbit)) /* if zone not in route, skip*/
487 register int checkLocal; /* if true check if local zone */
489 register at_nvestr_t *object, *type, *zone;
509 zone = (at_nvestr_t *)(&type->str[type->len]);
512 zone->len > NBP_NVE_STR_SIZE) {
522 strlcpy(xzone,zone->str, sizeof(xzone));
530 /* Is this request for our zone ?? */
531 nbp_req->nve.zone.len = zone->len;
533 bcopy(zone->str,nbp_req->nve.zone.str, zone->len);
535 if (checkLocal && !isZoneLocal(zone)) {
537 strlcpy((char *)str,(char *)zone->str,sizeof(str));
539 ("nbp_val_n_hash bad zone: %s\n", str));
544 if (!DEFAULT_ZONE(zone)) {
545 nbp_req->nve.zone_hash = nbp_strhash(& nbp_req->nve.zone);
622 char zone[35],object[35],type[35];
623 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone));
628 object, type, zone));
696 char zone[35],object[35],type[35];
697 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone));
701 ("nbp_search: looking for %s:%s@%s resp:0x%x\n",object,type,zone,
713 ("nbp_search: no match for zone, req hash:%x\n",
717 else { /* for this entry's zone OR no zone in request or entry */
719 empty PRAM can an entry have '*' for it's zone
721 at_nvestr_t *ezone=&nve_entry->zone;
722 at_nvestr_t *rzone=&nbp_req->nve.zone;
776 char zone[35],object[35],type[35];
778 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone));
783 object, type, zone, (int)nve_entry->address.net));
811 2 + /* zone */
865 * since for zone names, squiggly
997 void nbp_add_multicast(zone, ifID)
998 at_nvestr_t *zone;
1003 if (zone->str[0] == '*')
1008 strlcpy((char *)str,(char *)zone->str,sizeof(str));
1012 zt_get_zmcast(ifID, zone, data);
1096 while (bytesread < size) { /* for each new zone */
1124 /* add new zone */
1161 isZoneLocal(zone)
1162 at_nvestr_t *zone;
1166 if (DEFAULT_ZONE(zone))
1171 if (!nbp_strcmp(pnve,zone,0))
1181 int zno; /* zone number in virtual list to
1182 return, 0 for first zone */
1183 /* returns pointer to a new local zone number zno,
1197 int zno; /* zone number in virtual list to
1198 return, 0 for first zone */
1201 int curz=0; /* current zone */
1245 entity->zone.len > NBP_NVE_STR_SIZE) {
1252 nve->zone = entity->zone;
1254 if (!isZoneLocal(&entity->zone)) {
1258 /* if there's no zone, '*' gets filled in when entry is created */
1259 if (!DEFAULT_ZONE(&entity->zone))
1260 nve->zone_hash = nbp_strhash(&nve->zone);
1313 ("nbp_find_nve: no match for zone, req hash:%x\n",
1362 at_nvestr_t *zone;
1385 if (DEFAULT_ZONE(&nve_entry->zone)) {
1386 /* put actual zone name in entry instead of "*" */
1387 /* if single port mode and no zone name, then a router
1388 is down, so use pram zone name hint from elap cfg */
1390 zone = &ifID_home->startup_zone;
1392 zone = &ifID_home->ifZoneName;
1394 new_entry->zone = *zone;
1395 if ( new_entry->zone.len == 0 ) {
1396 new_entry->zone.str[0] = '*';
1397 new_entry->zone.len = 1;
1399 new_entry->zone_hash = nbp_strhash(&new_entry->zone);
1409 char zone[35],object[35],type[35];
1410 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone));
1415 object, type, zone,
1420 nbp_add_multicast(&new_entry->zone, ifID);
1451 if (DEFAULT_ZONE(&nbpP->name.zone)) {
1452 /* multihoming mode with the default zone specified */
1471 nve.zone = ifID->ifZoneName;
1472 nve.zone_hash = nbp_strhash(&nve.zone);
1483 /* multihoming mode with a specific zone specified */
1484 /* see which segments (interfaces) are seeded for this zone */
1487 if (!(zno = zt_find_zname(&nve.zone))) {
1489 ("nbp_mh_reg: didn't find zone name\n"));
1497 /* zone doesn't match */
1500 /* the zone matches, so unless the