Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip_options.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <linux/icmp.h>
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <net/sock.h>
#include <net/ip.h>
#include <net/icmp.h>
#include <net/route.h>
#include <net/cipso_ipv4.h>
#include <net/ip_fib.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "IPv4: " fmt
 

Functions

void ip_options_build (struct sk_buff *skb, struct ip_options *opt, __be32 daddr, struct rtable *rt, int is_frag)
 
int ip_options_echo (struct ip_options *dopt, struct sk_buff *skb)
 
void ip_options_fragment (struct sk_buff *skb)
 
int ip_options_compile (struct net *net, struct ip_options *opt, struct sk_buff *skb)
 
 EXPORT_SYMBOL (ip_options_compile)
 
void ip_options_undo (struct ip_options *opt)
 
int ip_options_get_from_user (struct net *net, struct ip_options_rcu **optp, unsigned char __user *data, int optlen)
 
int ip_options_get (struct net *net, struct ip_options_rcu **optp, unsigned char *data, int optlen)
 
void ip_forward_options (struct sk_buff *skb)
 
int ip_options_rcv_srr (struct sk_buff *skb)
 
 EXPORT_SYMBOL (ip_options_rcv_srr)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "IPv4: " fmt

Definition at line 12 of file ip_options.c.

Function Documentation

EXPORT_SYMBOL ( ip_options_compile  )
EXPORT_SYMBOL ( ip_options_rcv_srr  )
void ip_forward_options ( struct sk_buff skb)

Definition at line 561 of file ip_options.c.

void ip_options_build ( struct sk_buff skb,
struct ip_options opt,
__be32  daddr,
struct rtable rt,
int  is_frag 
)

Definition at line 43 of file ip_options.c.

int ip_options_compile ( struct net net,
struct ip_options opt,
struct sk_buff skb 
)

Definition at line 259 of file ip_options.c.

int ip_options_echo ( struct ip_options dopt,
struct sk_buff skb 
)

Definition at line 90 of file ip_options.c.

void ip_options_fragment ( struct sk_buff skb)

Definition at line 213 of file ip_options.c.

int ip_options_get ( struct net net,
struct ip_options_rcu **  optp,
unsigned char data,
int  optlen 
)

Definition at line 549 of file ip_options.c.

int ip_options_get_from_user ( struct net net,
struct ip_options_rcu **  optp,
unsigned char __user data,
int  optlen 
)

Definition at line 535 of file ip_options.c.

int ip_options_rcv_srr ( struct sk_buff skb)

Definition at line 608 of file ip_options.c.

void ip_options_undo ( struct ip_options opt)

Definition at line 487 of file ip_options.c.