OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
icmpv6_error_proto.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #include <cmn/agent_cmn.h>
6 #include <init/agent_init.h>
9 
10 Icmpv6ErrorProto::Icmpv6ErrorProto(Agent *agent, boost::asio::io_context &io) :
11  Proto(agent, "Agent::Services", PktHandler::ICMPV6_ERROR, io) {
12  // limit the number of entries in the workqueue
14  work_queue_.SetBounded(true);
15 }
16 
18 }
19 
20 ProtoHandler *Icmpv6ErrorProto::AllocProtoHandler(boost::shared_ptr<PktInfo> info,
21  boost::asio::io_context &io) {
22  return new Icmpv6ErrorHandler(agent(), this, info, &io);
23 }
24 
void SetBounded(bool bounded)
Definition: queue_task.h:200
ProtoHandler * AllocProtoHandler(boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
void SetSize(size_t size)
Definition: queue_task.h:196
Definition: agent.h:358
AgentParam * params() const
Definition: agent.h:1218
Icmpv6ErrorProto(Agent *agent, boost::asio::io_context &io)
uint32_t services_queue_limit()
Definition: agent_param.h:417