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.
22 lines
607 B
22 lines
607 B
10 years ago
|
// Copyright (c) 2014, Brad Parker
|
||
|
// This file is licensed under the BSD 2-clause license.
|
||
|
|
||
|
#ifndef QIPROUTE_UTILS_H
|
||
|
#define QIPROUTE_UTILS_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#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
|