18 #ifndef __included_mc_socket_h__ 19 #define __included_mc_socket_h__ 22 #include <netinet/in.h> 27 struct sockaddr_in tx_addr;
97 u32 a = ((i.as_u8[0] << 24)
98 | (i.as_u8[1] << 16) | (i.as_u8[2] << 8) | (i.as_u8[3] << 0));
99 return clib_host_to_net_u32 (a);
105 return clib_host_to_net_u16 ((i.as_u8[4] << 8) | i.as_u8[5]);
112 u32 a = ntohl (address_net_byte_order);
113 u32 p = port_host_byte_order;
114 i.as_u8[0] = (a >> 24) & 0xff;
115 i.as_u8[1] = (a >> 16) & 0xff;
116 i.as_u8[2] = (a >> 8) & 0xff;
117 i.as_u8[3] = (a >> 0) & 0xff;
118 i.as_u8[4] = (p >> 8) & 0xff;
119 i.as_u8[5] = (p >> 0) & 0xff;
126 char **intfc_probe_list,
127 int n_intfcs_to_probe);
int catchup_server_socket
clib_error_t * mc_socket_main_init(mc_socket_main_t *msm, char **intfc_probe_list, int n_intfcs_to_probe)
static_always_inline mc_peer_id_t mc_socket_set_peer_id(u32 address_net_byte_order, u32 port_host_byte_order)
struct mc_socket_main_t mc_socket_main_t
mc_multicast_socket_t multicast_sockets[MC_N_TRANSPORT_TYPE]
#define static_always_inline
mc_socket_catchup_t * catchups
u32 base_multicast_udp_port_host_byte_order
static u32 mc_socket_peer_id_get_port(mc_peer_id_t i)
uword * catchup_index_by_file_descriptor
u32 output_vector_n_written
sll srl srl sll sra u16x4 i
u32 if_ip4_address_net_byte_order
u32 multicast_tx_ip4_address_host_byte_order
char * multicast_interface_name
static u32 mc_socket_peer_id_get_address(mc_peer_id_t i)