]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Request.cc
4 * DEBUG: section 49 SNMP Interface
9 #include "ipc/Messages.h"
10 #include "ipc/TypedMsgHdr.h"
11 #include "snmp/Request.h"
14 Snmp::Request::Request(int aRequestorId
, unsigned int aRequestId
,
15 const Pdu
& aPdu
, const Session
& aSession
,
16 int aFd
, const Ip::Address
& anAddress
):
17 Ipc::Request(aRequestorId
, aRequestId
),
18 pdu(aPdu
), session(aSession
), fd(aFd
), address(anAddress
)
22 Snmp::Request::Request(const Request
& request
):
23 Ipc::Request(request
.requestorId
, request
.requestId
),
24 pdu(request
.pdu
), session(request
.session
),
25 fd(request
.fd
), address(request
.address
)
29 Snmp::Request::Request(const Ipc::TypedMsgHdr
& msg
):
32 msg
.checkType(Ipc::mtSnmpRequest
);
33 msg
.getPod(requestorId
);
34 msg
.getPod(requestId
);
43 Snmp::Request::pack(Ipc::TypedMsgHdr
& msg
) const
45 msg
.setType(Ipc::mtSnmpRequest
);
46 msg
.putPod(requestorId
);
47 msg
.putPod(requestId
);
56 Snmp::Request::clone() const
58 return new Request(*this);