-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 41910 b: refs/heads/master c: 77ab9cf h: refs/heads/master v: v3
- Loading branch information
Martin Josefsson
authored and
David S. Miller
committed
Dec 3, 2006
1 parent
528478f
commit f4639bd
Showing
11 changed files
with
453 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: d2e4bdc8704b0e711c5046a430bfd1681b0bd5a9 | ||
refs/heads/master: 77ab9cff0f4112703df3ef7903c1a15adb967114 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* connection tracking expectations. | ||
*/ | ||
|
||
#ifndef _NF_CONNTRACK_EXPECT_H | ||
#define _NF_CONNTRACK_EXPECT_H | ||
#include <net/netfilter/nf_conntrack.h> | ||
|
||
extern struct list_head nf_conntrack_expect_list; | ||
extern kmem_cache_t *nf_conntrack_expect_cachep; | ||
extern struct file_operations exp_file_ops; | ||
|
||
struct nf_conntrack_expect | ||
{ | ||
/* Internal linked list (global expectation list) */ | ||
struct list_head list; | ||
|
||
/* We expect this tuple, with the following mask */ | ||
struct nf_conntrack_tuple tuple, mask; | ||
|
||
/* Function to call after setup and insertion */ | ||
void (*expectfn)(struct nf_conn *new, | ||
struct nf_conntrack_expect *this); | ||
|
||
/* The conntrack of the master connection */ | ||
struct nf_conn *master; | ||
|
||
/* Timer function; deletes the expectation. */ | ||
struct timer_list timeout; | ||
|
||
/* Usage count. */ | ||
atomic_t use; | ||
|
||
/* Unique ID */ | ||
unsigned int id; | ||
|
||
/* Flags */ | ||
unsigned int flags; | ||
|
||
#ifdef CONFIG_NF_NAT_NEEDED | ||
/* This is the original per-proto part, used to map the | ||
* expected connection the way the recipient expects. */ | ||
union nf_conntrack_manip_proto saved_proto; | ||
/* Direction relative to the master connection. */ | ||
enum ip_conntrack_dir dir; | ||
#endif | ||
}; | ||
|
||
#define NF_CT_EXPECT_PERMANENT 0x1 | ||
|
||
|
||
struct nf_conntrack_expect * | ||
__nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple); | ||
|
||
struct nf_conntrack_expect * | ||
nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple); | ||
|
||
struct nf_conntrack_expect * | ||
find_expectation(const struct nf_conntrack_tuple *tuple); | ||
|
||
void nf_ct_unlink_expect(struct nf_conntrack_expect *exp); | ||
void nf_ct_remove_expectations(struct nf_conn *ct); | ||
void nf_conntrack_unexpect_related(struct nf_conntrack_expect *exp); | ||
|
||
/* Allocate space for an expectation: this is mandatory before calling | ||
nf_conntrack_expect_related. You will have to call put afterwards. */ | ||
struct nf_conntrack_expect *nf_conntrack_expect_alloc(struct nf_conn *me); | ||
void nf_conntrack_expect_put(struct nf_conntrack_expect *exp); | ||
int nf_conntrack_expect_related(struct nf_conntrack_expect *expect); | ||
|
||
#endif /*_NF_CONNTRACK_EXPECT_H*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.