mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 09:35:12 +00:00
Currently fdinfo dumps for each task, so CR_FD_FDINFO is in cr_fdset. A few tasks can share one fd table and the set of descriptors will be dumped once and a image name will contain files_id instead of pid. In this case CR_FD_FDINFO will go away from cr_fdset. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
40 lines
874 B
C
40 lines
874 B
C
#ifndef __CR_SK_PACKET_H__
|
|
#define __CR_SK_PACKET_H__
|
|
|
|
#ifndef PACKET_TIMESTAMP
|
|
#define PACKET_TIMESTAMP 17
|
|
#endif
|
|
|
|
struct cr_fdset;
|
|
struct fd_parms;
|
|
struct cr_options;
|
|
struct vma_area;
|
|
|
|
int dump_one_packet_sk(struct fd_parms *p, int lfd, const int fdinfo);
|
|
int collect_packet_sockets(void);
|
|
void show_packetsk(int fd, struct cr_options *);
|
|
|
|
int dump_socket_map(struct vma_area *vma);
|
|
int get_socket_fd(int pid, VmaEntry *vma);
|
|
|
|
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
|
|
|
|
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__ */
|