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
nexedi
linux
Commits
86b125f5
Commit
86b125f5
authored
Aug 02, 2003
by
Harald Welte
Committed by
David S. Miller
Aug 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: Use in-kernel IPSEC structures in iptables esp (by Patrick McHardy).
parent
eeb76312
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
net/ipv4/netfilter/ipt_esp.c
net/ipv4/netfilter/ipt_esp.c
+2
-5
No files found.
net/ipv4/netfilter/ipt_esp.c
View file @
86b125f5
/* Kernel module to match ESP parameters. */
/* Kernel module to match ESP parameters. */
#include <linux/module.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <linux/netfilter_ipv4/ipt_esp.h>
#include <linux/netfilter_ipv4/ipt_esp.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
...
@@ -13,10 +14,6 @@ MODULE_LICENSE("GPL");
...
@@ -13,10 +14,6 @@ MODULE_LICENSE("GPL");
#define duprintf(format, args...)
#define duprintf(format, args...)
#endif
#endif
struct
esphdr
{
__u32
spi
;
};
/* Returns 1 if the spi is matched by the range, 0 otherwise */
/* Returns 1 if the spi is matched by the range, 0 otherwise */
static
inline
int
static
inline
int
spi_match
(
u_int32_t
min
,
u_int32_t
max
,
u_int32_t
spi
,
int
invert
)
spi_match
(
u_int32_t
min
,
u_int32_t
max
,
u_int32_t
spi
,
int
invert
)
...
@@ -37,7 +34,7 @@ match(const struct sk_buff *skb,
...
@@ -37,7 +34,7 @@ match(const struct sk_buff *skb,
int
offset
,
int
offset
,
int
*
hotdrop
)
int
*
hotdrop
)
{
{
struct
esp
hdr
esp
;
struct
ip_esp_
hdr
esp
;
const
struct
ipt_esp
*
espinfo
=
matchinfo
;
const
struct
ipt_esp
*
espinfo
=
matchinfo
;
/* Must not be a fragment. */
/* Must not be a fragment. */
...
...
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