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.
 
 
 

18 lines
499 B

#ifndef LIBIP_UTILS_H
#define LIBIP_UTILS_H
#include <QObject>
#include "libip_global.h"
class LIBIP_LOCAL 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