Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
19b2720e
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
19b2720e
编写于
2月 28, 2011
作者:
C
chegar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7022269: clean up fscanf usage in Linux networking native code
Reviewed-by: michaelm, alanb
上级
47a4bc28
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
src/solaris/native/java/net/NetworkInterface.c
src/solaris/native/java/net/NetworkInterface.c
+1
-1
src/solaris/native/java/net/net_util_md.c
src/solaris/native/java/net/net_util_md.c
+4
-4
未找到文件。
src/solaris/native/java/net/NetworkInterface.c
浏览文件 @
19b2720e
...
...
@@ -1099,7 +1099,7 @@ static netif *enumIPv4Interfaces(JNIEnv *env, int sock, netif *ifs) {
#ifdef AF_INET6
static
netif
*
enumIPv6Interfaces
(
JNIEnv
*
env
,
int
sock
,
netif
*
ifs
)
{
FILE
*
f
;
char
addr6
[
40
],
devname
[
2
0
];
char
addr6
[
40
],
devname
[
2
1
];
char
addr6p
[
8
][
5
];
int
plen
,
scope
,
dad_status
,
if_idx
;
uint8_t
ipv6addr
[
16
];
...
...
src/solaris/native/java/net/net_util_md.c
浏览文件 @
19b2720e
...
...
@@ -608,7 +608,7 @@ static void initLoopbackRoutes() {
{
/* now find the scope_id for "lo" */
char
devname
[
2
0
];
char
devname
[
2
1
];
char
addr6p
[
8
][
5
];
int
plen
,
scope
,
dad_status
,
if_idx
;
...
...
@@ -651,7 +651,7 @@ static int nifs = 0; /* number of entries used in array */
static
void
initLocalIfs
()
{
FILE
*
f
;
unsigned
char
staddr
[
16
];
char
ifname
[
3
2
];
char
ifname
[
3
3
];
struct
localinterface
*
lif
=
0
;
int
index
,
x1
,
x2
,
x3
;
unsigned
int
u0
,
u1
,
u2
,
u3
,
u4
,
u5
,
u6
,
u7
,
u8
,
u9
,
ua
,
ub
,
uc
,
ud
,
ue
,
uf
;
...
...
@@ -660,7 +660,7 @@ static void initLocalIfs () {
return
;
}
while
(
fscanf
(
f
,
"%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x "
"%d %x %x %x %s"
,
&
u0
,
&
u1
,
&
u2
,
&
u3
,
&
u4
,
&
u5
,
&
u6
,
&
u7
,
"%d %x %x %x %
32
s"
,
&
u0
,
&
u1
,
&
u2
,
&
u3
,
&
u4
,
&
u5
,
&
u6
,
&
u7
,
&
u8
,
&
u9
,
&
ua
,
&
ub
,
&
uc
,
&
ud
,
&
ue
,
&
uf
,
&
index
,
&
x1
,
&
x2
,
&
x3
,
ifname
)
==
21
)
{
staddr
[
0
]
=
(
unsigned
char
)
u0
;
...
...
@@ -1102,7 +1102,7 @@ int getDefaultIPv6Interface(struct in6_addr *target_addr) {
* index.
*/
if
(
match
)
{
char
devname
[
2
0
];
char
devname
[
2
1
];
char
addr6p
[
8
][
5
];
int
plen
,
scope
,
dad_status
,
if_idx
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录