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
1bad998a
Commit
1bad998a
authored
Aug 22, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge gregkh@master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
c46f4774
3ffaa8c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
lib/ts_bm.c
lib/ts_bm.c
+5
-6
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/arp_tables.c
+2
-1
net/ipv4/tcp_output.c
net/ipv4/tcp_output.c
+1
-0
No files found.
lib/ts_bm.c
View file @
1bad998a
...
@@ -111,15 +111,14 @@ static int subpattern(u8 *pattern, int i, int j, int g)
...
@@ -111,15 +111,14 @@ static int subpattern(u8 *pattern, int i, int j, int g)
return
ret
;
return
ret
;
}
}
static
void
compute_prefix_tbl
(
struct
ts_bm
*
bm
,
const
u8
*
pattern
,
static
void
compute_prefix_tbl
(
struct
ts_bm
*
bm
)
unsigned
int
len
)
{
{
int
i
,
j
,
g
;
int
i
,
j
,
g
;
for
(
i
=
0
;
i
<
ASIZE
;
i
++
)
for
(
i
=
0
;
i
<
ASIZE
;
i
++
)
bm
->
bad_shift
[
i
]
=
len
;
bm
->
bad_shift
[
i
]
=
bm
->
pat
len
;
for
(
i
=
0
;
i
<
len
-
1
;
i
++
)
for
(
i
=
0
;
i
<
bm
->
pat
len
-
1
;
i
++
)
bm
->
bad_shift
[
pattern
[
i
]]
=
len
-
1
-
i
;
bm
->
bad_shift
[
bm
->
pattern
[
i
]]
=
bm
->
pat
len
-
1
-
i
;
/* Compute the good shift array, used to match reocurrences
/* Compute the good shift array, used to match reocurrences
* of a subpattern */
* of a subpattern */
...
@@ -150,8 +149,8 @@ static struct ts_config *bm_init(const void *pattern, unsigned int len,
...
@@ -150,8 +149,8 @@ static struct ts_config *bm_init(const void *pattern, unsigned int len,
bm
=
ts_config_priv
(
conf
);
bm
=
ts_config_priv
(
conf
);
bm
->
patlen
=
len
;
bm
->
patlen
=
len
;
bm
->
pattern
=
(
u8
*
)
bm
->
good_shift
+
prefix_tbl_len
;
bm
->
pattern
=
(
u8
*
)
bm
->
good_shift
+
prefix_tbl_len
;
compute_prefix_tbl
(
bm
,
pattern
,
len
);
memcpy
(
bm
->
pattern
,
pattern
,
len
);
memcpy
(
bm
->
pattern
,
pattern
,
len
);
compute_prefix_tbl
(
bm
);
return
conf
;
return
conf
;
}
}
...
...
net/ipv4/netfilter/arp_tables.c
View file @
1bad998a
...
@@ -236,7 +236,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
...
@@ -236,7 +236,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
struct
arpt_entry
*
e
,
*
back
;
struct
arpt_entry
*
e
,
*
back
;
const
char
*
indev
,
*
outdev
;
const
char
*
indev
,
*
outdev
;
void
*
table_base
;
void
*
table_base
;
struct
xt_table_info
*
private
=
table
->
private
;
struct
xt_table_info
*
private
;
/* ARP header, plus 2 device addresses, plus 2 IP addresses. */
/* ARP header, plus 2 device addresses, plus 2 IP addresses. */
if
(
!
pskb_may_pull
((
*
pskb
),
(
sizeof
(
struct
arphdr
)
+
if
(
!
pskb_may_pull
((
*
pskb
),
(
sizeof
(
struct
arphdr
)
+
...
@@ -248,6 +248,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
...
@@ -248,6 +248,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
outdev
=
out
?
out
->
name
:
nulldevname
;
outdev
=
out
?
out
->
name
:
nulldevname
;
read_lock_bh
(
&
table
->
lock
);
read_lock_bh
(
&
table
->
lock
);
private
=
table
->
private
;
table_base
=
(
void
*
)
private
->
entries
[
smp_processor_id
()];
table_base
=
(
void
*
)
private
->
entries
[
smp_processor_id
()];
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
back
=
get_entry
(
table_base
,
private
->
underflow
[
hook
]);
back
=
get_entry
(
table_base
,
private
->
underflow
[
hook
]);
...
...
net/ipv4/tcp_output.c
View file @
1bad998a
...
@@ -201,6 +201,7 @@ void tcp_select_initial_window(int __space, __u32 mss,
...
@@ -201,6 +201,7 @@ void tcp_select_initial_window(int __space, __u32 mss,
* See RFC1323 for an explanation of the limit to 14
* See RFC1323 for an explanation of the limit to 14
*/
*/
space
=
max_t
(
u32
,
sysctl_tcp_rmem
[
2
],
sysctl_rmem_max
);
space
=
max_t
(
u32
,
sysctl_tcp_rmem
[
2
],
sysctl_rmem_max
);
space
=
min_t
(
u32
,
space
,
*
window_clamp
);
while
(
space
>
65535
&&
(
*
rcv_wscale
)
<
14
)
{
while
(
space
>
65535
&&
(
*
rcv_wscale
)
<
14
)
{
space
>>=
1
;
space
>>=
1
;
(
*
rcv_wscale
)
++
;
(
*
rcv_wscale
)
++
;
...
...
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