MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / markAdditional

Method markAdditional

src/main/java/core/org/xbill/DNS/Cache.java:569–582  ·  view source on GitHub ↗
(RRset rrset, Set names)

Source from the content-addressed store, hash-verified

567}
568
569private static void
570markAdditional(RRset rrset, Set names) {
571 Record first = rrset.first();
572 if (first.getAdditionalName() == null)
573 return;
574
575 Iterator it = rrset.rrs();
576 while (it.hasNext()) {
577 Record r = (Record) it.next();
578 Name name = r.getAdditionalName();
579 if (name != null)
580 names.add(name);
581 }
582}
583
584/**
585 * Adds all data from a Message into the Cache. Each record is added with

Callers 1

addMessageMethod · 0.95

Calls 6

getAdditionalNameMethod · 0.95
firstMethod · 0.80
rrsMethod · 0.80
hasNextMethod · 0.80
nextMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected