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