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
e8a96f69
Commit
e8a96f69
authored
Mar 18, 2010
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of ../nf-2.6
parents
c01ae818
1da05f50
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
22 deletions
+13
-22
include/linux/netfilter/nf_conntrack_tuple_common.h
include/linux/netfilter/nf_conntrack_tuple_common.h
+1
-2
include/linux/netfilter_ipv6/ip6_tables.h
include/linux/netfilter_ipv6/ip6_tables.h
+0
-4
net/bridge/netfilter/ebt_ip6.c
net/bridge/netfilter/ebt_ip6.c
+4
-14
net/netfilter/ipvs/ip_vs_ftp.c
net/netfilter/ipvs/ip_vs_ftp.c
+8
-2
No files found.
include/linux/netfilter/nf_conntrack_tuple_common.h
View file @
e8a96f69
#ifndef _NF_CONNTRACK_TUPLE_COMMON_H
#ifndef _NF_CONNTRACK_TUPLE_COMMON_H
#define _NF_CONNTRACK_TUPLE_COMMON_H
#define _NF_CONNTRACK_TUPLE_COMMON_H
enum
ip_conntrack_dir
enum
ip_conntrack_dir
{
{
IP_CT_DIR_ORIGINAL
,
IP_CT_DIR_ORIGINAL
,
IP_CT_DIR_REPLY
,
IP_CT_DIR_REPLY
,
IP_CT_DIR_MAX
IP_CT_DIR_MAX
...
...
include/linux/netfilter_ipv6/ip6_tables.h
View file @
e8a96f69
...
@@ -316,10 +316,6 @@ extern int ip6t_ext_hdr(u8 nexthdr);
...
@@ -316,10 +316,6 @@ extern int ip6t_ext_hdr(u8 nexthdr);
extern
int
ipv6_find_hdr
(
const
struct
sk_buff
*
skb
,
unsigned
int
*
offset
,
extern
int
ipv6_find_hdr
(
const
struct
sk_buff
*
skb
,
unsigned
int
*
offset
,
int
target
,
unsigned
short
*
fragoff
);
int
target
,
unsigned
short
*
fragoff
);
extern
int
ip6_masked_addrcmp
(
const
struct
in6_addr
*
addr1
,
const
struct
in6_addr
*
mask
,
const
struct
in6_addr
*
addr2
);
#define IP6T_ALIGN(s) XT_ALIGN(s)
#define IP6T_ALIGN(s) XT_ALIGN(s)
#ifdef CONFIG_COMPAT
#ifdef CONFIG_COMPAT
...
...
net/bridge/netfilter/ebt_ip6.c
View file @
e8a96f69
...
@@ -35,8 +35,6 @@ ebt_ip6_mt(const struct sk_buff *skb, const struct xt_match_param *par)
...
@@ -35,8 +35,6 @@ ebt_ip6_mt(const struct sk_buff *skb, const struct xt_match_param *par)
struct
ipv6hdr
_ip6h
;
struct
ipv6hdr
_ip6h
;
const
struct
tcpudphdr
*
pptr
;
const
struct
tcpudphdr
*
pptr
;
struct
tcpudphdr
_ports
;
struct
tcpudphdr
_ports
;
struct
in6_addr
tmp_addr
;
int
i
;
ih6
=
skb_header_pointer
(
skb
,
0
,
sizeof
(
_ip6h
),
&
_ip6h
);
ih6
=
skb_header_pointer
(
skb
,
0
,
sizeof
(
_ip6h
),
&
_ip6h
);
if
(
ih6
==
NULL
)
if
(
ih6
==
NULL
)
...
@@ -44,18 +42,10 @@ ebt_ip6_mt(const struct sk_buff *skb, const struct xt_match_param *par)
...
@@ -44,18 +42,10 @@ ebt_ip6_mt(const struct sk_buff *skb, const struct xt_match_param *par)
if
(
info
->
bitmask
&
EBT_IP6_TCLASS
&&
if
(
info
->
bitmask
&
EBT_IP6_TCLASS
&&
FWINV
(
info
->
tclass
!=
ipv6_get_dsfield
(
ih6
),
EBT_IP6_TCLASS
))
FWINV
(
info
->
tclass
!=
ipv6_get_dsfield
(
ih6
),
EBT_IP6_TCLASS
))
return
false
;
return
false
;
for
(
i
=
0
;
i
<
4
;
i
++
)
if
(
FWINV
(
ipv6_masked_addr_cmp
(
&
ih6
->
saddr
,
&
info
->
smsk
,
tmp_addr
.
in6_u
.
u6_addr32
[
i
]
=
ih6
->
saddr
.
in6_u
.
u6_addr32
[
i
]
&
&
info
->
saddr
),
EBT_IP6_SOURCE
)
||
info
->
smsk
.
in6_u
.
u6_addr32
[
i
];
FWINV
(
ipv6_masked_addr_cmp
(
&
ih6
->
daddr
,
&
info
->
dmsk
,
if
(
info
->
bitmask
&
EBT_IP6_SOURCE
&&
&
info
->
daddr
),
EBT_IP6_DEST
))
FWINV
((
ipv6_addr_cmp
(
&
tmp_addr
,
&
info
->
saddr
)
!=
0
),
EBT_IP6_SOURCE
))
return
false
;
for
(
i
=
0
;
i
<
4
;
i
++
)
tmp_addr
.
in6_u
.
u6_addr32
[
i
]
=
ih6
->
daddr
.
in6_u
.
u6_addr32
[
i
]
&
info
->
dmsk
.
in6_u
.
u6_addr32
[
i
];
if
(
info
->
bitmask
&
EBT_IP6_DEST
&&
FWINV
((
ipv6_addr_cmp
(
&
tmp_addr
,
&
info
->
daddr
)
!=
0
),
EBT_IP6_DEST
))
return
false
;
return
false
;
if
(
info
->
bitmask
&
EBT_IP6_PROTO
)
{
if
(
info
->
bitmask
&
EBT_IP6_PROTO
)
{
uint8_t
nexthdr
=
ih6
->
nexthdr
;
uint8_t
nexthdr
=
ih6
->
nexthdr
;
...
...
net/netfilter/ipvs/ip_vs_ftp.c
View file @
e8a96f69
...
@@ -208,8 +208,14 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
...
@@ -208,8 +208,14 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
*/
*/
from
.
ip
=
n_cp
->
vaddr
.
ip
;
from
.
ip
=
n_cp
->
vaddr
.
ip
;
port
=
n_cp
->
vport
;
port
=
n_cp
->
vport
;
sprintf
(
buf
,
"%u,%u,%u,%u,%u,%u"
,
NIPQUAD
(
from
.
ip
),
snprintf
(
buf
,
sizeof
(
buf
),
"%u,%u,%u,%u,%u,%u"
,
(
ntohs
(
port
)
>>
8
)
&
255
,
ntohs
(
port
)
&
255
);
((
unsigned
char
*
)
&
from
.
ip
)[
0
],
((
unsigned
char
*
)
&
from
.
ip
)[
1
],
((
unsigned
char
*
)
&
from
.
ip
)[
2
],
((
unsigned
char
*
)
&
from
.
ip
)[
3
],
ntohs
(
port
)
>>
8
,
ntohs
(
port
)
&
0xFF
);
buf_len
=
strlen
(
buf
);
buf_len
=
strlen
(
buf
);
/*
/*
...
...
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