Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ipmr.c File Reference
#include <asm/uaccess.h>
#include <linux/types.h>
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/fcntl.h>
#include <linux/stat.h>
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/inet.h>
#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/igmp.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/mroute.h>
#include <linux/init.h>
#include <linux/if_ether.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/ip.h>
#include <net/protocol.h>
#include <linux/skbuff.h>
#include <net/route.h>
#include <net/sock.h>
#include <net/icmp.h>
#include <net/udp.h>
#include <net/raw.h>
#include <linux/notifier.h>
#include <linux/if_arp.h>
#include <linux/netfilter_ipv4.h>
#include <linux/compat.h>
#include <linux/export.h>
#include <net/ipip.h>
#include <net/checksum.h>
#include <net/netlink.h>
#include <net/fib_rules.h>

Go to the source code of this file.

Data Structures

struct  mr_table
 
struct  ipmr_rule
 
struct  ipmr_result
 

Macros

#define VIF_EXISTS(_mrt, _idx)   ((_mrt)->vif_table[_idx].dev != NULL)
 
#define ipmr_for_each_table(mrt, net)   for (mrt = net->ipv4.mrt; mrt; mrt = NULL)
 

Functions

int ip_mroute_setsockopt (struct sock *sk, int optname, char __user *optval, unsigned int optlen)
 
int ip_mroute_getsockopt (struct sock *sk, int optname, char __user *optval, int __user *optlen)
 
int ipmr_ioctl (struct sock *sk, int cmd, void __user *arg)
 
int ip_mr_input (struct sk_buff *skb)
 
int ipmr_get_route (struct net *net, struct sk_buff *skb, __be32 saddr, __be32 daddr, struct rtmsg *rtm, int nowait)
 
int __init ip_mr_init (void)
 

Macro Definition Documentation

#define ipmr_for_each_table (   mrt,
  net 
)    for (mrt = net->ipv4.mrt; mrt; mrt = NULL)

Definition at line 282 of file ipmr.c.

#define VIF_EXISTS (   _mrt,
  _idx 
)    ((_mrt)->vif_table[_idx].dev != NULL)

Definition at line 111 of file ipmr.c.

Function Documentation

int __init ip_mr_init ( void  )

Definition at line 2538 of file ipmr.c.

int ip_mr_input ( struct sk_buff skb)

Definition at line 1833 of file ipmr.c.

int ip_mroute_getsockopt ( struct sock sk,
int  optname,
char __user optval,
int __user optlen 
)

Definition at line 1351 of file ipmr.c.

int ip_mroute_setsockopt ( struct sock sk,
int  optname,
char __user optval,
unsigned int  optlen 
)

Definition at line 1202 of file ipmr.c.

int ipmr_get_route ( struct net net,
struct sk_buff skb,
__be32  saddr,
__be32  daddr,
struct rtmsg rtm,
int  nowait 
)

Definition at line 2059 of file ipmr.c.

int ipmr_ioctl ( struct sock sk,
int  cmd,
void __user arg 
)

Definition at line 1395 of file ipmr.c.