MCProxy

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

#include "include/utils/mc_socket.hpp"
#include <sys/types.h>

Go to the source code of this file.

Classes

class  mroute_socket
 Wrapper for a multicast socket with additional functions to manipulate Linux kernel tables. More...

Defines

#define ADD_SIGNED_NUM_U16(r, a)   (r)+= (a); (r)+= ((r)>>16)
#define MROUTE_DEFAULT_TTL   1
#define MROUTE_RATE_LIMIT_ENDLESS   0
#define MROUTE_SOCKET_G_ADDR_V4   "238.99.99.99"
#define MROUTE_SOCKET_G_ADDR_V6   "FF02:0:0:0:99:99:99:99"
#define MROUTE_SOCKET_IF_NUM_ONE   0
#define MROUTE_SOCKET_IF_NUM_THREE   2
#define MROUTE_SOCKET_IF_NUM_TWO   1
#define MROUTE_SOCKET_IF_STR_ONE   "eth0"
#define MROUTE_SOCKET_IF_STR_THREE   "tun0"
#define MROUTE_SOCKET_IF_STR_TWO   "wlan0"
#define MROUTE_SOCKET_SRC_ADDR_V4   "141.22.27.157"
#define MROUTE_SOCKET_SRC_ADDR_V6   "fe80::5e26:aff:fe23:8dc1"
#define MROUTE_TTL_THRESHOLD   1

Define Documentation

#define ADD_SIGNED_NUM_U16 ( r,
 )     (r)+= (a); (r)+= ((r)>>16)
#define MROUTE_DEFAULT_TTL   1
#define MROUTE_RATE_LIMIT_ENDLESS   0

Referenced by mroute_socket::add_vif().

#define MROUTE_SOCKET_G_ADDR_V4   "238.99.99.99"
#define MROUTE_SOCKET_G_ADDR_V6   "FF02:0:0:0:99:99:99:99"
#define MROUTE_SOCKET_IF_NUM_THREE   2
#define MROUTE_SOCKET_IF_NUM_TWO   1
#define MROUTE_SOCKET_IF_STR_ONE   "eth0"
#define MROUTE_SOCKET_IF_STR_THREE   "tun0"
#define MROUTE_SOCKET_IF_STR_TWO   "wlan0"
#define MROUTE_SOCKET_SRC_ADDR_V4   "141.22.27.157"

simple test outputs

Referenced by mroute_socket::test_add_route(), and mroute_socket::test_del_route().

#define MROUTE_SOCKET_SRC_ADDR_V6   "fe80::5e26:aff:fe23:8dc1"
#define MROUTE_TTL_THRESHOLD   1

Referenced by mroute_socket::add_vif().