mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-24 02:35:41 +00:00
- fix names in comments - add empty lines where needed - fix rbtree.h - fix syscall-types.h Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
19 lines
647 B
C
19 lines
647 B
C
#ifndef __CR_LIBNETLINK_H__
|
|
#define __CR_LIBNETLINK_H__
|
|
|
|
#define CR_NLMSG_SEQ 24680 /* arbitrary chosen */
|
|
|
|
extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
#define parse_rtattr_nested(tb, max, rta) \
|
|
(parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
|
|
extern int do_rtnl_req(int nl, void *req, int size,
|
|
int (*receive_callback)(struct nlmsghdr *h, void *), void *);
|
|
|
|
extern int addattr_l(struct nlmsghdr *n, int maxlen, int type,
|
|
const void *data, int alen);
|
|
|
|
#define NLMSG_TAIL(nmsg) \
|
|
((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
|
|
|
|
|
|
#endif /* __CR_LIBNETLINK_H__ */
|