// Copyright (c) 2014, Brad Parker // This file is licensed under the BSD 2-clause license. #ifndef QIPROUTE_UTILS_H #define QIPROUTE_UTILS_H #include #include "qiproute_global.h" class QIPROUTE_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 // QIPROUTE_UTILS_H