Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
ping.c File Reference
#include <linux/uaccess.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/in.h>
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/inet.h>
#include <linux/netdevice.h>
#include <net/snmp.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <net/icmp.h>
#include <net/protocol.h>
#include <linux/skbuff.h>
#include <linux/proc_fs.h>
#include <linux/export.h>
#include <net/sock.h>
#include <net/ping.h>
#include <net/udp.h>
#include <net/route.h>
#include <net/inet_common.h>
#include <net/checksum.h>

Go to the source code of this file.

Data Structures

struct  pingfakehdr
 

Functions

void ping_err (struct sk_buff *skb, u32 info)
 
void ping_rcv (struct sk_buff *skb)
 
 EXPORT_SYMBOL (ping_prot)
 
void __init ping_init (void)
 

Variables

struct proto ping_prot
 

Function Documentation

EXPORT_SYMBOL ( ping_prot  )
void ping_err ( struct sk_buff skb,
u32  info 
)

Definition at line 320 of file ping.c.

void __init ping_init ( void  )

Definition at line 930 of file ping.c.

void ping_rcv ( struct sk_buff skb)

Definition at line 698 of file ping.c.

Variable Documentation

struct proto ping_prot
Initial value:
= {
.name = "PING",
.owner = THIS_MODULE,
.init = ping_init_sock,
.close = ping_close,
.disconnect = udp_disconnect,
.setsockopt = ip_setsockopt,
.getsockopt = ip_getsockopt,
.sendmsg = ping_sendmsg,
.recvmsg = ping_recvmsg,
.bind = ping_bind,
.backlog_rcv = ping_queue_rcv_skb,
.hash = ping_v4_hash,
.unhash = ping_v4_unhash,
.get_port = ping_v4_get_port,
.obj_size = sizeof(struct inet_sock),
}

Definition at line 728 of file ping.c.