OpenSDN source code
default_gateway.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef SRC_BGP_EXTENDED_COMMUNITY_DEFAULT_GATEWAY_H_
7 #define SRC_BGP_EXTENDED_COMMUNITY_DEFAULT_GATEWAY_H_
8 
10 
11 #include <boost/array.hpp>
12 #include <stdint.h>
13 
14 #include <string>
15 
17 public:
18  static const int kSize = 8;
19  typedef boost::array<uint8_t, kSize> bytes_type;
20 
21  explicit DefaultGateway(const bytes_type &data);
22  std::string ToString() const;
23 
24 private:
26 };
27 
28 #endif // SRC_BGP_EXTENDED_COMMUNITY_DEFAULT_GATEWAY_H_
boost::array< uint8_t, kSize > bytes_type
static const int kSize
DefaultGateway(const bytes_type &data)
std::string ToString() const
bytes_type data_