Example #1
0
 private int maxUDPSize(Message query) {
   OPTRecord opt = query.getOPT();
   if (opt == null) return DEFAULT_UDPSIZE;
   else return opt.getPayloadSize();
 }
Example #2
0
 private void applyEDNS(Message query) {
   if (queryOPT == null || query.getOPT() != null) return;
   query.addRecord(queryOPT, Section.ADDITIONAL);
 }