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
default_gateway.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#include "
bgp/extended-community/default_gateway.h
"
6
7
#include <algorithm>
8
#include <string>
9
10
using
std::copy;
11
using
std::string;
12
13
DefaultGateway::DefaultGateway
(
const
bytes_type
&data) {
14
copy(data.begin(), data.end(),
data_
.begin());
15
}
16
17
string
DefaultGateway::ToString
()
const
{
18
return
string(
"defaultgw:0"
);
19
}
DefaultGateway::DefaultGateway
DefaultGateway(const bytes_type &data)
Definition:
default_gateway.cc:13
DefaultGateway::ToString
std::string ToString() const
Definition:
default_gateway.cc:17
DefaultGateway::bytes_type
boost::array< uint8_t, kSize > bytes_type
Definition:
default_gateway.h:18
DefaultGateway::data_
bytes_type data_
Definition:
default_gateway.h:24
default_gateway.h
contrail
controller
src
bgp
extended-community
default_gateway.cc
Generated by
1.8.5