-
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.
[NETFILTER]: nf_queue: move queueing related functions/struct to sepe…
…rate header Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Patrick McHardy
authored and
David S. Miller
committed
Jan 28, 2008
1 parent
f9d8928
commit c01cd42
Showing
8 changed files
with
40 additions
and
30 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
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