OpenSDN source code
mac_ip_learning_proto_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef SRC_VNSW_AGENT_MAC_IP_LEARNING_MAC_LEARNING_PROTO_HANDLER_H_
6
#define SRC_VNSW_AGENT_MAC_IP_LEARNING_MAC_LEARNING_PROTO_HANDLER_H_
7
8
#include <net/if.h>
9
#include "
cmn/agent.h
"
10
#include "
cmn/agent_cmn.h
"
11
#include "
base/queue_task.h
"
12
#include "
pkt/proto.h
"
13
#include "
pkt/proto_handler.h
"
14
#include "
mac_learning/mac_ip_learning.h
"
15
16
class
MacIpLearningProtoHandler
:
public
ProtoHandler
{
17
public
:
18
MacIpLearningProtoHandler
(
Agent
*
agent
,
19
boost::shared_ptr<PktInfo> info,
20
boost::asio::io_context &
io
);
21
virtual
~MacIpLearningProtoHandler
() {}
22
bool
Run
();
23
private
:
24
void
PktHandler
();
25
void
Log
(std::string str);
26
const
Interface
*
intf_
;
27
const
VrfEntry
*
vrf_
;
28
MacIpLearningTable
*
table_
;
29
MacLearningEntryPtr
entry_
;
30
DISALLOW_COPY_AND_ASSIGN
(
MacIpLearningProtoHandler
);
31
};
32
#endif
agent.h
agent_cmn.h
Agent
Definition:
agent.h:360
Interface
Definition:
interface.h:23
MacIpLearningProtoHandler
Definition:
mac_ip_learning_proto_handler.h:16
MacIpLearningProtoHandler::table_
MacIpLearningTable * table_
Definition:
mac_ip_learning_proto_handler.h:28
MacIpLearningProtoHandler::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MacIpLearningProtoHandler)
MacIpLearningProtoHandler::Log
void Log(std::string str)
Definition:
mac_ip_learning_proto_handler.cc:15
MacIpLearningProtoHandler::vrf_
const VrfEntry * vrf_
Definition:
mac_ip_learning_proto_handler.h:27
MacIpLearningProtoHandler::Run
bool Run()
Definition:
mac_ip_learning_proto_handler.cc:31
MacIpLearningProtoHandler::~MacIpLearningProtoHandler
virtual ~MacIpLearningProtoHandler()
Definition:
mac_ip_learning_proto_handler.h:21
MacIpLearningProtoHandler::PktHandler
void PktHandler()
MacIpLearningProtoHandler::intf_
const Interface * intf_
Definition:
mac_ip_learning_proto_handler.h:26
MacIpLearningProtoHandler::MacIpLearningProtoHandler
MacIpLearningProtoHandler(Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
Definition:
mac_ip_learning_proto_handler.cc:8
MacIpLearningProtoHandler::entry_
MacLearningEntryPtr entry_
Definition:
mac_ip_learning_proto_handler.h:29
MacIpLearningTable
Definition:
mac_ip_learning.h:71
ProtoHandler
Definition:
proto_handler.h:28
ProtoHandler::agent
Agent * agent() const
Definition:
proto_handler.h:80
VrfEntry
Definition:
vrf.h:86
proto.h
mac_ip_learning.h
MacLearningEntryPtr
boost::shared_ptr< MacLearningEntry > MacLearningEntryPtr
Definition:
mac_learning_base.h:16
io
Definition:
io_utils.cc:11
proto_handler.h
queue_task.h
contrail
controller
src
vnsw
agent
mac_learning
mac_ip_learning_proto_handler.h
Generated by
1.9.1