Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
670e26b0
Commit
670e26b0
authored
Oct 10, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'brfetch'
parents
0a8a1621
74af0c22
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
sk-inet.c
sk-inet.c
+12
-10
No files found.
sk-inet.c
View file @
670e26b0
...
@@ -90,19 +90,18 @@ static void show_one_inet_img(const char *act, const InetSkEntry *e)
...
@@ -90,19 +90,18 @@ static void show_one_inet_img(const char *act, const InetSkEntry *e)
static
int
can_dump_inet_sk
(
const
struct
inet_sk_desc
*
sk
,
int
proto
)
static
int
can_dump_inet_sk
(
const
struct
inet_sk_desc
*
sk
,
int
proto
)
{
{
if
(
sk
->
sd
.
family
!=
AF_INET
&&
sk
->
sd
.
family
!=
AF_INET6
)
{
BUG_ON
((
sk
->
sd
.
family
!=
AF_INET
)
&&
(
sk
->
sd
.
family
!=
AF_INET6
));
pr_err
(
"Only IPv4/6 sockets for now
\n
"
);
return
0
;
}
if
(
sk
->
shutdown
)
{
if
(
sk
->
shutdown
)
{
pr_err
(
"Can't dump shutdown inet socket
\n
"
);
pr_err
(
"Can't dump shutdown inet socket %x
\n
"
,
sk
->
sd
.
ino
);
return
0
;
return
0
;
}
}
if
(
sk
->
type
==
SOCK_DGRAM
)
{
if
(
sk
->
type
==
SOCK_DGRAM
)
{
if
(
sk
->
wqlen
!=
0
)
{
if
(
sk
->
wqlen
!=
0
)
{
pr_err
(
"Can't dump corked dgram socket
\n
"
);
pr_err
(
"Can't dump corked dgram socket %x
\n
"
,
sk
->
sd
.
ino
);
return
0
;
return
0
;
}
}
...
@@ -114,7 +113,9 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
...
@@ -114,7 +113,9 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
}
}
if
(
sk
->
type
!=
SOCK_STREAM
)
{
if
(
sk
->
type
!=
SOCK_STREAM
)
{
pr_err
(
"Only stream and dgram inet sockets for now
\n
"
);
pr_err
(
"Can't dump %d inet socket %x. "
"Only can stream and dgram.
\n
"
,
sk
->
type
,
sk
->
sd
.
ino
);
return
0
;
return
0
;
}
}
...
@@ -126,7 +127,8 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
...
@@ -126,7 +127,8 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
* requests for listen sockets. Need to pick
* requests for listen sockets. Need to pick
* those up and fix the connect job respectively
* those up and fix the connect job respectively
*/
*/
pr_err
(
"In-flight connection (l)
\n
"
);
pr_err
(
"In-flight connection (l) for %x
\n
"
,
sk
->
sd
.
ino
);
return
0
;
return
0
;
}
}
break
;
break
;
...
@@ -141,7 +143,7 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
...
@@ -141,7 +143,7 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
/* Trivial case, we just need to create a socket on restore */
/* Trivial case, we just need to create a socket on restore */
break
;
break
;
default:
default:
pr_err
(
"Unknown
state %d
\n
"
,
sk
->
state
);
pr_err
(
"Unknown
inet socket %x state %d
\n
"
,
sk
->
sd
.
ino
,
sk
->
state
);
return
0
;
return
0
;
}
}
...
@@ -153,7 +155,7 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
...
@@ -153,7 +155,7 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk, int proto)
case
IPPROTO_UDPLITE
:
case
IPPROTO_UDPLITE
:
break
;
break
;
default:
default:
pr_err
(
"Unsupported
socket proto %d
\n
"
,
prot
o
);
pr_err
(
"Unsupported
proto %d for socket %x
\n
"
,
proto
,
sk
->
sd
.
in
o
);
return
0
;
return
0
;
}
}
...
...
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