MCProxy

mcproxy/mcproxy/include/utils/mc_tables.hpp File Reference

#include "include/utils/addr_storage.hpp"
#include <netinet/in.h>
#include <map>
#include <vector>
#include <iostream>
#include <linux/mroute.h>
#include <linux/mroute6.h>

Go to the source code of this file.

Classes

struct  igmp_dev
 Represent the first raw in the Linux kernel table igmpX. More...
struct  igmp_group
 Represent the second raw in the Linux kernel table igmpX. More...
class  mc_tables
 Parse ipv4 and ipv6 kernel tables to usable data structures. More...
struct  mr_cache
 Represent a raw in the Linux kernel table ipX_mr_cache. More...
struct  mr_vif
 Represent a raw in the Linux kernel table ipX_mr_vif. More...
struct  SNMP6_value
 Represent a raw in the Linux kernel table snmp6. More...

Defines

#define JOINED_GROUP_PATH_V4   "/proc/net/igmp"
#define JOINED_GROUP_PATH_V6   "/proc/net/igmp6"
#define MAX_N_LINE_LENGTH   200
#define MR_CACHE_PATH_V4   "/proc/net/ip_mr_cache"
#define MR_CACHE_PATH_V6   "/proc/net/ip6_mr_cache"
#define SNMP6_PATH   "/proc/net/dev_snmp6"
#define VIF_PATH_V4   "/proc/net/ip_mr_vif"
#define VIF_PATH_V6   "/proc/net/ip6_mr_vif"

Typedefs

typedef map< string, MGroup_valueMGroup_map
typedef pair< string,
MGroup_value
MGroup_pair
typedef vector< addr_storageMGroup_value
typedef map< string, SNMP6_value > SNMP6_map
typedef pair< string, SNMP6_value > SNMP6_pair

Define Documentation

#define JOINED_GROUP_PATH_V4   "/proc/net/igmp"
#define JOINED_GROUP_PATH_V6   "/proc/net/igmp6"
#define MR_CACHE_PATH_V4   "/proc/net/ip_mr_cache"
#define MR_CACHE_PATH_V6   "/proc/net/ip6_mr_cache"
#define SNMP6_PATH   "/proc/net/dev_snmp6"
#define VIF_PATH_V4   "/proc/net/ip_mr_vif"

Referenced by mc_tables::refresh_vifs().

#define VIF_PATH_V6   "/proc/net/ip6_mr_vif"

Referenced by mc_tables::refresh_vifs().


Typedef Documentation

typedef map<string, MGroup_value > MGroup_map
typedef pair<string, MGroup_value > MGroup_pair
typedef vector<addr_storage> MGroup_value
typedef map<string, SNMP6_value > SNMP6_map
typedef pair<string, SNMP6_value > SNMP6_pair