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