Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1bad998a
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1bad998a
编写于
18年前
作者:
G
Greg Kroah-Hartman
浏览文件
操作
浏览文件
下载
差异文件
Merge gregkh@master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
上级
c46f4774
3ffaa8c7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
7 deletion
+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
未找到文件。
lib/ts_bm.c
浏览文件 @
1bad998a
...
...
@@ -111,15 +111,14 @@ static int subpattern(u8 *pattern, int i, int j, int g)
return
ret
;
}
static
void
compute_prefix_tbl
(
struct
ts_bm
*
bm
,
const
u8
*
pattern
,
unsigned
int
len
)
static
void
compute_prefix_tbl
(
struct
ts_bm
*
bm
)
{
int
i
,
j
,
g
;
for
(
i
=
0
;
i
<
ASIZE
;
i
++
)
bm
->
bad_shift
[
i
]
=
len
;
for
(
i
=
0
;
i
<
len
-
1
;
i
++
)
bm
->
bad_shift
[
pattern
[
i
]]
=
len
-
1
-
i
;
bm
->
bad_shift
[
i
]
=
bm
->
pat
len
;
for
(
i
=
0
;
i
<
bm
->
pat
len
-
1
;
i
++
)
bm
->
bad_shift
[
bm
->
pattern
[
i
]]
=
bm
->
pat
len
-
1
-
i
;
/* Compute the good shift array, used to match reocurrences
* of a subpattern */
...
...
@@ -150,8 +149,8 @@ static struct ts_config *bm_init(const void *pattern, unsigned int len,
bm
=
ts_config_priv
(
conf
);
bm
->
patlen
=
len
;
bm
->
pattern
=
(
u8
*
)
bm
->
good_shift
+
prefix_tbl_len
;
compute_prefix_tbl
(
bm
,
pattern
,
len
);
memcpy
(
bm
->
pattern
,
pattern
,
len
);
compute_prefix_tbl
(
bm
);
return
conf
;
}
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/netfilter/arp_tables.c
浏览文件 @
1bad998a
...
...
@@ -236,7 +236,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
struct
arpt_entry
*
e
,
*
back
;
const
char
*
indev
,
*
outdev
;
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. */
if
(
!
pskb_may_pull
((
*
pskb
),
(
sizeof
(
struct
arphdr
)
+
...
...
@@ -248,6 +248,7 @@ unsigned int arpt_do_table(struct sk_buff **pskb,
outdev
=
out
?
out
->
name
:
nulldevname
;
read_lock_bh
(
&
table
->
lock
);
private
=
table
->
private
;
table_base
=
(
void
*
)
private
->
entries
[
smp_processor_id
()];
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
back
=
get_entry
(
table_base
,
private
->
underflow
[
hook
]);
...
...
This diff is collapsed.
Click to expand it.
net/ipv4/tcp_output.c
浏览文件 @
1bad998a
...
...
@@ -201,6 +201,7 @@ void tcp_select_initial_window(int __space, __u32 mss,
* See RFC1323 for an explanation of the limit to 14
*/
space
=
max_t
(
u32
,
sysctl_tcp_rmem
[
2
],
sysctl_rmem_max
);
space
=
min_t
(
u32
,
space
,
*
window_clamp
);
while
(
space
>
65535
&&
(
*
rcv_wscale
)
<
14
)
{
space
>>=
1
;
(
*
rcv_wscale
)
++
;
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部