#ifndef LIBIP_UTILS_H #define LIBIP_UTILS_H #include #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