-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDNSHeader.java
More file actions
94 lines (81 loc) · 2.36 KB
/
DNSHeader.java
File metadata and controls
94 lines (81 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/**
* Represents a DNSObject conforming to the DNS protcol for the header
* of a DNS packet.
*
* @author Chris Blades
* @version 12/20/2009
*/
public interface DNSHeader extends DNSObject {
/**
* Returns the identifier of this header.
*
* @return this headers identifier
*/
public int getIdentifier();
/**
* Returns the flags field of this header.
*
* @return the flags field of this header.
*/
public DNSFlagsField getFlags();
/**
* Returns the number of questions in a packet with this header.
*
* @return the number of questions field
*/
public int getNumQuestions();
/**
* Returns the number of answers in a packet with this header.
*
* @return the number of answers field
*/
public int getNumAnswers();
/**
* Returns the number of authority answers in a packet with this header.
*
* @return the number of authority answers field
*/
public int getNumAuthorityAnswers();
/**
* Returns the number of additional answers in a packet with this header.
*
* @return the number of additional answers field
*/
public int getNumAdditionalAnswers();
/**
* Sets the identifier of this header.
*
* @param identifier the new identifier of this header
*/
public void setIdentifier(int identifier);
/**
* Sets the flags field of this header
*
* @param flags the new flags field of this header.
*/
public void setFlags(DNSFlagsField flags);
/**
* Sets the number of questions field of this header.
*
* @param numQuestions the new number of questions
*/
public void setNumQuestions(int numQuestions);
/**
* Sets the number of answers field of this header.
*
* @param numAnswers the new number of answers
*/
public void setNumAnswers(int numAnswers);
/**
* Sets the number of authority answers field of this header.
*
* @param numAuthorityAnswers the new number of authority answers
*/
public void setNumAuthorityAnswers(int numAuthorityAnswers);
/**
* Sets the number of additional answers field of this header.
*
* @param numAdditionalAnswers the new number of additional answers
*/
public void setNumAdditionalAnswers(int numAdditionalAnswers);
}