Browse Source

[3184] Comments updated.

Tomek Mrugalski 11 years ago
parent
commit
77c44b8458
2 changed files with 16 additions and 1 deletions
  1. 12 1
      src/bin/dhcp4/tests/dhcp4_test_utils.h
  2. 4 0
      src/bin/dhcp4/tests/wireshark.cc

+ 12 - 1
src/bin/dhcp4/tests/dhcp4_test_utils.h

@@ -39,12 +39,13 @@ public:
     /// Also sets up initial configuration in CfgMgr.
     Dhcpv4SrvTest();
 
+    /// @brief destructor
     virtual ~Dhcpv4SrvTest() {
     }
 
     /// @brief Add 'Parameter Request List' option to the packet.
     ///
-    /// This function PRL option comprising the following option codes:
+    /// This function adds PRL option comprising the following option codes:
     /// - 5 - Name Server
     /// - 15 - Domain Name
     /// - 7 - Log Server
@@ -129,8 +130,18 @@ public:
     /// @param expected_clientid expected value of client-id
     void checkClientId(const Pkt4Ptr& rsp, const OptionPtr& expected_clientid);
 
+    /// @brief sets default fields in a captured packet
+    ///
+    /// Sets UDP ports, addresses and interface.
+    ///
+    /// @param pkt packet to have default fields set
     void captureSetDefaultFields(const Pkt4Ptr& pkt);
 
+    /// @brief returns captured DISCOVER that went through a relay
+    ///
+    /// See method code for a detailed explanation.
+    ///
+    /// @return relayed DISCOVER
     Pkt4Ptr captureRelayedDiscover();
 
     /// @brief Tests if Discover or Request message is processed correctly

+ 4 - 0
src/bin/dhcp4/tests/wireshark.cc

@@ -35,6 +35,10 @@
 /// 6. Coding guidelines line restrictions apply, so wrap your code as necessary
 /// 7. Make sure you decribe the capture appropriately
 /// 8. Follow whatever rest of the methods are doing (set ports, ifaces etc.)
+/// 9. To easily copy packet description, click File... -> Extract packet
+///    dissections -> as plain text file...
+///    (Make sure that the packet is expanded in the view. The text file will
+///    contain whatever expansion level you have in the graphical tree.)
 
 using namespace std;
 using namespace isc::asiolink;