-
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: 78539 b: refs/heads/master c: f01ffbd h: refs/heads/master i: 78537: 95f422f 78535: da88415 v: v3
- Loading branch information
Patrick McHardy
authored and
David S. Miller
committed
Jan 28, 2008
1 parent
94f4552
commit 36178d4
Showing
18 changed files
with
75 additions
and
56 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: cc01dcbd26865addfe9eb5431f1f9dbc511515ba | ||
refs/heads/master: f01ffbd6e7d001ccf9168b33507958a51ce0ffcf |
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,59 @@ | ||
#ifndef _NF_LOG_H | ||
#define _NF_LOG_H | ||
|
||
/* those NF_LOG_* defines and struct nf_loginfo are legacy definitios that will | ||
* disappear once iptables is replaced with pkttables. Please DO NOT use them | ||
* for any new code! */ | ||
#define NF_LOG_TCPSEQ 0x01 /* Log TCP sequence numbers */ | ||
#define NF_LOG_TCPOPT 0x02 /* Log TCP options */ | ||
#define NF_LOG_IPOPT 0x04 /* Log IP options */ | ||
#define NF_LOG_UID 0x08 /* Log UID owning local socket */ | ||
#define NF_LOG_MASK 0x0f | ||
|
||
#define NF_LOG_TYPE_LOG 0x01 | ||
#define NF_LOG_TYPE_ULOG 0x02 | ||
|
||
struct nf_loginfo { | ||
u_int8_t type; | ||
union { | ||
struct { | ||
u_int32_t copy_len; | ||
u_int16_t group; | ||
u_int16_t qthreshold; | ||
} ulog; | ||
struct { | ||
u_int8_t level; | ||
u_int8_t logflags; | ||
} log; | ||
} u; | ||
}; | ||
|
||
typedef void nf_logfn(unsigned int pf, | ||
unsigned int hooknum, | ||
const struct sk_buff *skb, | ||
const struct net_device *in, | ||
const struct net_device *out, | ||
const struct nf_loginfo *li, | ||
const char *prefix); | ||
|
||
struct nf_logger { | ||
struct module *me; | ||
nf_logfn *logfn; | ||
char *name; | ||
}; | ||
|
||
/* Function to register/unregister log function. */ | ||
int nf_log_register(int pf, struct nf_logger *logger); | ||
void nf_log_unregister(struct nf_logger *logger); | ||
void nf_log_unregister_pf(int pf); | ||
|
||
/* Calls the registered backend logging function */ | ||
void nf_log_packet(int pf, | ||
unsigned int hooknum, | ||
const struct sk_buff *skb, | ||
const struct net_device *in, | ||
const struct net_device *out, | ||
struct nf_loginfo *li, | ||
const char *fmt, ...); | ||
|
||
#endif /* _NF_LOG_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
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
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