mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
We have generic do_pb_show() call and tons of show_foo routines, that just call one with proper args. Compact the code by putting the args into array and calling the do_pb_show() in one place. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
37 lines
751 B
C
37 lines
751 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 vma_area;
|
|
|
|
extern struct collect_image_info packet_sk_cinfo;
|
|
|
|
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__ */
|