Browse Source

[3689] Trivial: rename infRequest to inf_request per coding guidelines.

Marcin Siodelski 10 years ago
parent
commit
c2217c352f
2 changed files with 8 additions and 8 deletions
  1. 6 6
      src/bin/dhcp6/dhcp6_srv.cc
  2. 2 2
      src/bin/dhcp6/dhcp6_srv.h

+ 6 - 6
src/bin/dhcp6/dhcp6_srv.cc

@@ -2501,24 +2501,24 @@ Dhcpv6Srv::processDecline(const Pkt6Ptr& decline) {
 }
 
 Pkt6Ptr
-Dhcpv6Srv::processInfRequest(const Pkt6Ptr& infRequest) {
+Dhcpv6Srv::processInfRequest(const Pkt6Ptr& inf_request) {
 
     // Let's create a simplified client context here.
-    AllocEngine::ClientContext6 ctx = createContext(infRequest);
+    AllocEngine::ClientContext6 ctx = createContext(inf_request);
 
     // Create a Reply packet, with the same trans-id as the client's.
-    Pkt6Ptr reply(new Pkt6(DHCPV6_REPLY, infRequest->getTransid()));
+    Pkt6Ptr reply(new Pkt6(DHCPV6_REPLY, inf_request->getTransid()));
 
     // Copy client options (client-id, also relay information if present)
-    copyClientOptions(infRequest, reply);
+    copyClientOptions(inf_request, reply);
 
     // Append default options, i.e. options that the server is supposed
     // to put in all messages it sends (server-id for now, but possibly other
     // options once we start supporting authentication)
-    appendDefaultOptions(infRequest, reply);
+    appendDefaultOptions(inf_request, reply);
 
     // Try to assign options that were requested by the client.
-    appendRequestedOptions(infRequest, reply, ctx);
+    appendRequestedOptions(inf_request, reply, ctx);
 
     return (reply);
 }

+ 2 - 2
src/bin/dhcp6/dhcp6_srv.h

@@ -242,8 +242,8 @@ protected:
 
     /// @brief Stub function that will handle incoming INF-REQUEST messages.
     ///
-    /// @param infRequest message received from client
-    Pkt6Ptr processInfRequest(const Pkt6Ptr& infRequest);
+    /// @param inf_request message received from client
+    Pkt6Ptr processInfRequest(const Pkt6Ptr& inf_request);
 
     /// @brief Creates status-code option.
     ///