Added TC for dns request
This commit is contained in:
parent
e8e3deb056
commit
0774bcd26c
3 changed files with 24 additions and 2 deletions
|
|
@ -64,6 +64,7 @@ public class MulticastDNSClient extends ThreadedUDPNetwork implements ThreadedUD
|
|||
BinaryStructOutputStream out = new BinaryStructOutputStream(buffer);
|
||||
|
||||
DNSPacket dnsPacket = new DNSPacket();
|
||||
dnsPacket.getHeader().id = (int)(Math.random() * 0xFFFF);
|
||||
dnsPacket.getHeader().setDefaultQueryData();
|
||||
dnsPacket.addQuestion(new DNSPacketQuestion(
|
||||
service,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue