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
217ccfa0
Commit
217ccfa0
authored
May 11, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.ninka.net:/home/davem/src/BK/network-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
d0682bc8
cab71674
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
25 deletions
+31
-25
net/ipv4/netfilter/ip_fw_compat.c
net/ipv4/netfilter/ip_fw_compat.c
+1
-25
net/ipv4/netfilter/ip_fw_compat.h
net/ipv4/netfilter/ip_fw_compat.h
+28
-0
net/ipv4/netfilter/ip_fw_compat_masq.c
net/ipv4/netfilter/ip_fw_compat_masq.c
+1
-0
net/ipv4/netfilter/ip_fw_compat_redir.c
net/ipv4/netfilter/ip_fw_compat_redir.c
+1
-0
No files found.
net/ipv4/netfilter/ip_fw_compat.c
View file @
217ccfa0
...
...
@@ -15,34 +15,10 @@ struct notifier_block;
#include <linux/netfilter_ipv4/compat_firewall.h>
#include <linux/netfilter_ipv4/ip_conntrack.h>
#include <linux/netfilter_ipv4/ip_conntrack_core.h>
#include "ip_fw_compat.h"
static
struct
firewall_ops
*
fwops
;
/* From ip_fw_compat_redir.c */
extern
unsigned
int
do_redirect
(
struct
sk_buff
*
skb
,
const
struct
net_device
*
dev
,
u_int16_t
redirpt
);
extern
void
check_for_redirect
(
struct
sk_buff
*
skb
);
extern
void
check_for_unredirect
(
struct
sk_buff
*
skb
);
/* From ip_fw_compat_masq.c */
extern
unsigned
int
do_masquerade
(
struct
sk_buff
**
pskb
,
const
struct
net_device
*
dev
);
extern
unsigned
int
check_for_masq_error
(
struct
sk_buff
**
pskb
);
extern
unsigned
int
check_for_demasq
(
struct
sk_buff
**
pskb
);
extern
int
__init
masq_init
(
void
);
extern
void
masq_cleanup
(
void
);
/* They call these; we do what they want. */
int
register_firewall
(
int
pf
,
struct
firewall_ops
*
fw
)
{
...
...
net/ipv4/netfilter/ip_fw_compat.h
0 → 100644
View file @
217ccfa0
#ifndef _LINUX_IP_FW_COMPAT_H
#define _LINUX_IP_FW_COMPAT_H
/* From ip_fw_compat_redir.c */
extern
unsigned
int
do_redirect
(
struct
sk_buff
*
skb
,
const
struct
net_device
*
dev
,
u_int16_t
redirpt
);
extern
void
check_for_redirect
(
struct
sk_buff
*
skb
);
extern
void
check_for_unredirect
(
struct
sk_buff
*
skb
);
/* From ip_fw_compat_masq.c */
extern
unsigned
int
do_masquerade
(
struct
sk_buff
**
pskb
,
const
struct
net_device
*
dev
);
extern
void
check_for_masq_error
(
struct
sk_buff
**
pskb
);
extern
unsigned
int
check_for_demasq
(
struct
sk_buff
**
pskb
);
extern
int
__init
masq_init
(
void
);
extern
void
masq_cleanup
(
void
);
#endif
/* _LINUX_IP_FW_COMPAT_H */
net/ipv4/netfilter/ip_fw_compat_masq.c
View file @
217ccfa0
...
...
@@ -25,6 +25,7 @@
#include <linux/netfilter_ipv4/ip_nat.h>
#include <linux/netfilter_ipv4/ip_nat_core.h>
#include <linux/netfilter_ipv4/listhelp.h>
#include "ip_fw_compat.h"
#if 0
#define DEBUGP printk
...
...
net/ipv4/netfilter/ip_fw_compat_redir.c
View file @
217ccfa0
...
...
@@ -28,6 +28,7 @@ static DECLARE_LOCK(redir_lock);
#define ASSERT_WRITE_LOCK(x) MUST_BE_LOCKED(&redir_lock)
#include <linux/netfilter_ipv4/listhelp.h>
#include "ip_fw_compat.h"
#if 0
#define DEBUGP printk
...
...
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