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
ce1c7242
Commit
ce1c7242
authored
Feb 06, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://212.42.230.204/nf-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
b4232896
09dd54c8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
include/linux/netfilter_ipv4/ip_conntrack_tcp.h
include/linux/netfilter_ipv4/ip_conntrack_tcp.h
+1
-0
include/linux/netfilter_ipv4/ip_conntrack_tuple.h
include/linux/netfilter_ipv4/ip_conntrack_tuple.h
+2
-2
net/ipv4/netfilter/ip_conntrack_ftp.c
net/ipv4/netfilter/ip_conntrack_ftp.c
+3
-4
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
+2
-0
net/ipv4/netfilter/ipt_hashlimit.c
net/ipv4/netfilter/ipt_hashlimit.c
+1
-1
No files found.
include/linux/netfilter_ipv4/ip_conntrack_tcp.h
View file @
ce1c7242
...
@@ -41,6 +41,7 @@ struct ip_ct_tcp
...
@@ -41,6 +41,7 @@ struct ip_ct_tcp
u_int8_t
retrans
;
/* Number of retransmitted packets */
u_int8_t
retrans
;
/* Number of retransmitted packets */
u_int8_t
last_index
;
/* Index of the last packet */
u_int8_t
last_index
;
/* Index of the last packet */
u_int32_t
last_seq
;
/* Last sequence number seen in dir */
u_int32_t
last_seq
;
/* Last sequence number seen in dir */
u_int32_t
last_ack
;
/* Last sequence number seen in opposite dir */
u_int32_t
last_end
;
/* Last seq + len */
u_int32_t
last_end
;
/* Last seq + len */
};
};
...
...
include/linux/netfilter_ipv4/ip_conntrack_tuple.h
View file @
ce1c7242
...
@@ -64,10 +64,10 @@ struct ip_conntrack_tuple
...
@@ -64,10 +64,10 @@ struct ip_conntrack_tuple
}
u
;
}
u
;
/* The protocol. */
/* The protocol. */
u
8
protonum
;
u
_int8_t
protonum
;
/* The direction (for tuplehash) */
/* The direction (for tuplehash) */
u
8
dir
;
u
_int8_t
dir
;
}
dst
;
}
dst
;
};
};
...
...
net/ipv4/netfilter/ip_conntrack_ftp.c
View file @
ce1c7242
...
@@ -373,9 +373,8 @@ static int help(struct sk_buff **pskb,
...
@@ -373,9 +373,8 @@ static int help(struct sk_buff **pskb,
goto
out_update_nl
;
goto
out_update_nl
;
}
}
DEBUGP
(
"conntrack_ftp: match `%.*s' (%u bytes at %u)
\n
"
,
DEBUGP
(
"conntrack_ftp: match `%s' (%u bytes at %u)
\n
"
,
(
int
)
matchlen
,
data
+
matchoff
,
fb_ptr
+
matchoff
,
matchlen
,
ntohl
(
th
->
seq
)
+
matchoff
);
matchlen
,
ntohl
(
th
->
seq
)
+
matchoff
);
/* Allocate expectation which will be inserted */
/* Allocate expectation which will be inserted */
exp
=
ip_conntrack_expect_alloc
();
exp
=
ip_conntrack_expect_alloc
();
...
...
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
View file @
ce1c7242
...
@@ -665,11 +665,13 @@ static int tcp_in_window(struct ip_ct_tcp *state,
...
@@ -665,11 +665,13 @@ static int tcp_in_window(struct ip_ct_tcp *state,
if
(
*
index
==
TCP_ACK_SET
)
{
if
(
*
index
==
TCP_ACK_SET
)
{
if
(
state
->
last_dir
==
dir
if
(
state
->
last_dir
==
dir
&&
state
->
last_seq
==
seq
&&
state
->
last_seq
==
seq
&&
state
->
last_ack
==
ack
&&
state
->
last_end
==
end
)
&&
state
->
last_end
==
end
)
state
->
retrans
++
;
state
->
retrans
++
;
else
{
else
{
state
->
last_dir
=
dir
;
state
->
last_dir
=
dir
;
state
->
last_seq
=
seq
;
state
->
last_seq
=
seq
;
state
->
last_ack
=
ack
;
state
->
last_end
=
end
;
state
->
last_end
=
end
;
state
->
retrans
=
0
;
state
->
retrans
=
0
;
}
}
...
...
net/ipv4/netfilter/ipt_hashlimit.c
View file @
ce1c7242
...
@@ -570,7 +570,7 @@ static void *dl_seq_start(struct seq_file *s, loff_t *pos)
...
@@ -570,7 +570,7 @@ static void *dl_seq_start(struct seq_file *s, loff_t *pos)
if
(
*
pos
>=
htable
->
cfg
.
size
)
if
(
*
pos
>=
htable
->
cfg
.
size
)
return
NULL
;
return
NULL
;
bucket
=
kmalloc
(
sizeof
(
unsigned
int
),
GFP_
KERNEL
);
bucket
=
kmalloc
(
sizeof
(
unsigned
int
),
GFP_
ATOMIC
);
if
(
!
bucket
)
if
(
!
bucket
)
return
ERR_PTR
(
-
ENOMEM
);
return
ERR_PTR
(
-
ENOMEM
);
...
...
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