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
eeb76312
Commit
eeb76312
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 ah (by Patrick McHardy).
parent
3e0a552d
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_ah.c
net/ipv4/netfilter/ipt_ah.c
+2
-5
No files found.
net/ipv4/netfilter/ipt_ah.c
View file @
eeb76312
/* Kernel module to match AH parameters. */
/* Kernel module to match AH 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_ah.h>
#include <linux/netfilter_ipv4/ipt_ah.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
ahhdr
{
__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
ah
hdr
ah
;
struct
ip_auth_
hdr
ah
;
const
struct
ipt_ah
*
ahinfo
=
matchinfo
;
const
struct
ipt_ah
*
ahinfo
=
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