Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
284bd053
Commit
284bd053
authored
Mar 29, 2004
by
David S. Miller
Committed by
Linus Torvalds
Mar 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: Missed these files in nf_log commit.
parent
62c12ea9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
include/linux/netfilter_ipv4/ip_logging.h
include/linux/netfilter_ipv4/ip_logging.h
+20
-0
include/linux/netfilter_ipv6/ip6_logging.h
include/linux/netfilter_ipv6/ip6_logging.h
+20
-0
include/linux/netfilter_logging.h
include/linux/netfilter_logging.h
+33
-0
No files found.
include/linux/netfilter_ipv4/ip_logging.h
0 → 100644
View file @
284bd053
/* IPv4 macros for the internal logging interface. */
#ifndef __IP_LOGGING_H
#define __IP_LOGGING_H
#ifdef __KERNEL__
#include <linux/socket.h>
#include <linux/netfilter_logging.h>
#define nf_log_ip_packet(pskb,hooknum,in,out,fmt,args...) \
nf_log_packet(AF_INET,pskb,hooknum,in,out,fmt,##args)
#define nf_log_ip(pfh,len,fmt,args...) \
nf_log(AF_INET,pfh,len,fmt,##args)
#define nf_ip_log_register(logging) nf_log_register(AF_INET,logging)
#define nf_ip_log_unregister(logging) nf_log_unregister(AF_INET,logging)
#endif
/*__KERNEL__*/
#endif
/*__IP_LOGGING_H*/
include/linux/netfilter_ipv6/ip6_logging.h
0 → 100644
View file @
284bd053
/* IPv6 macros for the nternal logging interface. */
#ifndef __IP6_LOGGING_H
#define __IP6_LOGGING_H
#ifdef __KERNEL__
#include <linux/socket.h>
#include <linux/netfilter_logging.h>
#define nf_log_ip6_packet(pskb,hooknum,in,out,fmt,args...) \
nf_log_packet(AF_INET6,pskb,hooknum,in,out,fmt,##args)
#define nf_log_ip6(pfh,len,fmt,args...) \
nf_log(AF_INET6,pfh,len,fmt,##args)
#define nf_ip6_log_register(logging) nf_log_register(AF_INET6,logging)
#define nf_ip6_log_unregister(logging) nf_log_unregister(AF_INET6,logging)
#endif
/*__KERNEL__*/
#endif
/*__IP6_LOGGING_H*/
include/linux/netfilter_logging.h
0 → 100644
View file @
284bd053
/* Internal logging interface, which relies on the real
LOG target modules */
#ifndef __LINUX_NETFILTER_LOGGING_H
#define __LINUX_NETFILTER_LOGGING_H
#ifdef __KERNEL__
#include <asm/atomic.h>
struct
nf_logging_t
{
void
(
*
nf_log_packet
)(
struct
sk_buff
**
pskb
,
unsigned
int
hooknum
,
const
struct
net_device
*
in
,
const
struct
net_device
*
out
,
const
char
*
prefix
);
void
(
*
nf_log
)(
char
*
pfh
,
size_t
len
,
const
char
*
prefix
);
};
extern
void
nf_log_register
(
int
pf
,
const
struct
nf_logging_t
*
logging
);
extern
void
nf_log_unregister
(
int
pf
,
const
struct
nf_logging_t
*
logging
);
extern
void
nf_log_packet
(
int
pf
,
struct
sk_buff
**
pskb
,
unsigned
int
hooknum
,
const
struct
net_device
*
in
,
const
struct
net_device
*
out
,
const
char
*
fmt
,
...);
extern
void
nf_log
(
int
pf
,
char
*
pfh
,
size_t
len
,
const
char
*
fmt
,
...);
#endif
/*__KERNEL__*/
#endif
/*__LINUX_NETFILTER_LOGGING_H*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment