netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mcast.c File Reference
#include "mcast.h"
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <errno.h>
#include <limits.h>
#include <libnfnetlink/libnfnetlink.h>
Include dependency graph for mcast.c:

Macros

#define SO_RCVBUFFORCE   33
 
#define SO_SNDBUFFORCE   32
 

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)
 

Macro Definition Documentation

#define SO_RCVBUFFORCE   33

Referenced by mcast_server_create().

#define SO_SNDBUFFORCE   32

Referenced by mcast_client_create().

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 
)