/// <summary> Add an additional answer to the record. Omit if there is no room.</summary> internal void AddAdditionalAnswer(DNSIncoming in_Renamed, DNSRecord rec) { if ((off < DNSConstants.MAX_MSG_TYPICAL - 200) && !rec.SuppressedBy(in_Renamed)) { WriteRecord(rec, 0); numAdditionals++; } }
/// <summary> Add an answer if it is not suppressed.</summary> internal void AddAnswer(DNSIncoming in_Renamed, DNSRecord rec) { if (numAuthorities > 0 || numAdditionals > 0) { // TODO is this the right exception throw new Exception("Answers must be added before authorities and additionals"); } if (!rec.SuppressedBy(in_Renamed)) { AddAnswer(rec, 0); } }