diff options
author | Francis Dupont <fdupont@isc.org> | 2020-05-09 14:44:22 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2020-05-26 11:51:57 +0200 |
commit | 25208e91c4d071409e844204bcf0833d0dcbd5e0 (patch) | |
tree | 3962574be769fb1733c6e0de8aa011e0b490612d /src/bin/dhcp6/dhcp6_srv.h | |
parent | [#1147] Simplified client4 to use one mutex (diff) | |
download | kea-25208e91c4d071409e844204bcf0833d0dcbd5e0.tar.xz kea-25208e91c4d071409e844204bcf0833d0dcbd5e0.zip |
[#1147] Split processPacket
Diffstat (limited to 'src/bin/dhcp6/dhcp6_srv.h')
-rw-r--r-- | src/bin/dhcp6/dhcp6_srv.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/bin/dhcp6/dhcp6_srv.h b/src/bin/dhcp6/dhcp6_srv.h index a7de75fae8..6845921bbc 100644 --- a/src/bin/dhcp6/dhcp6_srv.h +++ b/src/bin/dhcp6/dhcp6_srv.h @@ -151,7 +151,7 @@ public: /// @brief Process a single incoming DHCPv6 packet and sends the response. /// - /// It verifies correctness of the passed packet, call per-type processXXX + /// It verifies correctness of the passed packet, calls per-type processXXX /// methods, generates appropriate answer, sends the answer to the client. /// /// @param query A pointer to the packet to be processed. @@ -159,7 +159,7 @@ public: /// @brief Process a single incoming DHCPv6 packet and sends the response. /// - /// It verifies correctness of the passed packet, call per-type processXXX + /// It verifies correctness of the passed packet, calls per-type processXXX /// methods, generates appropriate answer, sends the answer to the client. /// /// @param query A pointer to the packet to be processed. @@ -169,19 +169,36 @@ public: /// /// @param callout_handle pointer to the callout handle. /// @param query A pointer to the packet to be processed. - /// @param rsp A pointer to the response + /// @param rsp A pointer to the response. void sendResponseNoThrow(hooks::CalloutHandlePtr& callout_handle, Pkt6Ptr& query, Pkt6Ptr& rsp); /// @brief Process a single incoming DHCPv6 packet. /// - /// It verifies correctness of the passed packet, call per-type processXXX + /// It verifies correctness of the passed packet, calls per-type processXXX /// methods, generates appropriate answer. /// /// @param query A pointer to the packet to be processed. - /// @param rsp A pointer to the response + /// @param rsp A pointer to the response. void processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp); + /// @brief Process a single incoming DHCPv6 query. + /// + /// It calls per-type processXXX methods, generates appropriate answer. + /// + /// @param query A pointer to the packet to be processed. + /// @param rsp A pointer to the response. + void processDhcp6Query(Pkt6Ptr& query, Pkt6Ptr& rsp); + + /// @brief Process a single incoming DHCPv6 query. + /// + /// It calls per-type processXXX methods, generates appropriate answer, + /// sends the answer to the client. + /// + /// @param query A pointer to the packet to be processed. + /// @param rsp A pointer to the response. + void processDhcp6QueryAndSendResponse(Pkt6Ptr& query, Pkt6Ptr& rsp); + /// @brief Instructs the server to shut down. void shutdown(); |