Line data Source code
1 : /* 2 : * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. 3 : * Copyright Contributors to the OpenSDN project 4 : */ 5 : 6 : #include <cmn/agent_cmn.h> 7 : #include <init/agent_init.h> 8 : #include <services/icmp_proto.h> 9 : 10 2 : IcmpProto::IcmpProto(Agent *agent, boost::asio::io_context &io) : 11 2 : Proto(agent, "Agent::Services", PktHandler::ICMP, io) { 12 : // limit the number of entries in the workqueue 13 2 : work_queue_.SetSize(agent->params()->services_queue_limit()); 14 2 : work_queue_.SetBounded(true); 15 2 : } 16 : 17 4 : IcmpProto::~IcmpProto() { 18 4 : } 19 : 20 0 : ProtoHandler *IcmpProto::AllocProtoHandler(boost::shared_ptr<PktInfo> info, 21 : boost::asio::io_context &io) { 22 0 : return new IcmpHandler(agent(), info, io); 23 : }