-
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: 78306 b: refs/heads/master c: c01cd42 h: refs/heads/master v: v3
- Loading branch information
Patrick McHardy
authored and
David S. Miller
committed
Jan 28, 2008
1 parent
9dfd0a3
commit 91ea1eb
Showing
9 changed files
with
41 additions
and
31 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: f9d8928f8340ab8e76f1da4799cb19a6ff58b83d | ||
refs/heads/master: c01cd429fc118c5db92475c5f08b307718aa4efc |
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,32 @@ | ||
#ifndef _NF_QUEUE_H | ||
#define _NF_QUEUE_H | ||
|
||
/* Each queued (to userspace) skbuff has one of these. */ | ||
struct nf_info { | ||
struct nf_hook_ops *elem; | ||
int pf; | ||
unsigned int hook; | ||
struct net_device *indev; | ||
struct net_device *outdev; | ||
int (*okfn)(struct sk_buff *); | ||
}; | ||
|
||
#define nf_info_reroute(x) ((void *)x + sizeof(struct nf_info)) | ||
|
||
/* Packet queuing */ | ||
struct nf_queue_handler { | ||
int (*outfn)(struct sk_buff *skb, | ||
struct nf_info *info, | ||
unsigned int queuenum); | ||
char *name; | ||
}; | ||
|
||
extern int nf_register_queue_handler(int pf, | ||
const struct nf_queue_handler *qh); | ||
extern int nf_unregister_queue_handler(int pf, | ||
const struct nf_queue_handler *qh); | ||
extern void nf_unregister_queue_handlers(const struct nf_queue_handler *qh); | ||
extern void nf_reinject(struct sk_buff *skb, struct nf_info *info, | ||
unsigned int verdict); | ||
|
||
#endif /* _NF_QUEUE_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
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
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