Skip to content

Commit 5858132

Browse files
authored
Merge pull request #439 from adriancostin6/dns-comment-fix
Fix getter being labeled as setter in dns header file comments
2 parents e90e377 + 16f5795 commit 5858132

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

include/tins/dns.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ class TINS_API DNS : public PDU {
652652
// Getters
653653

654654
/**
655-
* \brief Setter for the id field.
655+
* \brief Getter for the id field.
656656
*
657657
* \return uint16_t containing the value of the id field.
658658
*/
@@ -661,7 +661,7 @@ class TINS_API DNS : public PDU {
661661
}
662662

663663
/**
664-
* \brief Setter for the query response field.
664+
* \brief Getter for the query response field.
665665
*
666666
* \return QRType containing the value of the query response
667667
* field.
@@ -671,7 +671,7 @@ class TINS_API DNS : public PDU {
671671
}
672672

673673
/**
674-
* \brief Setter for the opcode field.
674+
* \brief Getter for the opcode field.
675675
*
676676
* \return uint8_t containing the value of the opcode field.
677677
*/
@@ -680,7 +680,7 @@ class TINS_API DNS : public PDU {
680680
}
681681

682682
/**
683-
* \brief Setter for the authoritative answer field.
683+
* \brief Getter for the authoritative answer field.
684684
*
685685
* \return uint8_t containing the value of the authoritative
686686
* answer field.
@@ -690,7 +690,7 @@ class TINS_API DNS : public PDU {
690690
}
691691

692692
/**
693-
* \brief Setter for the truncated field.
693+
* \brief Getter for the truncated field.
694694
*
695695
* \return uint8_t containing the value of the truncated field.
696696
*/
@@ -699,7 +699,7 @@ class TINS_API DNS : public PDU {
699699
}
700700

701701
/**
702-
* \brief Setter for the recursion desired field.
702+
* \brief Getter for the recursion desired field.
703703
*
704704
* \return uint8_t containing the value of the recursion
705705
* desired field.
@@ -709,7 +709,7 @@ class TINS_API DNS : public PDU {
709709
}
710710

711711
/**
712-
* \brief Setter for the recursion available field.
712+
* \brief Getter for the recursion available field.
713713
*
714714
* \return uint8_t containing the value of the recursion
715715
* available field.
@@ -719,7 +719,7 @@ class TINS_API DNS : public PDU {
719719
}
720720

721721
/**
722-
* \brief Setter for the z desired field.
722+
* \brief Getter for the z desired field.
723723
*
724724
* \return uint8_t containing the value of the z field.
725725
*/
@@ -728,7 +728,7 @@ class TINS_API DNS : public PDU {
728728
}
729729

730730
/**
731-
* \brief Setter for the authenticated data field.
731+
* \brief Getter for the authenticated data field.
732732
*
733733
* \return uint8_t containing the value of the authenticated
734734
* data field.
@@ -738,7 +738,7 @@ class TINS_API DNS : public PDU {
738738
}
739739

740740
/**
741-
* \brief Setter for the checking disabled field.
741+
* \brief Getter for the checking disabled field.
742742
*
743743
* \return uint8_t containing the value of the checking
744744
* disabled field.
@@ -748,7 +748,7 @@ class TINS_API DNS : public PDU {
748748
}
749749

750750
/**
751-
* \brief Setter for the rcode field.
751+
* \brief Getter for the rcode field.
752752
*
753753
* \return uint8_t containing the value of the rcode field.
754754
*/
@@ -757,7 +757,7 @@ class TINS_API DNS : public PDU {
757757
}
758758

759759
/**
760-
* \brief Setter for the questions field.
760+
* \brief Getter for the questions field.
761761
*
762762
* \return uint16_t containing the value of the questions field.
763763
*/
@@ -766,7 +766,7 @@ class TINS_API DNS : public PDU {
766766
}
767767

768768
/**
769-
* \brief Setter for the answers field.
769+
* \brief Getter for the answers field.
770770
*
771771
* \return uint16_t containing the value of the answers field.
772772
*/
@@ -775,7 +775,7 @@ class TINS_API DNS : public PDU {
775775
}
776776

777777
/**
778-
* \brief Setter for the authority field.
778+
* \brief Getter for the authority field.
779779
*
780780
* \return uint16_t containing the value of the authority field.
781781
*/
@@ -784,7 +784,7 @@ class TINS_API DNS : public PDU {
784784
}
785785

786786
/**
787-
* \brief Setter for the additional field.
787+
* \brief Getter for the additional field.
788788
*
789789
* \return uint16_t containing the value of the additional field.
790790
*/

0 commit comments

Comments
 (0)