Lines Matching defs:clone
167 nsap->clone = NULL;
180 * Change an existing SAP entry. If a clone exist for the old one,
181 * check if it is cheaper. If it is change to the clone, otherwise
197 * clone if one exist.
199 if (sap->clone && (ntohs(si->hops) != HOPCNT_INFINITY)) {
207 * from the clone list and free it.
210 * Use the values of the first clone and take it
213 osap = sap->clone;
218 nsap = osap->clone;
223 sap->clone = NULL;
230 psap->clone = osap->clone;
233 osap = psap->clone;
236 osap = osap->clone;
242 sap->clone = osap->clone;
262 * Add a clone to the specified SAP entry. A clone is a different
270 struct sap_info *clone,
276 if (ntohs(clone->hops) == HOPCNT_INFINITY)
286 ntohs(clone->ServType),
287 clone->ServName);
289 nsap->sap = *clone;
291 nsap->clone = NULL;
295 nsap->hash = saphash(clone->ServType, clone->ServName);
298 while (csap->clone)
299 csap = csap->clone;
300 csap->clone = nsap;
308 * If the service have clone, do a sap_change to it and free
309 * the clone.
314 if (sap->clone) {
315 sap_change(sap, &sap->clone->sap, &sap->clone->source);