mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 12:04:24 +00:00
In case if dgram socket peer is not connected back we can try to resolve peer by name. For security reason this happens only if '-x' option is passed at checkpoint and restore time. In particular this is needed for programs which do use dgram socket to send messages to /dev/log. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
27 lines
741 B
C
27 lines
741 B
C
#ifndef CR_SOCKETS_H__
|
|
#define CR_SOCKETS_H__
|
|
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <stdbool.h>
|
|
|
|
struct cr_fdset;
|
|
struct fd_parms;
|
|
extern int dump_socket(struct fd_parms *p, int lfd,
|
|
const struct cr_fdset *cr_fdset);
|
|
|
|
struct fdinfo_list_entry;
|
|
struct file_desc;
|
|
struct fdinfo_entry;
|
|
extern int collect_sockets(void);
|
|
extern int dump_external_sockets(void);
|
|
extern int collect_inet_sockets(void);
|
|
extern int collect_unix_sockets(void);
|
|
extern int resolve_unix_peers(void);
|
|
extern int run_unix_connections(void);
|
|
struct cr_options;
|
|
extern void show_unixsk(int fd, struct cr_options *);
|
|
extern void show_inetsk(int fd, struct cr_options *);
|
|
extern void show_sk_queues(int fd, struct cr_options *);
|
|
|
|
#endif /* CR_SOCKETS_H__ */
|