OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
mac_learning_proto_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef SRC_VNSW_AGENT_MAC_LEARNING_MAC_LEARNING_PROTO_HANDLER_H_
6
#define SRC_VNSW_AGENT_MAC_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_learning.h
"
15
16
class
MacLearningProtoHandler
:
public
ProtoHandler
{
17
public
:
18
MacLearningProtoHandler
(
Agent
*
agent
,
19
boost::shared_ptr<PktInfo> info,
20
boost::asio::io_context &io);
21
virtual
~MacLearningProtoHandler
() {}
22
bool
Run
();
23
private
:
24
void
IngressPktHandler
();
25
void
EgressPktHandler
();
26
void
Log
(std::string str);
27
const
Interface
*
intf_
;
28
const
VrfEntry
*
vrf_
;
29
MacLearningPartition
*
table_
;
30
MacLearningEntryPtr
entry_
;
31
DISALLOW_COPY_AND_ASSIGN
(
MacLearningProtoHandler
);
32
};
33
#endif
MacLearningProtoHandler::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MacLearningProtoHandler)
proto_handler.h
MacLearningProtoHandler::Log
void Log(std::string str)
Definition:
mac_learning_proto_handler.cc:15
MacLearningProtoHandler::EgressPktHandler
void EgressPktHandler()
Definition:
mac_learning_proto_handler.cc:43
VrfEntry
Definition:
vrf.h:86
MacLearningProtoHandler::Run
bool Run()
Definition:
mac_learning_proto_handler.cc:67
MacLearningProtoHandler::MacLearningProtoHandler
MacLearningProtoHandler(Agent *agent, boost::shared_ptr< PktInfo > info, boost::asio::io_context &io)
Definition:
mac_learning_proto_handler.cc:8
mac_learning.h
MacLearningPartition
Definition:
mac_learning.h:206
ProtoHandler::agent
Agent * agent() const
Definition:
proto_handler.h:80
Agent
Definition:
agent.h:358
MacLearningProtoHandler::IngressPktHandler
void IngressPktHandler()
Definition:
mac_learning_proto_handler.cc:30
Interface
Definition:
interface.h:23
MacLearningProtoHandler::table_
MacLearningPartition * table_
Definition:
mac_learning_proto_handler.h:29
MacLearningProtoHandler::entry_
MacLearningEntryPtr entry_
Definition:
mac_learning_proto_handler.h:30
MacLearningProtoHandler::~MacLearningProtoHandler
virtual ~MacLearningProtoHandler()
Definition:
mac_learning_proto_handler.h:21
agent.h
MacLearningProtoHandler::intf_
const Interface * intf_
Definition:
mac_learning_proto_handler.h:27
agent_cmn.h
ProtoHandler
Definition:
proto_handler.h:28
queue_task.h
MacLearningProtoHandler
Definition:
mac_learning_proto_handler.h:16
MacLearningProtoHandler::vrf_
const VrfEntry * vrf_
Definition:
mac_learning_proto_handler.h:28
proto.h
MacLearningEntryPtr
boost::shared_ptr< MacLearningEntry > MacLearningEntryPtr
Definition:
mac_learning_base.h:16
contrail
controller
src
vnsw
agent
mac_learning
mac_learning_proto_handler.h
Generated by
1.8.5