forked from checkpoint-restore/criu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sk-packet.h
40 lines (31 loc) · 814 Bytes
/
sk-packet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __CR_SK_PACKET_H__
#define __CR_SK_PACKET_H__
#ifndef PACKET_TIMESTAMP
#define PACKET_TIMESTAMP 17
#endif
struct cr_imgset;
struct fd_parms;
struct vma_area;
extern struct collect_image_info packet_sk_cinfo;
extern int dump_socket_map(struct vma_area *vma);
extern int collect_socket_map(struct vma_area *);
struct nlmsghdr;
extern int packet_receive_one(struct nlmsghdr *h, void *arg);
#ifndef PACKET_VNET_HDR
#define PACKET_VNET_HDR 15
#endif
#ifndef PACKET_FANOUT
#define PACKET_FANOUT 18
#endif
#ifndef TPACKET3_HDRLEN
struct tpacket_req3 {
unsigned int tp_block_size;
unsigned int tp_block_nr;
unsigned int tp_frame_size;
unsigned int tp_frame_nr;
unsigned int tp_retire_blk_tov;
unsigned int tp_sizeof_priv;
unsigned int tp_feature_req_word;
};
#endif
#endif /* __CR_SK_PACKET_H__ */