netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mcast.h File Reference
#include <stdint.h>
#include <netinet/in.h>
#include <net/if.h>
Include dependency graph for mcast.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  mcast_conf
 
struct  mcast_stats
 
struct  mcast_sock
 

Functions

struct mcast_sockmcast_server_create (struct mcast_conf *conf)
 
void mcast_server_destroy (struct mcast_sock *m)
 
struct mcast_sockmcast_client_create (struct mcast_conf *conf)
 
void mcast_client_destroy (struct mcast_sock *m)
 
ssize_t mcast_send (struct mcast_sock *m, const void *data, int size)
 
ssize_t mcast_recv (struct mcast_sock *m, void *data, int size)
 
int mcast_get_fd (struct mcast_sock *m)
 
int mcast_isset (struct mcast_sock *m, fd_set *readfds)
 
int mcast_snprintf_stats (char *buf, size_t buflen, char *ifname, struct mcast_stats *s, struct mcast_stats *r)
 
int mcast_snprintf_stats2 (char *buf, size_t buflen, const char *ifname, const char *status, int active, struct mcast_stats *s, struct mcast_stats *r)
 

Function Documentation

void mcast_client_destroy ( struct mcast_sock m)

References mcast_sock::fd.

int mcast_get_fd ( struct mcast_sock m)

References mcast_sock::fd.

int mcast_isset ( struct mcast_sock m,
fd_set *  readfds 
)

References mcast_sock::fd.

ssize_t mcast_recv ( struct mcast_sock m,
void *  data,
int  size 
)
ssize_t mcast_send ( struct mcast_sock m,
const void *  data,
int  size 
)
void mcast_server_destroy ( struct mcast_sock m)

References mcast_sock::fd.

int mcast_snprintf_stats ( char *  buf,
size_t  buflen,
char *  ifname,
struct mcast_stats s,
struct mcast_stats r 
)
int mcast_snprintf_stats2 ( char *  buf,
size_t  buflen,
const char *  ifname,
const char *  status,
int  active,
struct mcast_stats s,
struct mcast_stats r 
)