Line data Source code
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> 7 : #include <services/icmpv6_error_proto.h> 8 : #include <services/icmpv6_error_handler.h> 9 : 10 1 : Icmpv6ErrorProto::Icmpv6ErrorProto(Agent *agent, boost::asio::io_context &io) : 11 1 : Proto(agent, "Agent::Services", PktHandler::ICMPV6_ERROR, io) { 12 : // limit the number of entries in the workqueue 13 1 : work_queue_.SetSize(agent->params()->services_queue_limit()); 14 1 : work_queue_.SetBounded(true); 15 1 : } 16 : 17 2 : Icmpv6ErrorProto::~Icmpv6ErrorProto() { 18 2 : } 19 : 20 0 : ProtoHandler *Icmpv6ErrorProto::AllocProtoHandler(boost::shared_ptr<PktInfo> info, 21 : boost::asio::io_context &io) { 22 0 : return new Icmpv6ErrorHandler(agent(), this, info, &io); 23 : } 24 :