OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
packet_header.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef __AGENT_PACKET_HEADER_H__
6 #define __AGENT_PACKET_HEADER_H__
7 
8 #include <boost/asio/detail/socket_types.hpp>
9 #include <boost/asio/ip/address.hpp>
10 #include <cmn/agent_cmn.h>
11 #include <cmn/agent.h>
12 
13 struct PacketHeader {
14  //typedef std::vector<uint32_t> sgl;
16  dst_ip(), dst_policy_id(),
17  protocol(0), src_port(0), dst_port(0) , family(Address::UNSPEC) {};
18  uint32_t vrf;
23  uint32_t src_sg_id;
28  uint8_t protocol;
29  uint16_t src_port;
30  uint16_t dst_port;
32 };
33 
34 #endif
uint32_t src_sg_id
Definition: packet_header.h:23
const SecurityGroupList * dst_sg_id_l
Definition: packet_header.h:26
Family
Definition: address.h:24
boost::asio::ip::address IpAddress
Definition: address.h:13
std::vector< int > SecurityGroupList
Definition: agent.h:201
TagList dst_tags_
Definition: packet_header.h:27
const VnListType * src_policy_id
Definition: packet_header.h:20
const SecurityGroupList * src_sg_id_l
Definition: packet_header.h:21
uint16_t src_port
Definition: packet_header.h:29
uint32_t vrf
Definition: packet_header.h:17
IpAddress src_ip
Definition: packet_header.h:19
std::set< std::string > VnListType
Definition: agent.h:212
const VnListType * dst_policy_id
Definition: packet_header.h:25
uint16_t dst_port
Definition: packet_header.h:30
IpAddress dst_ip
Definition: packet_header.h:24
uint8_t protocol
Definition: packet_header.h:28
Address::Family family
Definition: packet_header.h:31
TagList src_tags_
Definition: packet_header.h:22
std::vector< int > TagList
Definition: agent.h:202