1 /* 2 * msg.h Messaging (netlink) helper functions. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 7 * 2 of the License, or (at your option) any later version. 8 * 9 * Authors: Richard Alpe <richard.alpe@ericsson.com> 10 */ 11 12 #ifndef _TIPC_MSG_H 13 #define _TIPC_MSG_H 14 15 struct nlmsghdr *msg_init(char *buf, int cmd); 16 int msg_doit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data); 17 int msg_dumpit(struct nlmsghdr *nlh, mnl_cb_t callback, void *data); 18 int parse_attrs(const struct nlattr *attr, void *data); 19 20 #endif 21