Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
icmp.h File Reference
#include <linux/icmp.h>
#include <net/inet_sock.h>
#include <net/snmp.h>

Go to the source code of this file.

Data Structures

struct  icmp_err
 

Macros

#define ICMP_INC_STATS(net, field)   SNMP_INC_STATS((net)->mib.icmp_statistics, field)
 
#define ICMP_INC_STATS_BH(net, field)   SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field)
 
#define ICMPMSGOUT_INC_STATS(net, field)   SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field+256)
 
#define ICMPMSGIN_INC_STATS_BH(net, field)   SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field)
 

Functions

void icmp_send (struct sk_buff *skb_in, int type, int code, __be32 info)
 
int icmp_rcv (struct sk_buff *skb)
 
int icmp_init (void)
 
void icmp_out_count (struct net *net, unsigned char type)
 

Variables

struct icmp_err icmp_err_convert []
 

Macro Definition Documentation

#define ICMP_INC_STATS (   net,
  field 
)    SNMP_INC_STATS((net)->mib.icmp_statistics, field)

Definition at line 32 of file icmp.h.

#define ICMP_INC_STATS_BH (   net,
  field 
)    SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field)

Definition at line 33 of file icmp.h.

#define ICMPMSGIN_INC_STATS_BH (   net,
  field 
)    SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field)

Definition at line 35 of file icmp.h.

#define ICMPMSGOUT_INC_STATS (   net,
  field 
)    SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, field+256)

Definition at line 34 of file icmp.h.

Function Documentation

int icmp_init ( void  )

Definition at line 1089 of file icmp.c.

void icmp_out_count ( struct net net,
unsigned char  type 
)

Definition at line 270 of file icmp.c.

int icmp_rcv ( struct sk_buff skb)

Definition at line 848 of file icmp.c.

void icmp_send ( struct sk_buff skb_in,
int  type,
int  code,
__be32  info 
)

Definition at line 481 of file icmp.c.

Variable Documentation

struct icmp_err icmp_err_convert[]

Definition at line 120 of file icmp.c.