42        return (
pkt_->getTransid());
 
 
   49        pkt_->setTransid(xid);
 
 
   61        auto buffer = 
pkt_->getBuffer();
 
   64        uint16_t size = 
static_cast<uint16_t
>(buffer.getLength());
 
   66        wire_data_.push_back(
static_cast<uint8_t
>((size & 0xff00U) >> 8));
 
   67        wire_data_.push_back(
static_cast<uint8_t
>(size & 0x00ffU));
 
   70        auto const& 
data = buffer.getVector();
 
 
 
 
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
virtual ~BlqMsg()
Destructor.
size_t getWireSize() const
Returns size of the packed wire data.
void setXid(const Xid &xid)
Sets the transaction id.
BlqMsg(dhcp::PktPtr pkt)
Constructor.
tcp::WireData wire_data_
Holds the TCP stream wire form of the query.
dhcp::PktPtr pkt_
The DHCP(4/6) packet containing the query.
dhcp::PktPtr getPkt() const
Returns a pointer to the DHCPx packet.
void pack()
Packs the packet into wire form ready for TCP transmission.
Xid getXid() const
Returns the transaction id.
tcp::WireData & getWireData()
Returns a reference to the wire data.
dhcp::PktPtr getQuery()
Returns the DHCPx query packet.
BlqQuery(dhcp::PktPtr query)
Constructor.
virtual ~BlqQuery()
Destructor.
dhcp::PktPtr getResponse()
Returns the DHCPx response packet.
BlqResponse(dhcp::PktPtr response)
Constructor.
virtual ~BlqResponse()
Destructor.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< isc::dhcp::Pkt > PktPtr
A pointer to either Pkt4 or Pkt6 packet.
std::list< BlqQueryPtr > BlqQueryList
Contains a list of BlqQuery pointers.
boost::shared_ptr< BlqResponse > BlqResponsePtr
Defines a shared pointer to an BlqResponse.
uint32_t Xid
Defines a Bulk LeaseQuery transaction id.
std::list< BlqResponsePtr > BlqResponseList
Contains a list of BlqResponse pointers.
boost::shared_ptr< BlqQuery > BlqQueryPtr
Defines a shared pointer to an BlqQuery.
boost::shared_ptr< BlqMsg > BlqMsgPtr
Defines a shared pointer to an BlqMsg.
std::vector< uint8_t > WireData
Defines a data structure for storing raw bytes of data on the wire.
Defines the logger used by the top-level component of kea-lfc.