File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,19 @@ public static function fromMessage(PacketMessageInterface|string $message): stat
44
44
/**
45
45
* Crate query header for request dns server
46
46
*
47
- * @param int|string $opcode
47
+ * @param int|string|ResourceRecordOpcodeInterface $opcode
48
48
* @param ?int $id
49
+ * @param bool $adFlag
50
+ * @param bool $cdFlag
51
+ * @param bool $rdFlag
49
52
* @return PacketHeaderInterface
50
53
*/
51
54
public static function createQueryHeader (
52
- int |string $ opcode = Lookup::OPCODE_QUERY ,
53
- ?int $ id = null
55
+ int |string |ResourceRecordOpcodeInterface $ opcode = Lookup::OPCODE_QUERY ,
56
+ ?int $ id = null ,
57
+ bool $ adFlag = true ,
58
+ bool $ cdFlag = false ,
59
+ bool $ rdFlag = true
54
60
) : PacketHeaderInterface ;
55
61
56
62
/**
You can’t perform that action at this time.
0 commit comments