You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
475 B

#ifndef LIBIP_UTILS_H
#define LIBIP_UTILS_H
#include <QObject>
class Q_DECL_EXPORT Utils : public QObject {
Q_OBJECT
public:
static int interfaceIndex(QString interface);
static struct nl_sock* connect();
static int alloc_addr_cache(struct nl_sock *sock, struct nl_cache **cache);
static int alloc_link_cache(struct nl_sock *sock, struct nl_cache **cache);
static int alloc_neigh_cache(struct nl_sock *sock, struct nl_cache **cache);
};
#endif // LIBIP_UTILS_H