Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
syncookies.c File Reference
#include <linux/tcp.h>
#include <linux/random.h>
#include <linux/cryptohash.h>
#include <linux/kernel.h>
#include <net/ipv6.h>
#include <net/tcp.h>

Go to the source code of this file.

Macros

#define COOKIEBITS   24 /* Upper bits store count */
 
#define COOKIEMASK   (((__u32)1 << COOKIEBITS) - 1)
 
#define COUNTER_TRIES   4
 

Functions

__u32 cookie_v6_init_sequence (struct sock *sk, const struct sk_buff *skb, __u16 *mssp)
 
struct sockcookie_v6_check (struct sock *sk, struct sk_buff *skb)
 

Macro Definition Documentation

#define COOKIEBITS   24 /* Upper bits store count */

Definition at line 24 of file syncookies.c.

#define COOKIEMASK   (((__u32)1 << COOKIEBITS) - 1)

Definition at line 25 of file syncookies.c.

#define COUNTER_TRIES   4

Definition at line 45 of file syncookies.c.

Function Documentation

struct sock* cookie_v6_check ( struct sock sk,
struct sk_buff skb 
)
read

Definition at line 149 of file syncookies.c.

__u32 cookie_v6_init_sequence ( struct sock sk,
const struct sk_buff skb,
__u16 mssp 
)

Definition at line 115 of file syncookies.c.