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/icmp_proto.h> 8 : 9 0 : IcmpProto::IcmpProto(Agent *agent, boost::asio::io_context &io) : 10 0 : Proto(agent, "Agent::Services", PktHandler::ICMP, io) { 11 : // limit the number of entries in the workqueue 12 0 : work_queue_.SetSize(agent->params()->services_queue_limit()); 13 0 : work_queue_.SetBounded(true); 14 0 : } 15 : 16 0 : IcmpProto::~IcmpProto() { 17 0 : } 18 : 19 0 : ProtoHandler *IcmpProto::AllocProtoHandler(boost::shared_ptr<PktInfo> info, 20 : boost::asio::io_context &io) { 21 0 : return new IcmpHandler(agent(), info, io); 22 : }