if (raw)
printf ("%s\n", string_val);
else
- printf ("Got `%s' record: %s\n", typename, string_val);
+ printf ("Got `%s' record: %s%s\n",
+ typename,
+ string_val,
+ (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_SUPPLEMENTAL)) ?
+ " (supplemental)" : "");
GNUNET_free (string_val);
}
GNUNET_SCHEDULER_shutdown ();
GNUNET_GNSRECORD_RF_PRIVATE = 2,
/**
- * This flag is currently unused; former RF_PENDING flag
- *
- * GNUNET_GNSRECORD_RF_UNUSED = 4,
+ * This is a supplemental record.
*/
+ GNUNET_GNSRECORD_RF_SUPPLEMENTAL = 4,
/**
* This expiration time of the record is a relative
}
/* append nick */
target[rd2_length] = *nick_rd;
+ /* Mark as supplemental */
+ target[rd2_length].flags = nick_rd->flags | GNUNET_GNSRECORD_RF_SUPPLEMENTAL;
target[rd2_length].expiration_time = latest_expiration;
target[rd2_length].data = (void *) &data[data_offset];
GNUNET_memcpy (&data[data_offset], nick_rd->data, nick_rd->data_size);