Skip to content

Commit 6d0ff4e

Browse files
committed
add rd,ad,cd flag & withRd method
1 parent bc24589 commit 6d0ff4e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/Interfaces/Packet/PacketHeaderInterface.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,19 @@ public static function fromMessage(PacketMessageInterface|string $message): stat
4444
/**
4545
* Crate query header for request dns server
4646
*
47-
* @param int|string $opcode
47+
* @param int|string|ResourceRecordOpcodeInterface $opcode
4848
* @param ?int $id
49+
* @param bool $adFlag
50+
* @param bool $cdFlag
51+
* @param bool $rdFlag
4952
* @return PacketHeaderInterface
5053
*/
5154
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
5460
) : PacketHeaderInterface;
5561

5662
/**

0 commit comments

Comments
 (0)