2022-02-07 06:35:29 +05:30
|
|
|
// Copyright 2011-2018 Nicholas J. Kain <njkain at gmail dot com>
|
|
|
|
// SPDX-License-Identifier: MIT
|
2011-07-02 11:04:50 +05:30
|
|
|
#ifndef NK_NETLINK_H_
|
|
|
|
#define NK_NETLINK_H_
|
|
|
|
|
2017-01-12 16:35:00 +05:30
|
|
|
#include <stdbool.h>
|
2011-07-04 03:00:55 +05:30
|
|
|
#include <linux/rtnetlink.h>
|
2011-07-02 11:04:50 +05:30
|
|
|
#include "state.h"
|
|
|
|
|
2011-07-02 14:28:58 +05:30
|
|
|
enum {
|
|
|
|
IFS_NONE = 0,
|
|
|
|
IFS_UP,
|
|
|
|
IFS_DOWN,
|
|
|
|
IFS_SHUT,
|
|
|
|
IFS_REMOVED
|
|
|
|
};
|
|
|
|
|
2017-01-12 16:35:00 +05:30
|
|
|
bool nl_event_carrier_wentup(int state);
|
2022-01-12 09:05:19 +05:30
|
|
|
int nl_event_get(struct client_state_t *cs);
|
2014-03-18 07:40:58 +05:30
|
|
|
int nl_getifdata(void);
|
2011-07-02 11:04:50 +05:30
|
|
|
|
2022-02-07 06:35:29 +05:30
|
|
|
#endif
|
|
|
|
|