// Copyright (C) 2022 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #ifndef ISC_PKT_TEMPLATE_H #define ISC_PKT_TEMPLATE_H #include #include #include namespace isc { namespace dhcp { /// @brief adapters for linking templates to qualified names /// @{ namespace { template struct AdapterPkt {}; template <> struct AdapterPkt { using type = Pkt4; }; template <> struct AdapterPkt { using type = Pkt6; }; } // namespace template using PktT = typename AdapterPkt::type; template using PktTPtr = boost::shared_ptr>; /// @} } // namespace dhcp } // namespace isc #endif // ISC_PKT_TEMPLATE_H