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
a915a462
Commit
a915a462
authored
Apr 28, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inet: Move inet sk cpt and rst structs to header
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
65e48c41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
sk-inet.h
include/sk-inet.h
+21
-1
sk-inet.c
sk-inet.c
+0
-20
No files found.
include/sk-inet.h
View file @
a915a462
#ifndef __CR_SK_INET_H__
#ifndef __CR_SK_INET_H__
#define __CR_SK_INET_H__
#define __CR_SK_INET_H__
struct
inet_sk_info
;
#define INET_ADDR_LEN 40
struct
inet_sk_desc
{
struct
socket_desc
sd
;
unsigned
int
type
;
unsigned
int
proto
;
unsigned
int
src_port
;
unsigned
int
dst_port
;
unsigned
int
state
;
unsigned
int
rqlen
;
unsigned
int
wqlen
;
unsigned
int
src_addr
[
4
];
unsigned
int
dst_addr
[
4
];
};
struct
inet_sk_info
{
struct
inet_sk_entry
ie
;
struct
file_desc
d
;
};
int
inet_bind
(
int
sk
,
struct
inet_sk_info
*
);
int
inet_bind
(
int
sk
,
struct
inet_sk_info
*
);
int
inet_connect
(
int
sk
,
struct
inet_sk_info
*
);
int
inet_connect
(
int
sk
,
struct
inet_sk_info
*
);
#endif
#endif
sk-inet.c
View file @
a915a462
...
@@ -15,21 +15,6 @@
...
@@ -15,21 +15,6 @@
#include "sockets.h"
#include "sockets.h"
#include "sk-inet.h"
#include "sk-inet.h"
#define INET_ADDR_LEN 40
struct
inet_sk_desc
{
struct
socket_desc
sd
;
unsigned
int
type
;
unsigned
int
proto
;
unsigned
int
src_port
;
unsigned
int
dst_port
;
unsigned
int
state
;
unsigned
int
rqlen
;
unsigned
int
wqlen
;
unsigned
int
src_addr
[
4
];
unsigned
int
dst_addr
[
4
];
};
static
void
show_one_inet
(
const
char
*
act
,
const
struct
inet_sk_desc
*
sk
)
static
void
show_one_inet
(
const
char
*
act
,
const
struct
inet_sk_desc
*
sk
)
{
{
char
src_addr
[
INET_ADDR_LEN
]
=
"<unknown>"
;
char
src_addr
[
INET_ADDR_LEN
]
=
"<unknown>"
;
...
@@ -175,11 +160,6 @@ int inet_collect_one(struct nlmsghdr *h, int family, int type, int proto)
...
@@ -175,11 +160,6 @@ int inet_collect_one(struct nlmsghdr *h, int family, int type, int proto)
return
ret
;
return
ret
;
}
}
struct
inet_sk_info
{
struct
inet_sk_entry
ie
;
struct
file_desc
d
;
};
static
int
open_inet_sk
(
struct
file_desc
*
d
);
static
int
open_inet_sk
(
struct
file_desc
*
d
);
static
struct
file_desc_ops
inet_desc_ops
=
{
static
struct
file_desc_ops
inet_desc_ops
=
{
...
...
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