OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
services_sandesh.cc File Reference
#include "base/os.h"
#include <netinet/icmp6.h>
#include <boost/assign/list_of.hpp>
#include <pkt/pkt_handler.h>
#include <oper/mirror_table.h>
#include <oper/vn.h>
#include <pkt/pkt_init.h>
#include <services/services_init.h>
#include <services/dhcp_proto.h>
#include <services/dhcpv6_proto.h>
#include <services/arp_proto.h>
#include <services/bfd_proto.h>
#include <services/dns_proto.h>
#include <services/icmp_proto.h>
#include <services/igmp_proto.h>
#include <services/icmpv6_proto.h>
#include <services/metadata_proxy.h>
#include <services/services_types.h>
#include <services/services_sandesh.h>
#include <bind/bind_resolver.h>
#include <vr_defs.h>
Include dependency graph for services_sandesh.cc:

Go to the source code of this file.

Macros

#define SET_ICMPV6_INTERFACE_STATS(it, list)
 

Functions

static uint32_t get_val (void *data)
 
static void SandeshError (const std::string msg, const std::string &context)
 

Variables

std::map< uint16_t, std::string > g_ip_protocol_map
 
std::map< uint32_t, std::string > g_dhcp_msg_types
 
std::map< uint32_t, std::string > g_dhcpv6_msg_types
 

Macro Definition Documentation

#define SET_ICMPV6_INTERFACE_STATS (   it,
  list 
)
Value:
InterfaceIcmpv6Stats entry; \
VmInterface *vmi = it->first; \
const Icmpv6Proto::Icmpv6Stats &stats = it->second; \
entry.set_interface_index(vmi->id()); \
entry.set_icmpv6_router_solicit(stats.icmpv6_router_solicit_); \
entry.set_icmpv6_router_advert(stats.icmpv6_router_advert_); \
entry.set_icmpv6_ping_request(stats.icmpv6_ping_request_); \
entry.set_icmpv6_ping_response(stats.icmpv6_ping_response_); \
entry.set_icmpv6_neighbor_solicit(stats.icmpv6_neighbor_solicit_); \
entry.set_icmpv6_neighbor_solicited(stats.icmpv6_neighbor_solicited_); \
entry.set_icmpv6_neighbor_advert_solicited \
(stats.icmpv6_neighbor_advert_solicited_); \
entry.set_icmpv6_neighbor_advert_unsolicited \
(stats.icmpv6_neighbor_advert_unsolicited_); \
list.push_back(entry);

Definition at line 27 of file services_sandesh.cc.

Function Documentation

static uint32_t get_val ( void *  data)
static

Definition at line 411 of file services_sandesh.cc.

static void SandeshError ( const std::string  msg,
const std::string &  context 
)
static

Definition at line 1008 of file services_sandesh.cc.

Variable Documentation

std::map<uint32_t, std::string> g_dhcp_msg_types
Initial value:
=
boost::assign::map_list_of<uint32_t, std::string>
(DHCP_UNKNOWN, "Unknown")
(DHCP_DISCOVER, "Discover")
(DHCP_OFFER, "Offer")
(DHCP_REQUEST, "Request")
(DHCP_ACK, "Ack")
(DHCP_NAK, "Nack")
(DHCP_INFORM, "Inform")
(DHCP_DECLINE, "Decline")
(DHCP_RELEASE, "Release")
(DHCP_LEASE_QUERY, "Lease Query")
(DHCP_LEASE_UNASSIGNED, "Lease Unassigned")
(DHCP_LEASE_UNKNOWN, "Lease Unknown")
(DHCP_LEASE_ACTIVE, "Lease Active")
#define DHCP_REQUEST
Definition: dhcp_handler.h:185
#define DHCP_LEASE_UNASSIGNED
Definition: dhcp_handler.h:192
#define DHCP_INFORM
Definition: dhcp_handler.h:190
#define DHCP_LEASE_ACTIVE
Definition: dhcp_handler.h:194
#define DHCP_OFFER
Definition: dhcp_handler.h:184
#define DHCP_LEASE_QUERY
Definition: dhcp_handler.h:191
#define DHCP_LEASE_UNKNOWN
Definition: dhcp_handler.h:193
#define DHCP_ACK
Definition: dhcp_handler.h:187
#define DHCP_NAK
Definition: dhcp_handler.h:188
#define DHCP_DECLINE
Definition: dhcp_handler.h:186
#define DHCP_RELEASE
Definition: dhcp_handler.h:189
#define DHCP_UNKNOWN
Definition: dhcp_handler.h:182
#define DHCP_DISCOVER
Definition: dhcp_handler.h:183

Definition at line 54 of file services_sandesh.cc.

std::map<uint32_t, std::string> g_dhcpv6_msg_types
Initial value:
=
boost::assign::map_list_of<uint32_t, std::string>
(DHCPV6_UNKNOWN, "Unknown")
(DHCPV6_SOLICIT, "Solicit")
(DHCPV6_ADVERTISE, "Advertise")
(DHCPV6_REQUEST, "Request")
(DHCPV6_CONFIRM, "Confirm")
(DHCPV6_RENEW, "Renew")
(DHCPV6_REBIND, "Rebind")
(DHCPV6_REPLY, "Reply")
(DHCPV6_RELEASE, "Release")
(DHCPV6_DECLINE, "Decline")
(DHCPV6_RECONFIGURE, "Reconfigure")
(DHCPV6_INFORMATION_REQUEST, "Information Request")
#define DHCPV6_CONFIRM
#define DHCPV6_SOLICIT
#define DHCPV6_REPLY
#define DHCPV6_RENEW
#define DHCPV6_DECLINE
#define DHCPV6_ADVERTISE
#define DHCPV6_UNKNOWN
#define DHCPV6_RECONFIGURE
#define DHCPV6_REQUEST
#define DHCPV6_RELEASE
#define DHCPV6_REBIND
#define DHCPV6_INFORMATION_REQUEST

Definition at line 70 of file services_sandesh.cc.

std::map<uint16_t, std::string> g_ip_protocol_map
Initial value:
=
boost::assign::map_list_of<uint16_t, std::string>
(1, "icmp")
(2, "igmp")
(4, "ipv4")
(6, "tcp")
(17, "udp")
(41, "ipv6")
(47, "gre")

Definition at line 44 of file services_sandesh.cc.