16 lines
478 B
C
16 lines
478 B
C
#ifndef _OSMO_SGSN_GENL_H_
|
|
#define _OSMO_SGSN_GENL_H_
|
|
|
|
#include <libmnl/libmnl.h>
|
|
|
|
struct nlmsghdr *genl_nlmsg_build_hdr(char *buf, uint16_t type, uint16_t flags,
|
|
uint32_t seq, uint8_t cmd);
|
|
|
|
struct mnl_socket *genl_socket_open(void);
|
|
int genl_socket_talk(struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq,
|
|
int (*cb)(const struct nlmsghdr *nlh, void *data),
|
|
void *data);
|
|
int genl_lookup_family(struct mnl_socket *nl, const char *family);
|
|
|
|
#endif
|